VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
override void AVR.UEditor.Phys.AVR_BasicGrabProvider_Editor.OnInspectorGUI ( )
inline

Definition at line 17 of file AVR_BasicGrabProvider_Editor.cs.

18  {
19  base.OnInspectorGUI();
20 
21  if(Application.isPlaying) {
22  if(GUILayout.Button("Debug Grab Toggle")) {
24  if(gp.isGrabbing) gp.makeRelease();
25  else gp.makeGrab();
26  }
27  }
28  }
Simplest GrabProvider. Grabbed objects will move their center (obj.transform.position) towards the re...
bool isGrabbing
Returns true if this provider is currently grabbing an object.