KybernetikGames / animancer

Documentation for the Animancer Unity Plugin.
66 stars 8 forks source link

How to get fade duration in code #269

Closed kodra-dev closed 1 year ago

kodra-dev commented 1 year ago

ClipTransition doesn't seem to have a fadeDuration field. Then where is it stored? How could I get it in code?

KybernetikGames commented 1 year ago

Capitalized FadeDuration. It's defined in the base AnimancerTransition class. I'm not sure why it's not showing up in the ClipTransition API documentation page, it's probably just a bug in the documentation generator.

The transition scripts are located in Assets/Plugins/Animancer/Utilities/Transitions if you want to look at them.

kodra-dev commented 1 year ago

Oh I see... I assumed that the page shows properties/methods from the base class so I didn't even think of checking it ;'(

KybernetikGames commented 1 year ago

It should show up saying "inherited from ..." like this: image That's why I said it's probably a bug in the documentation generator.