void OnEnable() { RecursivelyFindFolderPath("Assets"); Puppet3DSelection.GetSelectionString(); Undo.undoRedoPerformed += OnUndoRedo; }
public static void SaveSelectionLoad(object index) { Puppet3DSelection.GetSelectionString(); string[] goNames = Puppet3DEditor.selectedControls[(int)index].ToArray(); List <GameObject> gos = new List <GameObject>(); foreach (string goName in goNames) { gos.Add(GameObject.Find(goName)); } Selection.objects = gos.ToArray(); gos.Clear(); SetSelectionString(); }
void OnEnable() { RecursivelyFindFolderPath("Assets"); Puppet3DSelection.GetSelectionString(); }