Join our Discord Channel
@MenuItem ("Edit/Dupe %#d")static function Dupe () { var go = Selection.activeObject as GameObject; var dupeGo = Instantiate(go); dupeGo.name = go.name + " copy"; dupeGo.transform.parent = go.transform.parent; dupeGo.transform.position = go.transform.position; dupeGo.transform.rotation = go.transform.rotation;}@MenuItem ("Edit/Dupe %#d", true)static function Validate () { return Selection.activeObject != null;}