You forgot to allow GetComponent for TMP_InputField
available in future release
aoiyu_
As it says in the title (SDK 3.6.1)
[UdonSharp] Assets/Prefabs/aoiyu_/Workarounds/Text2TMP.cs(17,51): Udon runtime exception detected!
An exception occurred during EXTERN to 'UnityEngineComponent.__GetComponent__T'.
Parameter Addresses: 0x00000006, 0x00000007, 0x00000003
The given key 'TMPro.TMP_InputField' was not present in the dictionary.
Log In
This post was marked as
available in future release
Genesis
The non-generic version of GetComponent works in the meantime:
public TMP_InputField InputField;
void Start()
{
InputField = (TMP_InputField)GetComponent(typeof(TMP_InputField)); // Works as intended
InputField = GetComponent<TMP_InputField>(); // Throws an exception
}
StormRel
tracked