Table of Contents

Class CurvedUIInputModule

Namespace
DefaultNamespace
Assembly
Assembly-CSharp.dll
[ExecuteInEditMode]
public class CurvedUIInputModule : StandaloneInputModule
Inheritance
UIBehaviour
BaseInputModule
PointerInputModule
StandaloneInputModule
CurvedUIInputModule
Inherited Members
Extension Methods

Constructors

CurvedUIInputModule()

public CurvedUIInputModule()

Fields

controlMethod

[SerializeField]
public CurvedUIInputModule.CUIControlMethod controlMethod

Field Value

CurvedUIInputModule.CUIControlMethod

currentDragging

public GameObject currentDragging

Field Value

GameObject

currentPointedAt

public GameObject currentPointedAt

Field Value

GameObject

customControllerRay

public Ray customControllerRay

Field Value

Ray

disableOtherInputModulesOnStart

public static bool disableOtherInputModulesOnStart

Field Value

bool

dragThreshold

public float dragThreshold

Field Value

float

gazeClickTimer

[SerializeField]
public float gazeClickTimer

Field Value

float

gazeClickTimerDelay

[SerializeField]
public float gazeClickTimerDelay

Field Value

float

gazeTimedClickProgressImage

[SerializeField]
public Image gazeTimedClickProgressImage

Field Value

Image

gazeTimerProgress

public float gazeTimerProgress

Field Value

float

gazeUseTimedClick

[SerializeField]
public bool gazeUseTimedClick

Field Value

bool

instance

public static CurvedUIInputModule instance

Field Value

CurvedUIInputModule

lastEventDataPosition

public Vector2 lastEventDataPosition

Field Value

Vector2

lastMouseOnScreenPos

public Vector3 lastMouseOnScreenPos

Field Value

Vector3

lastWorldSpaceMouseOnCanvas

public Vector2 lastWorldSpaceMouseOnCanvas

Field Value

Vector2

m_leftController

public GameObject m_leftController

Field Value

GameObject

m_rightController

public GameObject m_rightController

Field Value

GameObject

mainEventCamera

[SerializeField]
public Camera mainEventCamera

Field Value

Camera

pointerTransformOverride

[SerializeField]
public Transform pointerTransformOverride

Field Value

Transform

pressedDown

public bool pressedDown

Field Value

bool

pressedLastFrame

public bool pressedLastFrame

Field Value

bool

raycastLayerMask

[SerializeField]
public LayerMask raycastLayerMask

Field Value

LayerMask

storedData

public PointerInputModule.MouseButtonEventData storedData

Field Value

PointerInputModule.MouseButtonEventData

submitButtonName

[SerializeField]
public string submitButtonName

Field Value

string

usedHand

[SerializeField]
public CurvedUIInputModule.Hand usedHand

Field Value

CurvedUIInputModule.Hand

worldSpaceMouseInCanvasSpace

public Vector2 worldSpaceMouseInCanvasSpace

Field Value

Vector2

worldSpaceMouseOnCanvasDelta

public Vector2 worldSpaceMouseOnCanvasDelta

Field Value

Vector2

worldSpaceMouseSensitivity

[SerializeField]
public float worldSpaceMouseSensitivity

Field Value

float

Properties

CanInstanceBeAccessed

public static bool CanInstanceBeAccessed { get; }

Property Value

bool

ControlMethod

public static CurvedUIInputModule.CUIControlMethod ControlMethod { get; set; }

Property Value

CurvedUIInputModule.CUIControlMethod

ControllerPointingDirection

public Vector3 ControllerPointingDirection { get; }

Property Value

Vector3

ControllerPointingOrigin

public Vector3 ControllerPointingOrigin { get; }

Property Value

Vector3

ControllerTransform

public Transform ControllerTransform { get; }

Property Value

Transform

CurrentPointedAt

public GameObject CurrentPointedAt { get; }

Property Value

GameObject

CustomControllerButtonDown

[Obsolete("Use CustomControllerButtonState instead.")]
public static bool CustomControllerButtonDown { get; set; }

Property Value

bool

CustomControllerButtonState

public static bool CustomControllerButtonState { get; set; }

Property Value

bool

CustomControllerRay

public static Ray CustomControllerRay { get; set; }

Property Value

Ray

EventCamera

public Camera EventCamera { get; set; }

Property Value

Camera

GazeClickTimer

public float GazeClickTimer { get; set; }

Property Value

float

GazeClickTimerDelay

public float GazeClickTimerDelay { get; set; }

Property Value

float

GazeTimedClickProgressImage

public Image GazeTimedClickProgressImage { get; set; }

Property Value

Image

GazeTimerProgress

public float GazeTimerProgress { get; }

Property Value

float

GazeUseTimedClick

public bool GazeUseTimedClick { get; set; }

Property Value

bool

Instance

public static CurvedUIInputModule Instance { get; set; }

Property Value

CurvedUIInputModule

LeftMouseButton

public static bool LeftMouseButton { get; }

Property Value

bool

MousePosition

public static Vector2 MousePosition { get; }

Property Value

Vector2

PointerTransformOverride

public Transform PointerTransformOverride { get; set; }

Property Value

Transform

RaycastLayerMask

public LayerMask RaycastLayerMask { get; set; }

Property Value

LayerMask

UsedHand

public CurvedUIInputModule.Hand UsedHand { get; set; }

Property Value

CurvedUIInputModule.Hand

WorldSpaceMouseInCanvasSpace

public Vector2 WorldSpaceMouseInCanvasSpace { get; set; }

Property Value

Vector2

WorldSpaceMouseInCanvasSpaceDelta

public Vector2 WorldSpaceMouseInCanvasSpaceDelta { get; }

Property Value

Vector2

WorldSpaceMouseSensitivity

public float WorldSpaceMouseSensitivity { get; set; }

Property Value

float

Methods

Awake()

protected override void Awake()

CustomRayFramePressedState()

public PointerEventData.FramePressState CustomRayFramePressedState()

Returns

PointerEventData.FramePressState

EnableInputModule<T>()

public static T EnableInputModule<T>() where T : BaseInputModule

Returns

T

Type Parameters

T

GetEventRay(Camera)

public Ray GetEventRay(Camera eventCam = null)

Parameters

eventCam Camera

Returns

Ray

GetMousePointerEventData(int)

protected override PointerInputModule.MouseState GetMousePointerEventData(int id)

Parameters

id int

Returns

PointerInputModule.MouseState

Process()

public override void Process()

ProcessCustomRayController()

public virtual void ProcessCustomRayController()

ProcessDrag(PointerEventData)

protected override void ProcessDrag(PointerEventData pointerEvent)

Parameters

pointerEvent PointerEventData

ProcessGaze()

public virtual void ProcessGaze()

ProcessOculusVRController()

public virtual void ProcessOculusVRController()

ProcessSteamVR2Controllers()

public void ProcessSteamVR2Controllers()

ProcessViveControllers()

public virtual void ProcessViveControllers()

ScanForOculusPrefabs()

public void ScanForOculusPrefabs()

ShouldStartDrag(Vector2, Vector2, float, bool)

public bool ShouldStartDrag(Vector2 pressPos, Vector2 currentPos, float threshold, bool useDragThreshold)

Parameters

pressPos Vector2
currentPos Vector2
threshold float
useDragThreshold bool

Returns

bool

Start()

protected override void Start()

Update()

public virtual void Update()