Quantcast
Channel: Questions in topic: "issue"
Viewing all articles
Browse latest Browse all 827

Scriptable Object bug ?

$
0
0
Hi guys, here is my script : using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using UnityEngine; [CreateAssetMenu (menuName = ("ItemAsset"))] public abstract class ItemAsset : ScriptableObject { public String Name; public Texture2D Icon; public ItemPrefab Prefab; public Int32 Cost; public Int32 DurabilityMax; public abstract Boolean CanStackInInventory { get; } public Item CreateNewItem() { Item item; item = Create(); item.Id = Guid.NewGuid(); Debug.Assert(item.Asset != null); Debug.Assert(item.Data != null); return item; } protected abstract Item Create(); } I can't create the object using the create menu, I get an error "the classe needs to derive from Scriptable Object... -_- I'm running Unity perso 5.4 Any idea ?!

Viewing all articles
Browse latest Browse all 827

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>