Click or drag to resize
SpriteRenderer Constructor (SpriteSheet, MaterialAPI, Boolean)
Create the sprite renderer component.

Namespace:  GeonBit.ECS.Components.Graphics
Assembly:  GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public SpriteRenderer(
	SpriteSheet spritesheet,
	MaterialAPI material,
	bool faceCamera = true
)

Parameters

spritesheet
Type: GeonBit.Core.GraphicsSpriteSheet
Spritesheet data.
material
Type: GeonBit.Core.Graphics.MaterialsMaterialAPI
Material to use with this sprite.
faceCamera (Optional)
Type: SystemBoolean
If true, will always face camera. If false will use node's rotation.
See Also