Class VRSetup
Syntax
public class VRSetup : MonoBehaviour, IUsesMoveCameraRig, IFunctionalitySubscriber<IProvidesMoveCameraRig>, IUsesSpatialHash, IFunctionalitySubscriber<IProvidesSpatialHash>, IFunctionalitySubscriber
Fields
m_AutoEnable
Declaration
protected bool m_AutoEnable
Field Value
m_EditingContextManagerInstance
Declaration
protected GameObject m_EditingContextManagerInstance
Field Value
Type |
Description |
GameObject |
|
m_EditingContextManagerPrefab
Declaration
protected GameObject m_EditingContextManagerPrefab
Field Value
Type |
Description |
GameObject |
|
m_FreeCamController
Declaration
protected FreeCamController m_FreeCamController
Field Value
m_GameObjectsToDisable
Declaration
protected List<GameObject> m_GameObjectsToDisable
Field Value
Type |
Description |
List<GameObject> |
|
m_GameObjectsToEnable
Declaration
protected List<GameObject> m_GameObjectsToEnable
Field Value
Type |
Description |
List<GameObject> |
|
m_InitialCameraParent
Declaration
protected Transform m_InitialCameraParent
Field Value
Type |
Description |
Transform |
|
m_InitialCanvasParent
Declaration
protected Transform m_InitialCanvasParent
Field Value
Type |
Description |
Transform |
|
m_InitialFOV
Declaration
protected float m_InitialFOV
Field Value
m_Initialized
Declaration
protected bool m_Initialized
Field Value
Declaration
protected Transform m_InitialPlayerTransform
Field Value
Type |
Description |
Transform |
|
m_MainCamera
Declaration
protected Camera m_MainCamera
Field Value
Declaration
protected List<UnityEvent> m_MenuActions
Field Value
Type |
Description |
List<UnityEvent> |
|
Declaration
protected UnityEvent m_MenuCancelAction
Field Value
Type |
Description |
UnityEvent |
|
Declaration
protected MultipleRayInputModule m_MultipleRayInputModule
Field Value
m_PreviousHideFlags
Declaration
protected HideFlags m_PreviousHideFlags
Field Value
Type |
Description |
HideFlags |
|
m_PreviousQuality
Declaration
protected SettingsTopMenu.Quality m_PreviousQuality
Field Value
Declaration
protected SettingsTopMenu m_SettingsMenu
Field Value
m_UICanvas
Declaration
protected Canvas m_UICanvas
Field Value
m_UICanvasSize
Declaration
protected Vector2 m_UICanvasSize
Field Value
m_UserPresenceState
Declaration
protected UserPresenceState m_UserPresenceState
Field Value
Type |
Description |
UserPresenceState |
|
m_VRModeEnabled
Declaration
protected bool m_VRModeEnabled
Field Value
Properties
IsVRModeEnabled
Declaration
public bool IsVRModeEnabled { get; }
Property Value
provider
Declaration
public IProvidesSpatialHash provider { get; set; }
Property Value
Implements
Methods
AreAllVRDevicesValid()
Declaration
public bool AreAllVRDevicesValid()
Returns
Attach()
Declaration
Detach()
Declaration
EnableVR(Boolean)
Declaration
public void EnableVR(bool isEnabled)
Parameters
Type |
Name |
Description |
Boolean |
isEnabled |
|
Declaration
protected void InitCameraTransform()
Declaration
public void InvokeMenuAction(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
OnApplicationQuit()
Declaration
protected void OnApplicationQuit()
OnDestroy()
Declaration
protected void OnDestroy()
ResetCanvas()
Declaration
protected void ResetCanvas()
Declaration
public Canvas SetupCanvas(Transform canvasParent)
Parameters
Type |
Name |
Description |
Transform |
canvasParent |
|
Returns
ShowModulesAndCameraRig(Boolean)
Declaration
protected void ShowModulesAndCameraRig(bool show)
Parameters
Start()
Declaration
Update()
Declaration
Explicit Interface Implementations
IFunctionalitySubscriber<IProvidesMoveCameraRig>.provider
Declaration
IProvidesMoveCameraRig IFunctionalitySubscriber<IProvidesMoveCameraRig>.provider { get; set; }
Returns
Implements
Extension Methods
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.