示例#1
0
 public static void SortSmartAll()
 {
     DataBehaviour.sorting = Locate.GetSceneObjects();
     if (DataBehaviour.sorting.Length > 0)
     {
         DataBehaviour.processIndex = 0;
         Events.Add("On Editor Update", DataBehaviour.SortSmartNext);
     }
 }
示例#2
0
 public void RemoveMeshes()
 {
     Locate.SetDirty();
     foreach (var target in Locate.GetSceneObjects())
     {
         if (!target.IsNull() && target.name.Contains("@TempMesh"))
         {
             target.Destroy();
         }
     }
 }
示例#3
0
 public void EnableGameObject(string[] values)
 {
     Locate.GetSceneObjects().Where(x => x.name == values[1]).ToList().ForEach(x => x.SetActive(true));
 }
示例#4
0
 public void ToggleGameObject(string[] values)
 {
     Locate.GetSceneObjects().Where(x => x.name == values[1]).ToList().ForEach(x => x.SetActive(!x.activeInHierarchy));
 }
示例#5
0
 public void DestroyGameObject(string[] values)
 {
     Locate.GetSceneObjects().Where(x => x.name == values[1]).ToList().ForEach(x => Destroy(x));
 }