You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using the Name property, which should be only used for generating the elements properties. Instead, I believe we should use the OriginalName since it contains the element's raw name as described in UXML.
馃悶Bug Report
Version: 1.2.0
Current behavior
When using
kebab-case
names in visual elements, such as:Rosalina binding generator generates bad query names in auto-generated code:
And then throws an
NullReferenceException
when interacting with the property.Expected Behavior
Rosalina bindings generator should generate the appropriate query:
Steps to Reproduce
kebab-case
Possible Solution
Might be related to this statement:
Rosalina/Editor/Scripts/Generator/RosalinaBindingsGenerator.cs
Line 169 in e5b8625
We are using the
Name
property, which should be only used for generating the elements properties. Instead, I believe we should use theOriginalName
since it contains the element's raw name as described in UXML.Rosalina/Editor/Scripts/Generator/UIProperty.cs
Lines 24 to 40 in e5b8625
The text was updated successfully, but these errors were encountered: