API reference
API reference
Select your platform
No SDKs available
No versions available

CanvasRenderTexture Class

Extends MonoBehaviour
A component that, given a Canvas, renders the canvas to a RenderTexture.
Used in Interaction SDK's curved canvas. Each render mode has a unique use case.

Member Enumerations

Enumeration DriveMode

Auto
No description available
Manual
No description available

Fields

const int DEFAULT_UI_LAYERMASK[Get]
LayerMask RenderingLayers[Get]
Action< Texture > OnUpdateRenderTexture[Get]
Camera OverlayCamera[Get]
Texture Texture[Get]

Properties

int RenderScale[Get]

Protected Fields

bool _started[Get]

Member Functions

Vector2Int CalcAutoResolution ( )
Vector2Int GetBaseResolutionToUse ( )
Vector2Int GetScaledResolutionToUse ( )
float PixelsToUnits
( float pixels )
float UnitsToPixels
( float units )
void InjectAllCanvasRenderTexture
( Canvas canvas,
int pixelsPerUnit,
int renderScale,
LayerMask renderingLayers,
bool generateMipMaps )
void InjectCanvas
( Canvas canvas )
void InjectPixelsPerUnit
( int pixelsPerUnit )
void InjectRenderScale
( int renderScale )
void InjectRenderingLayers
( LayerMask renderingLayers )
void InjectGenerateMipMaps
( bool generateMipMaps )

Protected Functions

void Start ( )
void OnEnable ( )
void OnDisable ( )
void UpdateCamera ( )
void UpdateRenderTexture ( )
GameObject CreateChildObject
( string name )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon