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 Comment
in inspector. Is it possible to add extra field that would be available in inspector?
PS It triggered as duplicated for Extending Unity UI components with custom Inspector but it is not dupe. I do not ask anything about custom Inspector
. It is just regular field with default Inspector
. The problem is that field is not appearing in inspector at all.