GeonBit Documentation
GeonBit Documentation
GeonBit
GeonBit.ECS.Components.Graphics
SpriteRenderer Class
SpriteRenderer Constructor
SpriteRenderer Constructor (SpriteSheet, MaterialAPI, Boolean)
SpriteRenderer Constructor (SpriteSheet, Texture2D, Boolean, Boolean)
SpriteRenderer Constructor (SpriteSheet, String, Boolean, Boolean)
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#
Copy
public
SpriteRenderer
(
SpriteSheet
spritesheet
,
MaterialAPI
material
,
bool
faceCamera
=
true
)
Parameters
spritesheet
Type:
GeonBit.Core.Graphics
SpriteSheet
Spritesheet data.
material
Type:
GeonBit.Core.Graphics.Materials
MaterialAPI
Material to use with this sprite.
faceCamera
(Optional)
Type:
System
Boolean
If true, will always face camera. If false will use node's rotation.
See Also
Reference
SpriteRenderer Class
SpriteRenderer Overload
GeonBit.ECS.Components.Graphics Namespace
GeonBit ECS game Engine. By Ronen Ness, 2017.
Send comments on this topic to
ronenness@gmail.com