08-08-2018 01:24 AM
void Update ()
{
OVRInput.Update();
Debug.Log("Update");
if (OVRInput.Get(OVRInput.Button.Back))
OVRPlugin.ShowUI(new OVRPlugin.PlatformUI());
if (OVRInput.GetDown(OVRInput.Button.Back))
OVRPlugin.ShowUI(new OVRPlugin.PlatformUI());
}
public VRTK_ControllerEvents m_Event;
private void Start()
{
m_Event.ButtonTwoPressed += (sender, e) => { OVRPlugin.ShowUI(new OVRPlugin.PlatformUI()); };
m_Event.ButtonTwoReleased += (sender, e) => { OVRPlugin.ShowUI(new OVRPlugin.PlatformUI()); };
m_Event.ButtonTwoTouchStart += (sender, e) => { OVRPlugin.ShowUI(new OVRPlugin.PlatformUI()); };
m_Event.ButtonTwoTouchEnd += (sender, e) => { OVRPlugin.ShowUI(new OVRPlugin.PlatformUI()); };
}
01-31-2019 08:59 AM
02-01-2019 05:55 AM
03-01-2019 08:23 AM
03-01-2019 10:17 AM