UI interactivity

Hello! is there any way i can make a ui button interactable to open brush controller?
25 Replies
mikesky
mikesky•14mo ago
Hey! First off, I assume you mean the Default unity UI components? (also, please don't double post! you had the right channel 🙂 )
UsamaTKD
UsamaTKD•14mo ago
yes! Unity's default ui and sorry for the double post!
mikesky
mikesky•14mo ago
Tilt/Open Brush's UI system is heavily opinionated, I'm not sure how easy this would be. Have you considered making your own open brush-style panel? ( @andybak might know more here)
andybak
andybak•14mo ago
Is this a button you're using from VR? I'd strongly recommend using Open Brush UI components for all VR UI
UsamaTKD
UsamaTKD•14mo ago
i can use open brush's UI system if it is easy to use. I just want a ui button to just enable a gameobject. Can you please tell me how to do that?
andybak
andybak•14mo ago
Have you read the dev notes?
UsamaTKD
UsamaTKD•14mo ago
No! where can i find that? I've found it on your website!!
andybak
andybak•14mo ago
cool. 🙂 It's not amazing - but it's a good place to start. and there's a fair bit about UI stuff is this a button on an existing panel - or do you need a new panel as well?
UsamaTKD
UsamaTKD•14mo ago
I can use an existing panel or can create a new one! my main task is just to add a UI button!! I hope you are getting my point!
andybak
andybak•14mo ago
In that cae - add it to an existing panel. That's easiest 1. Create a new monobehaviour with a single method that does what you want 2. Add a new ActionButton to a panel (copy an existing one) 3. Add your new monobehaviour to the button 4. connect the UnityEvent on the button to your new monobehaviour
UsamaTKD
UsamaTKD•14mo ago
ok let me try!! Actually I am new to open brush. can you please tell me where the existing panel is?
andybak
andybak•14mo ago
what panel do you want ot add it to? one with some empty space is probably best Tools Panel?
UsamaTKD
UsamaTKD•14mo ago
yeah! tools panel will be good for this.
andybak
andybak•14mo ago
ok so - Prefabs/Panels/ToolPanel (but also ToolPanel_Mobile if you're building for Quest)
UsamaTKD
UsamaTKD•14mo ago
ok thanks! let me see! Hey guys! I just want to confirm one thing, by creating monobehaviour, you mean to create new script right?
Want results from more Discord servers?
Add your server