UI interactivity
Hello! is there any way i can make a ui button interactable to open brush controller?
25 Replies
Hey! First off, I assume you mean the Default unity UI components?
(also, please don't double post! you had the right channel 🙂 )
yes! Unity's default ui and sorry for the double post!
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)
Is this a button you're using from VR? I'd strongly recommend using Open Brush UI components for all VR UI
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?
Have you read the dev notes?
No! where can i find that?
I've found it on your website!!
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?
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!
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
ok let me try!!
Actually I am new to open brush. can you please tell me where the existing panel is?
what panel do you want ot add it to?
one with some empty space is probably best
Tools Panel?
yeah! tools panel will be good for this.
ok so - Prefabs/Panels/ToolPanel (but also ToolPanel_Mobile if you're building for Quest)
ok thanks! let me see!
Hey guys!
I just want to confirm one thing, by creating monobehaviour, you mean to create new script right?