Question by
PixxlMan · May 24, 2019 at 02:05 PM ·
uiinspectorscriptableobject
UI attributes in ScriptableObjects not appearing.
I have this piece of code, but the UI attributes [Tooltip] don´t show up in the inspector...
public class ResourceType : ScriptableObject
{
[Tooltip("The resource name")]
public string resourceName;
public string resourceDescription;
[Tooltip("The icon to be displayed in outputs and inputs together with the name")]
public Sprite icon;
[Tooltip("The price for which this item can be sold at in selling nodes")]
public float sellingPrice;
}
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612202026im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Access an Array of class inside another Array of class? (EditorGUILayout) 1 Answer
Codeless IAP causing inspector bug 0 Answers
Remember UI when exiting playmode 1 Answer
Object looses Inspector properties When Scene returns 1 Answer
How can I have custom inspector variables in an object list? 0 Answers