Documentation

Unity Engine

Unity Engine

PreUpdate.SendMouseEvents

Native Player loop system that sends mouse event messages, such as OnMouseDown and OnMouseEnter, to scripts.
Read time 1 minuteLast updated 5 days ago

Definition

public struct PreUpdate.SendMouseEvents

Remarks

This system is active only in Play mode, and only when the project's Active Input Handling is set to Input Manager (Old). When the project uses the Input System package, the package sends these messages instead, and this system doesn't do anything. In Players, this system sends these messages only if a script in the build uses them. For more information, refer to MonoBehaviour.OnMouseDown().
This struct identifies a native system in the Player loop. It has no members, and the system's update logic runs in native engine code. Use this type with PlayerLoopSystem.type to find the system when you reorder, replace, or remove it in a custom Player loop. For more information, refer to Customizing the Player loop.