C# Class UnityEngine.UI.CanvasScaler

Inheritance: UnityEngine.EventSystems.UIBehaviour
Show file Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Protected Methods

Method Description
CanvasScaler ( ) : System
Handle ( ) : void

Method that handles calculations of canvas scaling.

HandleConstantPhysicalSize ( ) : void

Handles canvas scaling for a constant physical size.

HandleConstantPixelSize ( ) : void

Handles canvas scaling for a constant pixel size.

HandleScaleWithScreenSize ( ) : void

Handles canvas scaling that scales with the screen size.

HandleWorldCanvas ( ) : void

Handles canvas scaling for world canvas.

OnDisable ( ) : void

See MonoBehaviour.OnDisable.

OnEnable ( ) : void
OnValidate ( ) : void
SetReferencePixelsPerUnit ( float referencePixelsPerUnit ) : void

Sets the referencePixelsPerUnit on the Canvas.

SetScaleFactor ( float scaleFactor ) : void

Sets the scale factor on the canvas.

Update ( ) : void

Handles per-frame checking if the canvas scaling needs to be updated.

Method Details

CanvasScaler() protected method

protected CanvasScaler ( ) : System
return System

Handle() protected method

Method that handles calculations of canvas scaling.

protected Handle ( ) : void
return void

HandleConstantPhysicalSize() protected method

Handles canvas scaling for a constant physical size.

protected HandleConstantPhysicalSize ( ) : void
return void

HandleConstantPixelSize() protected method

Handles canvas scaling for a constant pixel size.

protected HandleConstantPixelSize ( ) : void
return void

HandleScaleWithScreenSize() protected method

Handles canvas scaling that scales with the screen size.

protected HandleScaleWithScreenSize ( ) : void
return void

HandleWorldCanvas() protected method

Handles canvas scaling for world canvas.

protected HandleWorldCanvas ( ) : void
return void

OnDisable() protected method

See MonoBehaviour.OnDisable.

protected OnDisable ( ) : void
return void

OnEnable() protected method

protected OnEnable ( ) : void
return void

OnValidate() protected method

protected OnValidate ( ) : void
return void

SetReferencePixelsPerUnit() protected method

Sets the referencePixelsPerUnit on the Canvas.

protected SetReferencePixelsPerUnit ( float referencePixelsPerUnit ) : void
referencePixelsPerUnit float
return void

SetScaleFactor() protected method

Sets the scale factor on the canvas.

protected SetScaleFactor ( float scaleFactor ) : void
scaleFactor float The scale factor to use.
return void

Update() protected method

Handles per-frame checking if the canvas scaling needs to be updated.

protected Update ( ) : void
return void