cropMode( )
Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.
cropMode(): CameraTexture.CropMode;
Returns
Section titled “Returns”The region of the camera frames that this texture displays represented by Z.CameraTexture.CropMode
With cropMode set to “camera_full”, the texture will map full UV coordinates (0, 0) to (1, 1) to the full camera frame as received from the camera sensor. Ordinarily this frame will have a 4:3 aspect ratio but this should not be relied upon.
With a value of “screen_full” the texture will map full UV coordinates to the rectangle of the camera frame that is displayed on the device screen.
With a value of “screen_square” the texture will map full UV coordinates to the square central region of the camera frame that is displayed on the device screen.
Default value: Z.CameraTexture.CropMode.camera_full