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(val: CameraTexture.CropMode): this;
Sets which region of the camera frames that the texture will display.
Default value: Z.CameraTexture.CropMode.camera_full
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
val | Z.CameraTexture.CropMode | The region to display. |
Returns
Section titled “Returns”this