文档

Unity Engine


User Manual

Script Reference

Unity Engine


eventCameras

The list of Event Cameras used to transform screen positions into world-space rays.
阅读时间1 分钟最后更新于 1 个月前

Definition

public Camera[] eventCameras { get; set; }

Remarks

If multiple Event Cameras are specified, the Event Cameras are processed sequentially until one of the cameras produces a ray that hits a Collider.
If no Event Camera is specified, screen-based events are disabled.
If World Space input is disabled, this property has no effect.