Метод | Описание | |
---|---|---|
AddComponent ( GameObject go, tk2dSpriteCollectionData, spriteCollection, int spriteId ) : tk2dSprite, |
Adds a tk2dSprite as a component to the gameObject passed in, setting up necessary parameters and building geometry. Convenience alias of tk2dBaseSprite.AddComponent
|
|
Build ( ) : void | ||
CreateFromTexture ( |
Create a sprite (and gameObject) displaying the region of the texture specified. Use tk2dSpriteCollectionData.CreateFromTexture if you need to create a sprite collection with multiple sprites. Convenience alias of tk2dBaseSprite.CreateFromTexture
|
|
ForceBuild ( ) : void |
Метод | Описание | |
---|---|---|
GetCurrentVertexCount ( ) : int | ||
OnDestroy ( ) : void | ||
UpdateColors ( ) : void | ||
UpdateColorsImpl ( ) : void | ||
UpdateGeometry ( ) : void | ||
UpdateGeometryImpl ( ) : void | ||
UpdateMaterial ( ) : void | ||
UpdateVertices ( ) : void | ||
UpdateVerticesImpl ( ) : void |
Метод | Описание | |
---|---|---|
Awake ( ) : void |
public static AddComponent ( GameObject go, tk2dSpriteCollectionData, spriteCollection, int spriteId ) : tk2dSprite, | ||
go | GameObject | |
spriteCollection | tk2dSpriteCollectionData, | |
spriteId | int | |
Результат | tk2dSprite, |
public static CreateFromTexture ( |
||
texture | ||
size | tk2dRuntime | |
region | Rect | |
anchor | Vector2 | |
Результат | GameObject |