i have 5 cylinder objects.. if i click on any one of cylinder the color should be changed and remain unchanged like wise for all those cylinders...
how could i script for that??
i have already tried but no luck....
thanks in advance....sorry about my english...
Problem Solved [highlight object color]
i have tried it with 2 scripts....same 5 cylinders and i noted with id's id=1,2,...5.
its in first "cylinder.cs" script:
now we can control it with "GamePlay.cs" script:
now it'll come like this, if you click of an object that particular only highlighted..remaining objects wont be highlighted... you may try it...if you have any doubts about it, share it with me....
//You may need to use raycasting to incidate if you have clicked an object in world space.
answered Feb 15 '11 at 12:19 PM
Take a look at the videos: Burg Zerg Arcade, teaches him to do so (in C #) and also a full RPG.
To your question take a look at:
Links from tutorials:
answered Feb 15 '11 at 01:03 PM