Adding a panel

I duplicated the BrushesPanel prefab and added it to the panel manager, but it does not instantiate when I go into play mode
No description
8 Replies
andybak
andybak12mo ago
Are you following the guide in the developer notes?
Sharingan Yusuf
Sharingan Yusuf12mo ago
Yes I'm going through the documentation and I used a panel that's already in the Prefabs/Panels folder called the TestingPanel and I've added it to the PanelManager.PanelMap as element 40 but it is recognized as Stencil Settings and from what I understand in the documentation that it doesn't seem to matter. Right now it does instantiate when I click play, but I get the following error:
Exception: Object reference not set to an instance of an object: Init State(False, False), Counter(7)
TiltBrush.BasePanel.UpdateDescriptions () (at Assets/Scripts/GUI/BasePanel.cs:1051)
TiltBrush.BasePanel.BaseUpdate () (at Assets/Scripts/GUI/BasePanel.cs:883)
TiltBrush.BasePanel.Update () (at Assets/Scripts/GUI/BasePanel.cs:876)
Exception: Object reference not set to an instance of an object: Init State(False, False), Counter(7)
TiltBrush.BasePanel.UpdateDescriptions () (at Assets/Scripts/GUI/BasePanel.cs:1051)
TiltBrush.BasePanel.BaseUpdate () (at Assets/Scripts/GUI/BasePanel.cs:883)
TiltBrush.BasePanel.Update () (at Assets/Scripts/GUI/BasePanel.cs:876)
No description
No description
No description
Sharingan Yusuf
Sharingan Yusuf12mo ago
Edit: I used another panel prefab and got it to work! (No idea why)...I'm going to try adding a dropdown next. My guess is TextMeshPro won't work...
andybak
andybak12mo ago
Sorry - was travelling. Glad you got it working. re: Dropdown - Never tried using regular Unity UI components. Open Brush has it's own UI system so I've always stuck to that. The Open Brush equivalent to a dropdown is a popup. If you want to be consistent with the rest of the UI, why not use that? I've done fairly extensive UI stuff with popups, text buttons and tabs in the 3D Shapes branch: https://docs.openbrush.app/alternate-and-experimental-builds/3d-shapes
Sharingan Yusuf
Sharingan Yusuf12mo ago
Thanks your insight is priceless! Does scrolling work in popups ...i've got 50 options to select from (^-^
andybak
andybak12mo ago
No but @Seethrough implemented scrolling for his animation panel It would be lovely to get that implemented in a way anyone could reuse
Seethrough
Seethrough12mo ago
yeah it's definetly needed would be good if we could figuired out a way to make it continous too instead of item by item
Want results from more Discord servers?
Add your server