defaultEventCameraIsMainCamera
This option is enabled by default, automatically selecting the Main Camera (if available) as the Event Camera to transform screen positions into world-space rays.
Read time 1 minuteLast updated 8 days ago
Definition
- Type: Property
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public bool defaultEventCameraIsMainCamera { get; set; }
Remarks
If the Main Camera changes, the Event Camera is updated automatically with the new Camera.
If no Main Camera is active, screen-based events are disabled until a Main Camera becomes active again.
If World Space input is disabled, this property has no effect.