CharacterAnimancerComponent Class

Summary

An Animancer.AnimancerComponent which also manages a UnityEngine.SpriteRenderer and hit boxes.
Assembly
PlatformerGameKit.dll
Namespace
PlatformerGameKit.Characters
Base Types
  • AnimancerComponent
graph BT Type-->Base0["AnimancerComponent"] Type["CharacterAnimancerComponent"] class Type type-node

Syntax

[AddComponentMenu(Character.MenuPrefix + "Character Animancer Component")]
[HelpURL(Character.APIDocumentation + nameof(CharacterAnimancerComponent))]
public sealed class CharacterAnimancerComponent : AnimancerComponent

Remarks

Documentation: Animancer Component

Attributes

Type Description
AddComponentMenu
HelpURLAttribute

Properties

Name Value Summary
Character Character
Facing Vector2
The direction the PlatformerGameKit.Characters.CharacterAnimancerComponent.Renderer is facing.
FacingLeft bool
Is the PlatformerGameKit.Characters.CharacterAnimancerComponent.Renderer facing to the left?
FacingX float
The horizontal direction the PlatformerGameKit.Characters.CharacterAnimancerComponent.Renderer is facing.
Renderer SpriteRenderer

Methods

Name Value Summary
AddHitBox(HitData) void
Activates a PlatformerGameKit.HitTrigger for the `data`.
ClearHitBoxes() void
Clears all currently active PlatformerGameKit.HitTriggers.
EndHitSequence() void
Clears all currently active PlatformerGameKit.HitTriggers and the list of objects hit by the current attack.
Get(AnimancerNode) CharacterAnimancerComponent
Returns the PlatformerGameKit.Characters.CharacterAnimancerComponent associated with the `node`.
static
Get(AnimancerPlayable) CharacterAnimancerComponent
Returns the PlatformerGameKit.Characters.CharacterAnimancerComponent associated with the `animancer`.
static
GetCurrent() CharacterAnimancerComponent
Returns the PlatformerGameKit.Characters.CharacterAnimancerComponent associated with the Animancer.AnimancerEvent.CurrentState.
static
OnDisable() void
Calls PlatformerGameKit.Characters.CharacterAnimancerComponent.EndHitSequence.
RemoveHitBox(HitData) void
Deactivates a PlatformerGameKit.HitTrigger for the `data`.