Texture Provider giving the camera texture that is the opposite of CameraTextureProvider. The provider will have LoadStatus.Loading until the camera feed is available. On some devices it will never be available. Use DeviceInfoSystem#supportsDualCamera to check the current device.

For example, if the CameraTextureProvider is providing the rear camera feed, ReverseCameraTextureProvider would provide the front camera feed.

// @input Component.Text displayText

global.deviceInfoSystem.supportsDualCamera(supportsDualCamera => {
if (supportsDualCamera) {
script.displayText.text = "Supports dual camera";
} else {
script.displayText.text = "Does not support dual camera";
}
})

Hierarchy (View Summary, Expand)

Constructors

Methods

  • Returns the texture's aspect ratio, which is calculated as width / height.

    Returns number

  • Returns the width of the texture in pixels.

    Returns number

  • Returns true if the object matches or derives from the passed in type.

    Parameters

    • type: string

    Returns boolean

  • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

    Parameters

    Returns boolean

MMNEPVFCICPMFPCPTTAAATR