Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. using UnityEngine;
  2. using UnityEditor;
  3.  
  4. public class CreateEmpty
  5. {
  6. [MenuItem("GameObject/Create EmptyZero %#n", false, -1)]
  7. static void CreateEmptyObject()
  8. {
  9. var obj = new GameObject("GameObject");
  10. obj.transform.localPosition = Vector3.zero;
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement