Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. GameObject go = GameObject.Find(values[1]);
  2. Undo.RecordObject(go,"setting at rest");
  3. // Do transforms
  4. float x = float.Parse(p_values[0]);
  5. float y = float.Parse(p_values[1]);
  6. float z = float.Parse(p_values[2]);
  7. Vector3 p = new Vector3(x,y,z);
  8.  
  9. go.transform.position = p;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement