(Created page with "SUICanvas is root component for UI elements. =Properties= {{ScriptFunction|bool|IsRootCanvas|{get;}|The avoidance radius for the agent.|5=local canvas=Space.Host.GetReferen...") |
|||
Line 35: | Line 35: | ||
{{ScriptFunction|int|TargetDisplay|{get; set;}|For Overlay mode, display index on which the UI canvas will appear.|5=local canvas=Space.Host.GetReference("Canvas").UICanvas<br> | {{ScriptFunction|int|TargetDisplay|{get; set;}|For Overlay mode, display index on which the UI canvas will appear.|5=local canvas=Space.Host.GetReference("Canvas").UICanvas<br> | ||
Space.Log(canvas.TargetDisplay) | Space.Log(canvas.TargetDisplay) | ||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
SUICanvas is root component for UI elements.
The avoidance radius for the agent.
Space.Log(canvas.IsRootCanvas)
If a sprite has this "Pixels Per Unit" setting, then one pixel in the sprite will cover one unit in the UI.
Space.Log(canvas.ScaleFactor)
Scales all UI elements in the Canvas by this factor.
Space.Log(canvas.ReferencePixelsPerUnit)
Should the UI be rendered without antialiasing for precision?
The distance at which the UI plane should be placed in front of the camera.
Space.Log(canvas.PlaneDistance)
Canvas' order within a sorting layer.
Space.Log(canvas.SortingOrder)
For Overlay mode, display index on which the UI canvas will appear.
The normalized grid size that the canvas will split the renderable area into.
Space.Log(canvas.NormalizedSortingGridSize)
|