Experimental: this API is experimental and might be changed or removed in the future.

XRCameraSubsystem

class in UnityEngine.Experimental.XR

/

다음으로부터 상속:Experimental.Subsystem

매뉴얼로 전환

설명

Provides access to a device's camera.

The XRCameraSubsystem links a Unity Camera to a device camera for video overlay (pass-thru rendering). It also allows developers to query for environmental light estimation, when available.

변수

CameraSet current Camera component within the app to be used by this XRCameraInstance.
LastUpdatedFrameThe frame during which the camera subsystem was last successfully updated.
LightEstimationRequestedTrue if the XRCameraSubsystem should try to provide light estimation.
MaterialSet current Material to be used while rendering to the render target.

Public 함수

GetTexturesFills the provided texturesOut with the texture(s) associated with the XRCameraSubsystem.
TryGetAverageBrightnessProvides brightness for the whole image as an average of all pixels' brightness.
TryGetAverageColorTemperatureProvides color temperature for the whole image as an average of all pixels' color temperature.
TryGetDisplayMatrixProvides display matrix defining how texture is being rendered on the screen.
TryGetProjectionMatrixProvides projection matrix used by camera subsystem.
TryGetShaderNameProvides shader name used by Camera subsystem to render texture.
TryGetTimestampProvides timestamp.

Events

FrameReceivedEvent raised when a new camera frame is received.

상속된 멤버

Public 함수

DestroyDestroys this instance of a subsystem.
StartStarts an instance of a subsystem.
StopStops an instance of a subsystem.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961