Hi there, in Unity I make intense use of the [Tooltip()] attribute, but can’t find something comparable in Needle. When I write a tooltip in the C# sidecar class, the tooltip is gone the next time I change the TS script.
I’m all for not documenting in code because it should be self-explanatory, but for the user front end in Unity I often use it for clarification. So thumbs up for this feature.
I will not be able to solve this. This is what I tried so far.
//@tooltip 11 If true, the element will be hidden on enable and shown on disable
@serializeable()
switchOnEnableDisable: boolean = true;
@serializeable()
//@tooltip 22 If true, the element will be hidden on enable and shown on disable
switchOnStartDestroy: boolean = false;
//@tooltip Foo is bar
foobar: boolean = false;
Ahh… OK! The clean install raised the Generator version. And now Tooltips are present. Thank you.
Fyi: while the update Unity Console puts out some errors like “EBUSY: resource busy or locked”. This is because VSCode or VS or bothe are locking some Unity files. Solution to this is simply closing VSCode & VS and try again.
Yes im aware of that but im not sure what a good solution is (since files can be locked by any process technically) - do you think adding a special log when this message appears with some potential reasons would help?
It is an UNity “bug” or behaviour that I conquer for years. Its has nothing to do with Needle. But faceing this issue sometime needs lots of time to tackle, so I do want inform about that.