SF Tool Documentation
Search Results for

    Show / Hide Table of Contents

    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
    Namespace: SF.Characters
    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
    Type Description
    CharacterTypes

    StartedFacingRight

    Declaration
    public bool StartedFacingRight
    Field Value
    Type Description
    System.Boolean

    Properties

    CharacterState

    Declaration
    public CharacterState CharacterState { get; }
    Property Value
    Type Description
    CharacterState

    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
    In This Article
    Back to top Generated by DocFX