Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces features based on user suggestions, code cleaning and improves usage experience.
Manual generation
Suggested in #26
When creating a UXML document, the Rosalina automatic binding generator is disable. To enable it, you must right-click on the UXML file > Rosalina > Properties...
A new editor window opens next to the
Inspector
window and you can enable the code generation for this file by checking theEnable
checkbox.Additionnaly, you can now select which generator you want to use for the UXML file.
Generic usage
Suggestd in #26
Bindings generators now use
Q<T>()
method instead of(T)Q()
.Custom component
Suggested in #25
Added new UXML generator for custom components. Custom components are built by passing a
VisualElement
instance representing the root element of the component.Then if you add your custom component to a document, you will get the following generated code:
Settings improvement
Setting file was originaly placed in
/Assets/Rosalina
folder. It has been moved to the/ProjectSettings
folder and doesn't belong to the assets anymore.Also, you can view which files is acutally in the Rosalina is being processed by the AssetProcessor for bindings generation: