Summary
An
Animancer.AnimancerComponent.Playable is being initialized while its UnityEngine.GameObject is
inactive.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Containing Type
- OptionalWarning
Syntax
CreateGraphWhileDisabled
Remarks
Unity will not call
Animancer.AnimancerComponent.OnDestroy if the UnityEngine.GameObject is never
enabled. That would prevent it from destroying the internal UnityEngine.Playables.PlayableGraph, leading to a
memory leak.
Animations usually shouldn't be played on inactive objects so you most likely just need to call
UnityEngine.GameObject.SetActive(System.Boolean) first.
If you do intend to use it while inactive, you will need to disable this warning and call
Animancer.AnimancerComponent.OnDestroy manually when the object is destroyed (such as when its scene is
unloaded).
Constant Value
| Value | Type |
|---|---|
| 2 | Int32 |