private void RenderMakeSelectionDynamicButton()
 {
     if (GUILayout.Button(GetContentForMakeSelectionDynamicButton(), GUILayout.Width(110.0f)))
     {
         List <GameObject> allSelectedObjects = ObjectSelection.Get().GetAllSelectedGameObjects();
         UndoEx.RecordForToolAction(allSelectedObjects);
         ObjectActions.MakeObjectsDynamic(allSelectedObjects);
     }
 }
Пример #2
0
 private void RenderMakeActiveGroupDynamicButton()
 {
     if (GUILayout.Button(GetContentForMakeActiveGroupDynamicButton()))
     {
         List <GameObject> allObjectsInActivegroup = _database.ActiveGroup.GroupObject.GetAllChildrenIncludingSelf();
         UndoEx.RecordForToolAction(allObjectsInActivegroup);
         ObjectActions.MakeObjectsDynamic(allObjectsInActivegroup);
     }
 }