ドキュメント

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.