You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the title says.
I am assigning an AnimatorOverrideController to the Animator component. But as soon as I do that the Animator Param stops working i.e. does not show the variables list. Instead gives me a warning that the Animator is null.
The text was updated successfully, but these errors were encountered:
Sadly NaughtyAttributes has not been updated for years with pending PRs...
You can use SaintsField as an enhancement of NaughtyAttributes, to get this thing work without migrating your existing code:
publicAnimatoranimator;// NaughtyAttributes' version[NaughtyAttributes.AnimatorParam(nameof(animator)),NaughtyAttributes.InfoBox("NaughtyAttributes' version:")]publicinttreasureOpenAnimTrigger;// SaintsField's version[SaintsField.AnimatorParam,SaintsField.InfoBox("SaintsField's version:")]publicinttreasureCloseAnimTrigger;// you can combine SaintsField with NaughtyAttributes[NaughtyAttributes.BoxGroup("Animator"),SaintsField.AnimatorParam]publicstringanimName;[NaughtyAttributes.BoxGroup("Animator"),SaintsField.AnimatorState]publicSaintsField.AnimatorStateanimState;
As the title says.
I am assigning an
AnimatorOverrideController
to the Animator component. But as soon as I do that the Animator Param stops working i.e. does not show the variables list. Instead gives me a warning that the Animator is null.The text was updated successfully, but these errors were encountered: