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.