Class Canvas
Assembly: UnityEngine.dll
Syntax
[RequireComponent(typeof(RectTransform))]
public sealed class Canvas : Behaviour
Properties
additionalShaderChannels
Declaration
public AdditionalCanvasShaderChannels additionalShaderChannels { get; set; }
Property Value
cachedSortingLayerValue
Declaration
public int cachedSortingLayerValue { get; }
Property Value
isRootCanvas
Declaration
public bool isRootCanvas { get; }
Property Value
normalizedSortingGridSize
Declaration
public float normalizedSortingGridSize { get; set; }
Property Value
overridePixelPerfect
Declaration
public bool overridePixelPerfect { get; set; }
Property Value
overrideSorting
Declaration
public bool overrideSorting { get; set; }
Property Value
pixelPerfect
Declaration
public bool pixelPerfect { get; set; }
Property Value
pixelRect
Declaration
public Rect pixelRect { get; }
Property Value
planeDistance
Declaration
public float planeDistance { get; set; }
Property Value
referencePixelsPerUnit
Declaration
public float referencePixelsPerUnit { get; set; }
Property Value
renderMode
Declaration
public RenderMode renderMode { get; set; }
Property Value
renderOrder
Declaration
public int renderOrder { get; }
Property Value
rootCanvas
Declaration
public Canvas rootCanvas { get; }
Property Value
scaleFactor
Declaration
public float scaleFactor { get; set; }
Property Value
sortingGridNormalizedSize
Declaration
[Obsolete("Setting normalizedSize via a int is not supported. Please use normalizedSortingGridSize", false)]
public int sortingGridNormalizedSize { get; set; }
Property Value
sortingLayerID
Declaration
public int sortingLayerID { get; set; }
Property Value
sortingLayerName
Declaration
public string sortingLayerName { get; set; }
Property Value
sortingOrder
Declaration
public int sortingOrder { get; set; }
Property Value
targetDisplay
Declaration
public int targetDisplay { get; set; }
Property Value
worldCamera
Declaration
public Camera worldCamera { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
ForceUpdateCanvases()
Declaration
public static void ForceUpdateCanvases()
GetDefaultCanvasMaterial()
Declaration
public static Material GetDefaultCanvasMaterial()
Returns
GetDefaultCanvasTextMaterial()
Declaration
[Obsolete("Shared default material now used for text and general UI elements, call Canvas.GetDefaultCanvasMaterial()", false)]
public static Material GetDefaultCanvasTextMaterial()
Returns
GetETC1SupportedCanvasMaterial()
Declaration
public static Material GetETC1SupportedCanvasMaterial()
Returns
Events
|
Improve this Doc
View Source
willRenderCanvases
Declaration
public static event Canvas.WillRenderCanvases willRenderCanvases
Event Type
Extension Methods