Hi, i was looking any tip or example for what i want to do.
I need in the UI use the instantiated buttons that i have and connect with the correct dialogue option.
Example: i have a lot of room i select where I'm going. Select x room. A UI with the zoomed Room with 5 icons of the objects of the room you can interact. One object if you click give a dialogue response. Other give the item or other start a conversation.
Any help will be nice but it will be perfect an example.
Thanks
Comments
If your UI is connected to AC's Menu Manager, you can control the handling of Buttons within the Menu Element's properties.
However, you don't need to connect a UI Button to AC just to run an ActionList. Any ActionList asset can be run by calling its Interact() function. This can be done via the UI Button component's "On Click" event panel.
It's possible to modify the "On Click" events through script. See Unity's docs/forums for more on this - that isn't strictly AC-related.
Different options like what? You can still use AC variables in your ActionLists, or use scripting to change which ActionLists the buttons link to. Without more details, though, I can't suggest much.
Take a look from here:
https://drive.google.com/file/d/1-AARl8OdPSNDyRyoDe7HwoiFqI9XeAjN/view?usp=drivesdk
Access is denied.
But are you talking about Hotspots or UI Buttons? They are not the same thing, and Hotspots cannot be attached to buttons.
I'm afraid I really don't understand what the image is supposed to be showing me.
You'll need to be more clear and direct about what your issue is. Your example of a button that can hide/show an object can already be done with ActionLists - regardless of whether it's run from a UI Button or a Hotspot. To change the appearance of the button, you can use animation.
Hotspots too can be instantiated at runtime, and the new Variables component means you can now access variables attached to GameObjects / prefabs without having to first declare them in the Variables Manager.
Colliders aren't designed to work with UI. Attaching a Hotspot to a UI component won't make things work instantly, but you could feasibly connect a Button's click event to run e.g. a Hotspot's "Use" interaction.
See the included "Custom interaction system example" script for a demonstration on how Hotspot interactions can be invoked through code.
Thanks now i get the idea and it´s working