Scripting API

CanvasScaler

class in UnityEngine.UI · UnityEngine.UI · inherits from UIBehaviour

30 of 31 of Unity's members
In Tassix

Sets a canvas's scale factor: constant, from the screen size against a reference resolution (matching width, height or a blend of the two in log space, expanding or shrinking), or from physical size. Runs when enabled, every Update, and before canvases update at the end of the frame.

Properties 10

float defaultSpriteDPI { get; set; }
float dynamicPixelsPerUnit { get; set; }
float fallbackScreenDPI { get; set; }
float matchWidthOrHeight { get; set; }
Unit physicalUnit { get; set; }
float referencePixelsPerUnit { get; set; }
Vector2 referenceResolution { get; set; }
float scaleFactor { get; set; }
ScreenMatchMode screenMatchMode { get; set; }
ScaleMode uiScaleMode { get; set; }

Not in Tassix yet 1

OnValidate

Checked against Unity

Conformance scenarios that exercise it, recorded in Unity and compared event by event.