[1554] When RuntimeAnimatorController is assigned to a field, all other fields become null.
tracked
kurotori
WorldSDK Version: 3.7.5
When defining a RuntimeAnimatorController as a field in UdonSharp, as shown in the code below, and assigning an AnimatorController to this field, all references to fields in the Udon script are lost during runtime in VRChat.
public class TestParameter : UdonSharpBehaviour
{
public RuntimeAnimatorController m_controller;
public Transform m_testParam;
[SerializeField]
public void Start()
{
Debug.Log($"TestParameter: m_controller is {Utilities.IsValid(m_controller)}");
Debug.Log($"TestParameter: m_testParam is {Utilities.IsValid(m_testParam)}");
}
}
In the sample code, if an AnimatorController is assigned to m_controller, the references to both m_testParam and m_controller are lost during runtime in VRChat.
If no value is assigned to the m_controller field, the reference for the m_testParam field remains intact.
This issue does not occur in ClientSim.
Log In
Jar
Still running into this
jetdog8808
ran into this issue as well.
tested in sdk 3.7.6 and 3.7.7-beta.1 vrc build [1608] both not working.
StormRel
tracked