Same as title - I am sure this is quite an old issue though as I already have a workaround for it which is to have the gameobject active but use a script on it that disables it automatically on Start. Then setting that gameobject active after allows the UI to display otherwise it won’t show without that workaround.
It does not reproduce here right now. Can you check if your object reference is correct? Codegen for UI objects being referenced might now be exported as RectTransform references. This would be a bug in the codegen (previously all Transform references were exported as Object3D references but UI is now a special case where we actually have a RectTransform component type)
This is my test script
I have changed that in a new component compiler where it will now generate a GameObject field instead of a Transform field when you write obj : Object3D in typescript. That’s possibly a breaking change tho when scripts are being regenerated… I’m not sure if we should keep it or roll it back. But otherwise it would not be possible to know for sure what type is expected on export in Unity. So the change is the right one to make I think