HitReceiver Class

Summary

An sample component that demonstrates how Animancer.Samples.Jobs.SimpleLean can be used as a dynamic response to getting hit.
Assembly
Animancer.dll
Namespace
Animancer.Samples.Jobs
Base Types
  • MonoBehaviour
graph BT Type-->Base0["MonoBehaviour"] Type["HitReceiver"] class Type type-node

Syntax

[AddComponentMenu(Strings.SamplesMenuPrefix + "Jobs - Hit Receiver")]
[AnimancerHelpUrl(typeof(HitReceiver))]
public class HitReceiver : MonoBehaviour

Remarks

Sample: Hit Impacts

Attributes

Type Description
AddComponentMenu
AnimancerHelpUrlAttribute [Assert-Conditional] A UnityEngine.HelpURLAttribute which points to Animancer's documentation.

Methods

Name Value Summary
Awake() void
Hit(Vector3, float) void
Update() void