Serialized button bug?

I’m having an issue with serializing a button, the generated property is

public UnityEngine.UIElements.Button @forwardButton;

if I change the type to
public UnityEngine.UI.Button @forwardButton;

it works but it’s a pain because every change regenerates de UIElements type

Original Post on Discord

by user 262331051802755072

You can override the type by adding a comment in typescript: //@type UnityEngine.UI.Button above your field

The table here (and the readme of our component compiler package) has those options documented Needle Engine Scripting | Needle Engine Documentation

of course! thanks!

by user 262331051802755072