Пример #1
0
 public static void ContextMenu_Transform_SelectTileSystem()
 {
     if (Selection.gameObjects.Length == 1)
     {
         var tileSystem = ToolUtility.FindParentTileSystem(Selection.activeTransform);
         if (tileSystem != null)
         {
             Selection.objects = new Object[] { tileSystem.gameObject };
         }
     }
 }
Пример #2
0
 public static bool ContextMenu_Transform_SelectTileSystem_Validate()
 {
     return(Selection.gameObjects.Length == 1 && ToolUtility.FindParentTileSystem(Selection.activeTransform) != null);
 }