本文整理汇总了C#中OVRCameraController.GetCamera方法的典型用法代码示例。如果您正苦于以下问题:C# OVRCameraController.GetCamera方法的具体用法?C# OVRCameraController.GetCamera怎么用?C# OVRCameraController.GetCamera使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OVRCameraController
的用法示例。
在下文中一共展示了OVRCameraController.GetCamera方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetOVRCameraController
// SetOVRCameraController
public void SetOVRCameraController(ref OVRCameraController cameraController)
{
CameraController = cameraController;
CameraController.GetCamera(ref MainCam);
if(CameraController.PortraitMode == true)
{
float tmp = DeadZoneX;
DeadZoneX = DeadZoneY;
DeadZoneY = tmp;
}
}
示例2: SetOVRCameraController
/// <summary>
/// Sets the OVR camera controller.
/// </summary>
/// <param name="cameraController">Camera controller.</param>
public void SetOVRCameraController(ref OVRCameraController cameraController)
{
CameraController = cameraController;
CameraController.GetCamera(ref MainCam);
}
示例3: SetOVRCameraController
// SetOVRCameraController
public void SetOVRCameraController(ref OVRCameraController camera_controller)
{
m_CameraController = camera_controller;
m_CameraController.GetCamera(ref m_MainCamera);
if(m_CameraController.PortraitMode == true)
{
float tmp = m_DeadZoneX;
m_DeadZoneX = m_DeadZoneY;
m_DeadZoneY = tmp;
}
}