Question by
jms552 · Oct 01, 2016 at 08:02 PM ·
gameobject.find
I want to find a specific object and while on hover (using raycast) change the color but I cant seem to get this right
if(hitTransform.name == hitTransform.Find("Plane")) { Renderer r = hitTransform.GetComponent();
r.material.color = Color.blue;
}
Comment
Your answer
Follow this Question
Related Questions
Check GameObject rotation in Y axis when OnTriggerEnter 1 Answer
Help with arrays and checking other object's floats 0 Answers
GameObject.Find() returns null even if the gameObject I'm looking for is active 1 Answer
using gameobject.find('key') but i want to make it with a tag 1 Answer
'GameObject' does not contain a definition for 'Find' [Assembly-CSharp]csharp(CS0117) 0 Answers