Class CurvedUIInputModule
- Namespace
- DefaultNamespace
- Assembly
- Assembly-CSharp.dll
[ExecuteInEditMode]
public class CurvedUIInputModule : StandaloneInputModule
- Inheritance
-
UIBehaviour
BaseInputModule
PointerInputModule
StandaloneInputModule
CurvedUIInputModule
- Inherited Members
-
- Extension Methods
-
Constructors
public CurvedUIInputModule()
Fields
[SerializeField]
public CurvedUIInputModule.CUIControlMethod controlMethod
Field Value
- CurvedUIInputModule.CUIControlMethod
public GameObject currentDragging
Field Value
- GameObject
public GameObject currentPointedAt
Field Value
- GameObject
public Ray customControllerRay
Field Value
- Ray
public static bool disableOtherInputModulesOnStart
Field Value
- bool
public float dragThreshold
Field Value
- float
[SerializeField]
public float gazeClickTimer
Field Value
- float
[SerializeField]
public float gazeClickTimerDelay
Field Value
- float
[SerializeField]
public Image gazeTimedClickProgressImage
Field Value
- Image
public float gazeTimerProgress
Field Value
- float
[SerializeField]
public bool gazeUseTimedClick
Field Value
- bool
public static CurvedUIInputModule instance
Field Value
- CurvedUIInputModule
public Vector2 lastEventDataPosition
Field Value
- Vector2
public Vector3 lastMouseOnScreenPos
Field Value
- Vector3
public Vector2 lastWorldSpaceMouseOnCanvas
Field Value
- Vector2
public GameObject m_leftController
Field Value
- GameObject
public GameObject m_rightController
Field Value
- GameObject
mainEventCamera
[SerializeField]
public Camera mainEventCamera
Field Value
- Camera
[SerializeField]
public Transform pointerTransformOverride
Field Value
- Transform
Field Value
- bool
public bool pressedLastFrame
Field Value
- bool
[SerializeField]
public LayerMask raycastLayerMask
Field Value
- LayerMask
public PointerInputModule.MouseButtonEventData storedData
Field Value
- PointerInputModule.MouseButtonEventData
[SerializeField]
public string submitButtonName
Field Value
- string
[SerializeField]
public CurvedUIInputModule.Hand usedHand
Field Value
- CurvedUIInputModule.Hand
public Vector2 worldSpaceMouseInCanvasSpace
Field Value
- Vector2
public Vector2 worldSpaceMouseOnCanvasDelta
Field Value
- Vector2
[SerializeField]
public float worldSpaceMouseSensitivity
Field Value
- float
Properties
public static bool CanInstanceBeAccessed { get; }
Property Value
- bool
public static CurvedUIInputModule.CUIControlMethod ControlMethod { get; set; }
Property Value
- CurvedUIInputModule.CUIControlMethod
public Vector3 ControllerPointingDirection { get; }
Property Value
- Vector3
public Vector3 ControllerPointingOrigin { get; }
Property Value
- Vector3
public Transform ControllerTransform { get; }
Property Value
- Transform
public GameObject CurrentPointedAt { get; }
Property Value
- GameObject
[Obsolete("Use CustomControllerButtonState instead.")]
public static bool CustomControllerButtonDown { get; set; }
Property Value
- bool
public static bool CustomControllerButtonState { get; set; }
Property Value
- bool
public static Ray CustomControllerRay { get; set; }
Property Value
- Ray
public Camera EventCamera { get; set; }
Property Value
- Camera
public float GazeClickTimer { get; set; }
Property Value
- float
public float GazeClickTimerDelay { get; set; }
Property Value
- float
public Image GazeTimedClickProgressImage { get; set; }
Property Value
- Image
public float GazeTimerProgress { get; }
Property Value
- float
public bool GazeUseTimedClick { get; set; }
Property Value
- bool
public static CurvedUIInputModule Instance { get; set; }
Property Value
- CurvedUIInputModule
public static bool LeftMouseButton { get; }
Property Value
- bool
public static Vector2 MousePosition { get; }
Property Value
- Vector2
public Transform PointerTransformOverride { get; set; }
Property Value
- Transform
public LayerMask RaycastLayerMask { get; set; }
Property Value
- LayerMask
public CurvedUIInputModule.Hand UsedHand { get; set; }
Property Value
- CurvedUIInputModule.Hand
public Vector2 WorldSpaceMouseInCanvasSpace { get; set; }
Property Value
- Vector2
public Vector2 WorldSpaceMouseInCanvasSpaceDelta { get; }
Property Value
- Vector2
public float WorldSpaceMouseSensitivity { get; set; }
Property Value
- float
Methods
protected override void Awake()
public PointerEventData.FramePressState CustomRayFramePressedState()
Returns
- PointerEventData.FramePressState
public static T EnableInputModule<T>() where T : BaseInputModule
Returns
- T
Type Parameters
T
public Ray GetEventRay(Camera eventCam = null)
Parameters
eventCam
Camera
Returns
- Ray
protected override PointerInputModule.MouseState GetMousePointerEventData(int id)
Parameters
id
int
Returns
- PointerInputModule.MouseState
public override void Process()
public virtual void ProcessCustomRayController()
protected override void ProcessDrag(PointerEventData pointerEvent)
Parameters
pointerEvent
PointerEventData
public virtual void ProcessGaze()
public virtual void ProcessOculusVRController()
public void ProcessSteamVR2Controllers()
public virtual void ProcessViveControllers()
public void ScanForOculusPrefabs()
public bool ShouldStartDrag(Vector2 pressPos, Vector2 currentPos, float threshold, bool useDragThreshold)
Parameters
pressPos
Vector2
currentPos
Vector2
threshold
float
useDragThreshold
bool
Returns
- bool
protected override void Start()
public virtual void Update()