文档

Unity Engine

Unity Engine

WebCam

Request permission to use any video input sources attached to the device.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
WebCam = 1

Remarks

You need to ask permission for access to the camera on iOS and Web platforms. You can project the feed of webcams, integrated cameras, and external cameras onto a Texture, GameObject or RawImage in your application. Use WebCamTexture to use your camera feed on the texture of an object.
Access to cameras is required especially for the following features:
  • Augmented Reality (AR)
  • Mixed reality (MR)
  • Gesture-based mechanics
  • Photo or video filters
  • Real-time in-app communication.