用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:canvas:canvas

Canvas 画布

class in UnityEngine/Inherits from: Behaviour

Description 描述

Element that can be used for screen rendering.

元素可用于屏幕呈现。

Elements on a canvas are rendered AFTER scene rendering, either from an attached camera or using overlay mode.
元素在画布上呈现的场景渲染后,从附加的相机或者使用叠加模式。

Variables 变量

cachedSortingLayerValueCached calculated value based upon SortingLayerID.
基于排序层ID的缓存计算值。
isRootCanvasIs this the root Canvas?
是否是根画布?
overridePixelPerfectAllows for nested canvases to override pixelPerfect settings inherited from parent canvases.
允许内置的画布继承父画布的重载像素保真设置。
overrideSortingOverride the sorting of canvas.
重载画布排序。
pixelPerfectForce elements in the canvas to be aligned with pixels. Only applies with renderMode is Screen Space.
强制画布上的元素与像素对其。仅在Screen Space模式下显示。
pixelRectGet the render rect for the Canvas.
获取画布的渲染的矩形。
planeDistanceHow far away from the camera is the Canvas generated.
摄像机到画布产生的距离多少。
referencePixelsPerUnitThe number of pixels per unit that is considered the default.
默认的单位像素的数量。
renderModescript/unityengine/classes/canvas/canvas.txt · 最后更改: 2016/08/02 05:36 (外部编辑)