Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GameObject obj = Instantiate (prefab, new Vector3(0,0,0), transform.rotation) as GameObject;
- MyClass myClass = obj.GetComponent<MyClass>();
- myClass.Set(new Vector3(1,1,1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement