PlayerMouse Properties |
The PlayerMouse type exposes the following members.
Name | Description | |
---|---|---|
![]() | animation | Obsolete. (Inherited from Component.) |
![]() | audio | Obsolete. (Inherited from Component.) |
![]() | axes |
The list of Axes in the controller.
(Inherited from PlayerController.) |
![]() | axisCount |
The number of Axes in the controller.
(Inherited from PlayerController.) |
![]() | buttonCount |
The number of Buttons in the controller.
(Inherited from PlayerController.) |
![]() | buttons |
The list of Buttons in the controller.
(Inherited from PlayerController.) |
![]() | camera | Obsolete. (Inherited from Component.) |
![]() | clampToMovementArea |
If enabled, movement will be clamped to the movementArea.
|
![]() | collider | Obsolete. (Inherited from Component.) |
![]() | collider2D | Obsolete. (Inherited from Component.) |
![]() | constantForce | Obsolete. (Inherited from Component.) |
![]() | defaultToCenter |
If enabled, the screen position will default to the center of the allowed movement area.
Otherwise, it will default to the lower-left corner of the allowed movement area.
|
![]() | elementCount |
The number of Elements in the controller.
(Inherited from PlayerController.) |
![]() | elements |
The list of Elements of all types in the controller.
(Inherited from PlayerController.) |
![]() | enabled | (Inherited from Behaviour.) |
![]() | gameObject | (Inherited from Component.) |
![]() | guiElement | Obsolete. (Inherited from Component.) |
![]() | guiText | Obsolete. (Inherited from Component.) |
![]() | guiTexture | Obsolete. (Inherited from Component.) |
![]() | hideFlags | (Inherited from Object.) |
![]() | hingeJoint | Obsolete. (Inherited from Component.) |
![]() | isActiveAndEnabled | (Inherited from Behaviour.) |
![]() | leftButton |
The left or first button.
|
![]() | light | Obsolete. (Inherited from Component.) |
![]() | middleButton |
The middle or third button.
|
![]() | movementArea |
The allowed movement area for the mouse pointer.
Set movementAreaUnit to determine the data format of this value.
This rect is a screen-space rect with 0, 0 at the lower-left corner.
If you pass a UnityEngine.Rect in which represents 0, 0 as the upper-left corner, Y will automatically be flipped.
|
![]() | movementAreaUnit |
The unit format of the movement area.
This is used to determine the data format of movementArea.
|
![]() | name | (Inherited from Object.) |
![]() | networkView | Obsolete. (Inherited from Component.) |
![]() | particleSystem | Obsolete. (Inherited from Component.) |
![]() | playerId |
The Player id of the Player used for the source of input.
(Inherited from PlayerController.) |
![]() | pointerSpeed |
The pointer speed. This does not affect the speed of input from the mouse x/y axes if
useHardwarePointerPosition is enabled. It only affects the speed
from input sources other than mouse x/y or if mouse x/y are mapped to Actions
assigned to Axes.
|
![]() | renderer | Obsolete. (Inherited from Component.) |
![]() | rightButton |
The right or second button.
|
![]() | rigidbody | Obsolete. (Inherited from Component.) |
![]() | rigidbody2D | Obsolete. (Inherited from Component.) |
![]() | runInEditMode | (Inherited from MonoBehaviour.) |
![]() | screenPosition |
The screen position on the current frame.
|
![]() | screenPositionDelta |
The change in screen position since the previous frame.
|
![]() | screenPositionPrev |
The screen position on the previous frame.
|
![]() | tag | (Inherited from Component.) |
![]() | transform | (Inherited from Component.) |
![]() | useGUILayout | (Inherited from MonoBehaviour.) |
![]() | useHardwarePointerPosition |
If enabled, the hardware pointer position will be used for mouse input.
Otherwise, the position of the pointer will be calculated only from
the Axis Action values.
|
![]() | wheel |
The wheel (or the first wheel if multiple exist.)
|
![]() | xAxis |
The horizontal axis or the first axis.
|
![]() | yAxis |
The vertical axis or the second axis.
|