Class CharacterRenderer2D
Controls the character rendering for Sprites. This includes automatic animator set up and
also includes systems tinting the sprite for vfx.
Inheritance
System.Object
CharacterRenderer2D
Assembly: cs.temp.dll.dll
Syntax
public class CharacterRenderer2D : MonoBehaviour
Fields
CanTurnAround
Declaration
public bool CanTurnAround
Field Value
Type |
Description |
System.Boolean |
|
CharacterType
Declaration
public CharacterTypes CharacterType
Field Value
StartedFacingRight
Declaration
public bool StartedFacingRight
Field Value
Type |
Description |
System.Boolean |
|
Properties
CharacterState
Declaration
public CharacterState CharacterState { get; }
Property Value
Methods
OnInit()
Declaration
protected virtual void OnInit()
SetAnimationState(String, Single)
Declaration
public void SetAnimationState(string stateName, float animationFadeTime = 0.01F)
Parameters
Type |
Name |
Description |
System.String |
stateName |
|
System.Single |
animationFadeTime |
|