예제 #1
0
 void AlignRotateTransforms(GFPolarGrid pGrid, List <Transform> allTransforms)
 {
     foreach (Transform curTransform in allTransforms)
     {
         if (!(ignoreRootObjects && curTransform.parent == null && curTransform.childCount > 0) && (affectedLayers.value & 1 << curTransform.gameObject.layer) != 0)
         {
             pGrid.AlignRotateTransform(curTransform, lockAxes);
             if (inculdeChildren)
             {
                 foreach (Transform child in curTransform)
                 {
                     pGrid.AlignRotateTransform(child, lockAxes);
                 }
             }
         }
     }
 }
예제 #2
0
 void AlignRotateTransforms(GFPolarGrid pGrid, List<Transform> allTransforms)
 {
     foreach(Transform curTransform in allTransforms){
         if(!(ignoreRootObjects && curTransform.parent == null && curTransform.childCount > 0) && (affectedLayers.value & 1<<curTransform.gameObject.layer) != 0){
             pGrid.AlignRotateTransform(curTransform, lockAxes);
             if(inculdeChildren){
                 foreach(Transform child in curTransform){
                     pGrid.AlignRotateTransform(child, lockAxes);
                 }
             }
         }
     }
 }