unity find obj with name code example
Example 1: unity find gameobject by name
GameObject enemy = GameObject.Find("enemy");
Example 2: unity get object by name
function Update() { var enemy : GameObject = GameObject.Find("enemy"); //perform operations on enemy here}