Event OnAnimatorIK not fired
complete
ureishi
Udon version 2020.04.30.18.46
UdonBehavior does not execute OnAnimatorIK(int layerIndex) if it is called from the uGUI Event.
This may be due to the fact that the symbol string of the compiled Udon Assembly and the symbol recognized by Udon Behaviour are different.
(1st image) Udon Assembly's Symbol
(2nd image) Symbol recognized by UdonBehaviour(UdonBehaviour.cs, line 279)
It should correctly be "_onAnimatorIK" with a capital K at the end ( https://docs.unity3d.com/ja/current/ScriptReference/MonoBehaviour.OnAnimatorIK.html ).
Log In
Phasedragon
complete
Phasedragon
in progress
The latest open beta has fixed this
Phasedragon
Merged in a post:
OnAnimatorIK does not work through UDON.
コロイド
I use UDON sharp. OnAnimatorIK(int layerIndex){} method does not work.
I looked at UdonBehaviour.cs, and I think the description of " RunEvent("_onAnimatorIk", ("index", layerIndex));" in line 487 is wrong.
The correct value is "_onAnimatorI "K"", and I was able to confirm that it works in the Unity editor by changing the capital "K".
Merlin
Worth noting that the Udon Graph compiler will also export the method as '_onAnimatorIK', so this isn't just a U# thing.