Closed mpeelen closed 6 days ago
Calls to ManualMixerState.Set(int index, AnimancerState child, bool destroyPrevious) yield a slightly inaccurate IndexOutOfRangeException.
ManualMixerState.Set(int index, AnimancerState child, bool destroyPrevious)
In case of index == _ChildCount the message reads: $"Invalid child index. Must be 0 <= index <= {nameof(ChildCount)} ({ChildCount})}".
index == _ChildCount
$"Invalid child index. Must be 0 <= index <= {nameof(ChildCount)} ({ChildCount})}"
I ended up replacing the above message with $"Invalid child index {index}. Must be 0 <= index < {nameof(ChildCount)} ({ChildCount}).".
$"Invalid child index {index}. Must be 0 <= index < {nameof(ChildCount)} ({ChildCount})."
You are correct, thanks for letting me know. This will be fixed in the next version.
Animancer v8.0 is now available for Alpha Testing and includes this fix..
Animancer v8.0 is now fully released.
Environment
Description
Calls to
ManualMixerState.Set(int index, AnimancerState child, bool destroyPrevious)
yield a slightly inaccurate IndexOutOfRangeException.In case of
index == _ChildCount
the message reads:$"Invalid child index. Must be 0 <= index <= {nameof(ChildCount)} ({ChildCount})}"
.I ended up replacing the above message with
$"Invalid child index {index}. Must be 0 <= index < {nameof(ChildCount)} ({ChildCount})."
.