Player |
The PlayerMouse type exposes the following members.
| Name | Description | |
|---|---|---|
| animation | (Inherited from Component) Obsolete | |
| audio | (Inherited from Component) Obsolete | |
| 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 | (Inherited from Component) Obsolete | |
| clampToMovementArea | If enabled, movement will be clamped to the movementArea. | |
| collider | (Inherited from Component) Obsolete | |
| collider2D | (Inherited from Component) Obsolete | |
| constantForce | (Inherited from Component) Obsolete | |
| 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 | (Inherited from Component) Obsolete | |
| guiText | (Inherited from Component) Obsolete | |
| guiTexture | (Inherited from Component) Obsolete | |
| hideFlags | (Inherited from Object) | |
| hingeJoint | (Inherited from Component) Obsolete | |
| isActiveAndEnabled | (Inherited from Behaviour) | |
| leftButton | The left or first button. | |
| light | (Inherited from Component) Obsolete | |
| 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 | (Inherited from Component) Obsolete | |
| particleSystem | (Inherited from Component) Obsolete | |
| 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 | (Inherited from Component) Obsolete | |
| rightButton | The right or second button. | |
| rigidbody | (Inherited from Component) Obsolete | |
| rigidbody2D | (Inherited from Component) Obsolete | |
| 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. |