Move a component when a tag is activated

Hello
I need to move a component when a tag is activated ( up / down movement ). so i have used function: system.gui.transform. It works fine but how do I relate it to the tag alone without any mouse event. any help please?

I would create a custom property for the tag state on the component.

Then I would create a propertyChange event script on the component that then looks at the above custom property for changes.

Make sure you filter the propertyChange script properly else it’ll react to all property changes, not just the state you want.

1 Like

thank you.
it works perfectly