C# Class UnityEngine.CanvasRenderer

Inheritance: Component
ファイルを表示 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Private Properties

Property Type Description
Clear void
CreateUIVertexStreamInternal void
DisableRectClipping void
GetAlpha float
GetMaterial Material
GetPopMaterial Material
INTERNAL_CALL_EnableRectClipping void
INTERNAL_CALL_GetColor void
INTERNAL_CALL_SetColor void
RequestRefresh void
SetAlpha void
SetAlphaTexture void
SetMaterial void
SetMesh void
SetPopMaterial void
SetTexture void
SetVertices void
SetVertices void
SplitIndiciesStreamsInternal void
SplitUIVertexStreamsInternal void

Public Methods

Method Description
AddUIVertexStream ( List verts, List positions, List colors, List uv0S, List uv1S, List normals, List tangents ) : void
CreateUIVertexStream ( List verts, List positions, List colors, List uv0S, List uv1S, List normals, List tangents, List indicies ) : void
EnableRectClipping ( Rect rect ) : void

Enables rect clipping on the CanvasRendered. Geometry outside of the specified rect will be clipped (not rendered).

GetColor ( ) : Color

Get the current color of the renderer.

GetMaterial ( ) : Material

Gets the current Material assigned to the CanvasRenderer.

SetColor ( Color color ) : void

Set the color of the renderer. Will be multiplied with the UIVertex color and the Canvas color.

SetMaterial ( Material material, Texture texture ) : void

Set the material for the canvas renderer. If a texture is specified then it will be used as the 'MainTex' instead of the material's 'MainTex'. See Also: CanvasRenderer.SetMaterialCount, CanvasRenderer.SetTexture.

SplitUIVertexStreams ( List verts, List positions, List colors, List uv0S, List uv1S, List normals, List tangents, List indicies ) : void

Private Methods

Method Description
Clear ( ) : void
CreateUIVertexStreamInternal ( object verts, object positions, object colors, object uv0S, object uv1S, object normals, object tangents, object indicies ) : void
DisableRectClipping ( ) : void
GetAlpha ( ) : float
GetMaterial ( int index ) : Material
GetPopMaterial ( int index ) : Material
INTERNAL_CALL_EnableRectClipping ( CanvasRenderer self, Rect &rect ) : void
INTERNAL_CALL_GetColor ( CanvasRenderer self, Color &value ) : void
INTERNAL_CALL_SetColor ( CanvasRenderer self, Color &color ) : void
RequestRefresh ( ) : void
SetAlpha ( float alpha ) : void
SetAlphaTexture ( Texture texture ) : void
SetMaterial ( Material material, int index ) : void
SetMesh ( Mesh mesh ) : void
SetPopMaterial ( Material material, int index ) : void
SetTexture ( Texture texture ) : void
SetVertices ( List vertices ) : void
SetVertices ( UIVertex vertices, int size ) : void
SplitIndiciesStreamsInternal ( object verts, object indicies ) : void
SplitUIVertexStreamsInternal ( object verts, object positions, object colors, object uv0S, object uv1S, object normals, object tangents ) : void

Method Details

AddUIVertexStream() public static method

public static AddUIVertexStream ( List verts, List positions, List colors, List uv0S, List uv1S, List normals, List tangents ) : void
verts List
positions List
colors List
uv0S List
uv1S List
normals List
tangents List
return void

CreateUIVertexStream() public static method

public static CreateUIVertexStream ( List verts, List positions, List colors, List uv0S, List uv1S, List normals, List tangents, List indicies ) : void
verts List
positions List
colors List
uv0S List
uv1S List
normals List
tangents List
indicies List
return void

EnableRectClipping() public method

Enables rect clipping on the CanvasRendered. Geometry outside of the specified rect will be clipped (not rendered).

public EnableRectClipping ( Rect rect ) : void
rect Rect
return void

GetColor() public method

Get the current color of the renderer.

public GetColor ( ) : Color
return Color

GetMaterial() public method

Gets the current Material assigned to the CanvasRenderer.

public GetMaterial ( ) : Material
return Material

SetColor() public method

Set the color of the renderer. Will be multiplied with the UIVertex color and the Canvas color.

public SetColor ( Color color ) : void
color Color Renderer multiply color.
return void

SetMaterial() public method

Set the material for the canvas renderer. If a texture is specified then it will be used as the 'MainTex' instead of the material's 'MainTex'. See Also: CanvasRenderer.SetMaterialCount, CanvasRenderer.SetTexture.

public SetMaterial ( Material material, Texture texture ) : void
material Material Material for rendering.
texture Texture Material texture overide.
return void

SplitUIVertexStreams() public static method

public static SplitUIVertexStreams ( List verts, List positions, List colors, List uv0S, List uv1S, List normals, List tangents, List indicies ) : void
verts List
positions List
colors List
uv0S List
uv1S List
normals List
tangents List
indicies List
return void