chore: re introduce uitext wrapping #6228
Merged
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.
Re-introduced ui text wrap with no-wrap as the default behavior
How to test the changes?
Use the following url: PLAYGROUND A
On the URL, note that it contains
explorer-branch=chore%2Fre-introduce-uitext-wrapping
which means the Playground is using this branch. Then the URL follows with&code=
, note there's no mention of the SDK. This would be the case where an OLD scene is loaded:Label 1, doesn't have the property => text is not wrapped
Label 2, does have the property, with the value nowrap => text is not wrapped
Label 3, does have the property, with the value wrap => text is wrapped
On the left we can see the code for the 3 labels.
Use the following url: PLAYGROUND B
On the URL, note that it contains
explorer-branch=chore%2Fre-introduce-uitext-wrapping
which means the Playground is using this branch. Then the URL follows with?sdk-branch=chore%2Fre-introduce-uitext-wrapping
which means the Playground is using the SDK version with the new default behavior for wrapping text. This would be the case where a new scene is created:Label 1, doesn't have the property => text is wrapped
Label 2, does have the property, with the value nowrap => text is not wrapped
Label 3, does have the property, with the value wrap => text is wrapped
On the left we can see the code for the 3 labels.
Our Code Review Standards
https://github.com/decentraland/unity-renderer/blob/master/docs/code-review-standards.md
Copilot summary
copilot:summary