I have my Art gallery ready and I want to add some interactivity to display each paint's information when the viewer look at each one.
So my idea is to setup a sphere collider close to each paint so when the "character controller" enters, the info (I plan to make a GIU for each paint) is displayed and when it exits is OFF, I was looking at the collider Javascript reference and I think with "Collider.OnTriggerEnter" and "Collider.OnTriggerExit" I can do that but I have no clue about how to formulate a script with that.
I would very much appreciate if somebody can help me with this. Thank you in advance!
-AK
↧