Hi! I am fairly new to using Unity/Adventure Creator so I apologize if I am missing something really simple or not explaining well. I am trying to build a interactive tool bar for a 2d pet care game (so options like a shower hose, brush, sponge, etc.) and I want to have the objects become interactable based on completion of a previous action. I was hoping to be able to make the objects enlarge to full size from menu size once clicked and then the player drags the object to the pet to trigger an event. I am not really sure how to go about this and would appreciate any advice.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Welcome to the community, @pequeerular.
As in, have e.g. a "Sponge" icon become interactable if some previous Actions were ran, e.g. the "Brush" interaction?
I think the main thing it depends on is whether or not the "toolbar" is displaying the whole time (see the "UI template: Nine verbs" package over on the Downloads page) vs only showing for a particular Hotspot (see the 2D Demo as an example).
Generally speaking, I'd say the former approach would involve making sure your Menu uses Unity UI as its Source, and then setting each Interaction element's When invisible option to Disable Interactability. You can then use the Menu: Change state Action to show/hide this element, affecting its Interactable state when doing so.
The latter approach may instead involve updating the state of the Hotspot's interactions themselves, by enabling/disabling them at runtime. This can be done with the Hotspot: Enable or disable Action.
If you can share details or screenshots to help elaborate how you intend for things to work, I can try to give more specific advice.
if you go with the first approach, i.e. having a toolbar be on-screen permanently, then you'd likely want to have your Settings Manager's Interaction method be set to Choose Interaction Then Hotspot. This is what the "Nine verbs" template I mentioned uses, and involves first clicking an icon (or verb) listed in the Cursor Manager, and then clicking a Hotspot to run the Interaction associated with that icon.
You can then have the clicked Interaction icon become the cursor by checking Change cursor based on Interaction? in the Cursor Manager.