- Home /
Extending UnityEngine.UI.Image and add extra field available in Inspector
I am trying to extend UnityEngine.UI.Image like that
public class MyImage : Image {
public string Comment;
}
But I do not see extra text field in inspector. Is it possible to add extra field that would be available in inspector?
Comment
Adding script in Editor. I got answer. I need a new Editor class to override UI.ImageEditor