文档

Unity Engine

Unity Engine

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.
阅读时间1 分钟最后更新于 1 个月前

Definition

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.