Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
I was just wondering if theres a function that will return the name of a scene node, i am trying to use an animator for more than one node and need the name of the node to determine which one has been clicked on, is this possible? Thanks, Dan |
||||
|
Hm, usually if you have the scene node, the property .Name should do it. But maybe I'm missing something here? |
||||
|
Hey Niko, Thanks, .Name does indeed return the name of the Node, but what i really should have asked is if there is a way to get the name from a click. The issue i am having is that i have an animator var shieldclick = function(){ so Shield1 and Shield2 are using the same animator, so when i click this, is there a way to find out which one has been clicked? Like is there a variable that stores the active scene node? i know the variable 'this' stores the scene information, but i couldnt find anything that stored any info on the Node i have clicked. Thanks for your help, Dan |
||||
|
One obvious way would be to put a variable into to the shieldclick function so that it knows the object you clicked on. |
|