文档

Unity Engine

Unity Engine

availableResolutions

Possible WebCamTexture resolutions for this device.
阅读时间1 分钟最后更新于 6 小时前

Definition

public Resolution[] availableResolutions { get; }

Remarks

Available on iOS and Android only. Returns null for other platforms.
Note: For webcams with depth data support (those of kind WebCamKind.ColorAndDepth) this array consists of one element only - resolution of the depth data based texture.
Additional Resources: Resolution, WebCamTexture.