Interface ICursorModifier
Interface for cursor modifiers that can modify a GameObject's properties.
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Input
Assembly: cs.temp.dll.dll
Syntax
public interface ICursorModifier : IMixedRealityFocusChangedHandler, IEventSystemHandler
Properties
CursorNormalOffset
Direction of the IMixed
Declaration
Vector3 CursorNormalOffset { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
CursorParameters
IMixed
Declaration
AnimatorParameter[] CursorParameters { get; }
Property Value
Type | Description |
---|---|
Animator |
CursorPositionOffset
How much a IMixed
Declaration
Vector3 CursorPositionOffset { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
CursorScaleOffset
Scale of the IMixed
Declaration
Vector3 CursorScaleOffset { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
HideCursorOnFocus
Should the IMixed
Declaration
bool HideCursorOnFocus { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
HostTransform
Transform for which this IMixed
Declaration
Transform HostTransform { get; set; }
Property Value
Type | Description |
---|---|
Transform |
SnapCursorPosition
Should the IMixed
Declaration
bool SnapCursorPosition { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
UseGazeBasedNormal
If true, the normal from the pointing vector will be used to orient the IMixed
Declaration
bool UseGazeBasedNormal { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
GetCursorVisibility()
Indicates whether the IMixed
Declaration
bool GetCursorVisibility()
Returns
Type | Description |
---|---|
Boolean | True if IMixed |
GetModifiedPosition(IMixedRealityCursor)
Returns the IMixed
Declaration
Vector3 GetModifiedPosition(IMixedRealityCursor cursor)
Parameters
Type | Name | Description |
---|---|---|
IMixed |
cursor | IMixed |
Returns
Type | Description |
---|---|
Vector3 | New position for the IMixed |
GetModifiedRotation(IMixedRealityCursor)
Returns the IMixed
Declaration
Quaternion GetModifiedRotation(IMixedRealityCursor cursor)
Parameters
Type | Name | Description |
---|---|---|
IMixed |
cursor | IMixed |
Returns
Type | Description |
---|---|
Quaternion | New rotation for the IMixed |
GetModifiedScale(IMixedRealityCursor)
Returns the IMixed
Declaration
Vector3 GetModifiedScale(IMixedRealityCursor cursor)
Parameters
Type | Name | Description |
---|---|---|
IMixed |
cursor | IMixed |
Returns
Type | Description |
---|---|
Vector3 | New local scale for the IMixed |
GetModifiedTransform(IMixedRealityCursor, out Vector3, out Quaternion, out Vector3)
Returns the modified Transform for the IMixed
Declaration
void GetModifiedTransform(IMixedRealityCursor cursor, out Vector3 position, out Quaternion rotation, out Vector3 scale)
Parameters
Type | Name | Description |
---|---|---|
IMixed |
cursor | Cursor that is being modified. |
Vector3 | position | Modified position. |
Quaternion | rotation | Modified rotation. |
Vector3 | scale | Modified scale. |