VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
override void AVR.UEditor.Core.AVR_ControllerWizard_Hook_ControllerVisual.on_submit ( GameObject  targetObject)
inlinevirtual

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

Definition at line 48 of file AVR_Controller_ModuleWizard.cs.

49  {
50  if (module && old_type != type)
51  {
52  foreach (AVR.Core.AVR_ControllerVisual c in _module) GameObject.DestroyImmediate(c.gameObject);
53  _module = new AVR.Core.AVR_ControllerVisual[0];
54  }
55 
56  switch (type)
57  {
58  case visualType.ViveController: { _token = "/editor/defaultPrefabPaths/viveControllerVisual"; break; }
59  case visualType.Cube: { _token = "/editor/defaultPrefabPaths/cubeControllerVisual"; break; }
60  case visualType.Sphere: { _token = "/editor/defaultPrefabPaths/sphereControllerVisual"; break; }
61  default: { AVR.Core.AVR_DevConsole.cwarn("It looks like the given visualType is not implemented: " + type.ToString(), "ControllerVisual Hook"); _token = "/editor/defaultPrefabPaths/viveControllerVisual"; break; }
62  }
63 
64  base.on_submit(targetObject);
65  }
Represents a visual of a controller, such as a 3d model or sprite.