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.
|
protected HandleConstantPhysicalSize ( ) : void | ||
return | void |
protected HandleScaleWithScreenSize ( ) : void | ||
return | void |
protected SetReferencePixelsPerUnit ( float referencePixelsPerUnit ) : void | ||
referencePixelsPerUnit | float | |
return | void |
protected SetScaleFactor ( float scaleFactor ) : void | ||
scaleFactor | float | The scale factor to use. |
return | void |