How are we supposed to add custom UI types, like ListBoxes, ect…?
-
When I do: “[AddComponentMenu(“UI/ListBox”, 0)]” it doesn’t add anything to the file menu?
-
I define “public class ListBox : MaskableGraphic, ILayoutElement” as the class type.
How are we supposed to add custom UI types, like ListBoxes, ect…?
When I do: “[AddComponentMenu(“UI/ListBox”, 0)]” it doesn’t add anything to the file menu?
I define “public class ListBox : MaskableGraphic, ILayoutElement” as the class type.
Iv’e downloaded the Unity UI source code from Bitbucket… Git is so much better then Mercurial :(…
Anyway as a test I copied “ButtonEditor” and “Button” code into my project directly and renamed them to “ButtonEditor2” and “Button2” for testing.
Still the file menu option of “Button2” does NOT show… what am I missing?
I see, it shows up in the “Add Component list”.
I’m confused though, how do we create Empty RectTransform GameObjects. Seems like there is a issue here or i’m missing something.