hai-vr / av3-animator-as-code

Generate animator layers and animations from a fluent builder syntax. Initially designed for use in VRChat, this is now a generic package that does not require it.
https://docs.hai-vr.dev/docs/products/animator-as-code
MIT License
188 stars 14 forks source link

Define the default state of a layer `AacFlLayer WithDefaultState(AacFlState newDefaultState)` #2

Closed hai-vr closed 11 months ago

hai-vr commented 2 years ago

Use case that justifies creating the default state as not being the first created state:

I try to make a toggle script with a bool to reverse the default logic between shown and hidden. It looks a bit messy with the duplicated code in the if block just to have the order correct for the default state.

hai-vr commented 11 months ago

Was added