C# Class tk2dSlicedSprite, Malisse

Inheritance: tk2dBaseSprite
ファイルを表示 Open project: Collegiennes/Malisse Class Usage Examples

Public Properties

Property Type Description
borderBottom float
borderLeft float
borderRight float
borderTop float
legacyMode bool

Public Methods

Method Description
Build ( ) : void
SetIndices ( ) : void

Protected Methods

Method Description
GetCurrentVertexCount ( ) : int
OnDestroy ( ) : void
SetColors ( Color dest ) : void
SetGeometry ( Vector3 vertices, Vector2 uvs ) : void
UpdateColors ( ) : void
UpdateColorsImpl ( ) : void
UpdateGeometry ( ) : void
UpdateGeometryImpl ( ) : void
UpdateMaterial ( ) : void
UpdateVertices ( ) : void

Private Methods

Method Description
Awake ( ) : void

The anchor position for this sliced sprite

UpdateCollider ( ) : void

Method Details

Build() public method

public Build ( ) : void
return void

GetCurrentVertexCount() protected method

protected GetCurrentVertexCount ( ) : int
return int

OnDestroy() protected method

protected OnDestroy ( ) : void
return void

SetColors() protected method

protected SetColors ( Color dest ) : void
dest Color
return void

SetGeometry() protected method

protected SetGeometry ( Vector3 vertices, Vector2 uvs ) : void
vertices Vector3
uvs Vector2
return void

SetIndices() public method

public SetIndices ( ) : void
return void

UpdateColors() protected method

protected UpdateColors ( ) : void
return void

UpdateColorsImpl() protected method

protected UpdateColorsImpl ( ) : void
return void

UpdateGeometry() protected method

protected UpdateGeometry ( ) : void
return void

UpdateGeometryImpl() protected method

protected UpdateGeometryImpl ( ) : void
return void

UpdateMaterial() protected method

protected UpdateMaterial ( ) : void
return void

UpdateVertices() protected method

protected UpdateVertices ( ) : void
return void

Property Details

borderBottom public_oe property

Bottom border in sprite fraction (0 - Bottom, 1 - Top)
public float borderBottom
return float

borderLeft public_oe property

Left border in sprite fraction (0 - Left, 1 - Right)
public float borderLeft
return float

borderRight public_oe property

Right border in sprite fraction (1 - Right, 0 - Left)
public float borderRight
return float

borderTop public_oe property

Top border in sprite fraction (0 - Top, 1 - Bottom)
public float borderTop
return float

legacyMode public_oe property

Legacy mode (uses scale to adjust overall size). Newly created sprites should have this set to false.
public bool legacyMode
return bool