SpriteEntity Constructor (SpriteSheet, Texture2D, Boolean) |
Create the sprite entity from texture and default material.
Namespace:
GeonBit.Core.Graphics
Assembly:
GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public SpriteEntity(
SpriteSheet spritesheet,
Texture2D texture,
bool useSharedMaterial = true
)
Parameters
- spritesheet
- Type: GeonBit.Core.GraphicsSpriteSheet
Spritesheet data for this sprite. - texture
- Type: Texture2D
Texture to use for this sprite. - useSharedMaterial (Optional)
- Type: SystemBoolean
If true, will use a shared material for all sprites with this texture. If false, will create a new material for this specific sprite instance.
See Also