C# Class UnityEngine.UI.CanvasScaler

Inheritance: UnityEngine.EventSystems.UIBehaviour
Afficher le fichier Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Méthodes protégées

Méthode 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 méthode

protected CanvasScaler ( ) : System
Résultat System

Handle() protected méthode

Method that handles calculations of canvas scaling.

protected Handle ( ) : void
Résultat void

HandleConstantPhysicalSize() protected méthode

Handles canvas scaling for a constant physical size.

protected HandleConstantPhysicalSize ( ) : void
Résultat void

HandleConstantPixelSize() protected méthode

Handles canvas scaling for a constant pixel size.

protected HandleConstantPixelSize ( ) : void
Résultat void

HandleScaleWithScreenSize() protected méthode

Handles canvas scaling that scales with the screen size.

protected HandleScaleWithScreenSize ( ) : void
Résultat void

HandleWorldCanvas() protected méthode

Handles canvas scaling for world canvas.

protected HandleWorldCanvas ( ) : void
Résultat void

OnDisable() protected méthode

See MonoBehaviour.OnDisable.

protected OnDisable ( ) : void
Résultat void

OnEnable() protected méthode

protected OnEnable ( ) : void
Résultat void

OnValidate() protected méthode

protected OnValidate ( ) : void
Résultat void

SetReferencePixelsPerUnit() protected méthode

Sets the referencePixelsPerUnit on the Canvas.

protected SetReferencePixelsPerUnit ( float referencePixelsPerUnit ) : void
referencePixelsPerUnit float
Résultat void

SetScaleFactor() protected méthode

Sets the scale factor on the canvas.

protected SetScaleFactor ( float scaleFactor ) : void
scaleFactor float The scale factor to use.
Résultat void

Update() protected méthode

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

protected Update ( ) : void
Résultat void