It missing UnityEngine.UI.xxxx
needle engine 4.16
unity 6000.0.69f1
Hi oot4chi,
Thank you for reaching out about the codegen bug with Unity UI scripts in Needle Engine. From the information provided, it sounds like you’re experiencing an issue where Unity UI functionalities (like UnityEngine.UI) are not being properly recognized or generated.
To help diagnose this issue, could you please provide the following details?
Additionally, considering you’re using Needle Engine 4.16 and Unity 6000.0.69f1, ensure that:
If you could provide these details, I can better assist you in resolving the issue.
Best regards,
[Your Name]
Sources: Needle Engine Docs (64%), Needle Engine Docs (62%), Needle Engine Docs (60%), Needle Engine Docs (59%), Needle Engine Docs (59%), Needle Engine Docs (58%), Needle Engine Docs (57%), Needle Engine API (56%), Needle Engine Docs (56%)
1 replies left - Become PRO for more replies.
Reply to this post directly if you need further help (bottom right button)
Hi could you share your source (TS)? Thank you
import {Button, CanvasGroup, serializable} from "@needle-tools/engine";
export class TabToPlay extends Behaviour
{
@serializable(CanvasGroup) canvasGroup_MainPage?: CanvasGroup;
@serializable(Button) buttonTapToStart?: Button;
}
Thanks. Did you try again in the meantime? A fix should been out.
If you need more control if certain types are unknown it’s also possible to add a @types comment above the field: Automatic Component Generation | docs
other built-in components too.such as BoxCollider ParticleSystem..etc
Was this something that worked prior to updating to 4.16?
update version “@needle-tools/engine”: “4.6.1” (worked) to “@needle-tools/engine”: “4.16.0” (bug)
Hi thanks, the new component compiler didn’t take the Unity types into account. It will be fixed with the next update.
This topic was automatically closed 13 days after the last reply. New replies are no longer allowed.