Пример #1
0
        private void Duplicate()
        {
            GameObject go = GameObject.Instantiate(Obj.gameObject);

            go.transform.parent = Obj.transform.parent;
            go.name             = SequenceEditor.GetUniqueContainerName(Obj.gameObject.name);
            Undo.RegisterCreatedObjectUndo(go, "duplicate " + Obj.gameObject.name);
        }