VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
override void AVR.UEditor.Core.AVR_WizardHook_SimpleToggle< Wiz, Mod >.on_submit ( GameObject  targetObject)
inlinevirtual

Reimplemented from AVR.UEditor.Core.AVR_WizardHook< Wiz >.

Reimplemented in AVR.UEditor.Core.AVR_PlayerRigWizard_Hook_AvatarModule.

Definition at line 167 of file AVR_HookableWizard.cs.

168  {
169  if (module && _module.Length < 1)
170  {
171  AVR_EditorUtility.InstantiatePrefabAsChild(targetObject.transform, prefabPathSettingsToken);
172  }
173  else if (!module && _module.Length > 0)
174  {
175  foreach (Mod c in _module) safeDestroyImmediate(c.gameObject, targetObject);
176  }
177  }
virtual void safeDestroyImmediate(GameObject toDestroy, GameObject wizardTarget)