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