C# Class tk2dSlicedSprite, Malisse

Inheritance: tk2dBaseSprite
Afficher le fichier Open project: Collegiennes/Malisse Class Usage Examples

Méthodes publiques

Свойство Type Description
borderBottom float
borderLeft float
borderRight float
borderTop float
legacyMode bool

Méthodes publiques

Méthode Description
Build ( ) : void
SetIndices ( ) : void

Méthodes protégées

Méthode 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

Méthode Description
Awake ( ) : void

The anchor position for this sliced sprite

UpdateCollider ( ) : void

Method Details

Build() public méthode

public Build ( ) : void
Résultat void

GetCurrentVertexCount() protected méthode

protected GetCurrentVertexCount ( ) : int
Résultat int

OnDestroy() protected méthode

protected OnDestroy ( ) : void
Résultat void

SetColors() protected méthode

protected SetColors ( Color dest ) : void
dest Color
Résultat void

SetGeometry() protected méthode

protected SetGeometry ( Vector3 vertices, Vector2 uvs ) : void
vertices Vector3
uvs Vector2
Résultat void

SetIndices() public méthode

public SetIndices ( ) : void
Résultat void

UpdateColors() protected méthode

protected UpdateColors ( ) : void
Résultat void

UpdateColorsImpl() protected méthode

protected UpdateColorsImpl ( ) : void
Résultat void

UpdateGeometry() protected méthode

protected UpdateGeometry ( ) : void
Résultat void

UpdateGeometryImpl() protected méthode

protected UpdateGeometryImpl ( ) : void
Résultat void

UpdateMaterial() protected méthode

protected UpdateMaterial ( ) : void
Résultat void

UpdateVertices() protected méthode

protected UpdateVertices ( ) : void
Résultat void

Property Details

borderBottom public_oe property

Bottom border in sprite fraction (0 - Bottom, 1 - Top)
public float borderBottom
Résultat float

borderLeft public_oe property

Left border in sprite fraction (0 - Left, 1 - Right)
public float borderLeft
Résultat float

borderRight public_oe property

Right border in sprite fraction (1 - Right, 0 - Left)
public float borderRight
Résultat float

borderTop public_oe property

Top border in sprite fraction (0 - Top, 1 - Bottom)
public float borderTop
Résultat 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
Résultat bool