-
Notifications
You must be signed in to change notification settings - Fork 330
DOCS: Update documentation for MonoBehaviour OnMouse events (ISX-2383) #2301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
4fc833e
59a1472
1efe475
17a76e3
778197b
28ba0c9
5090dd4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,5 +34,4 @@ The following is a list of known limitations that the Input System currently has | |
|
|
||
| ## Features Supported by Old Input Manager | ||
|
|
||
| * `MonoBehaviour` mouse methods (`OnMouseEnter`, `OnMouseDrag`, etc) will not be called by the Input System. | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IMO this line should be kept with a mention that it is true up to 6.4 |
||
| * Unity Remote doesn't currently support the Input System. This is being worked on. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -99,6 +99,8 @@ Directly reading hardware controls bypasses the new Input System's action-based | |
|
|
||
| ### Mouse | ||
|
|
||
| The MonoBehaviour.OnMouse events such as [MonoBehaviour.OnMouseDown()](https://docs.unity3d.com/ScriptReference/MonoBehaviour.OnMouseDown.html) are supported using the Unity Editor 6.4 or newer. | ||
|
||
|
|
||
| |Input Manager (Old)|Input System (New)| | ||
| |--|--| | ||
| [`Input.GetMouseButton`](https://docs.unity3d.com/ScriptReference/Input.GetMouseButton.html)<br/>Example: `Input.GetMouseButton(0)`|Use [`isPressed`](xref:UnityEngine.InputSystem.Controls.ButtonControl.isPressed) on the corresponding mouse button.<br/>Example: `InputSystem.Mouse.current.leftButton.isPressed` | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.