-
Notifications
You must be signed in to change notification settings - Fork 792
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use context label in inspector when available #7004
Use context label in inspector when available #7004
Conversation
Also prevent context label from overlapping when empty Added label in inspector for spawning context Set the output mesh label in the same color as its border like other outputs
Hi! This comment will help you figure out which jobs to run before merging your PR. The suggestions are dynamic based on what files you have changed. VFX Depending on the scope of your PR, you may need to run more jobs than what has been suggested. Please speak to your lead or a Graphics SDET (#devs-graphics-automation) if you are unsure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
com.unity.visualeffectgraph/Editor/Inspector/VFXContextEditor.cs
Outdated
Show resolved
Hide resolved
Prevent context label from shifting when entering in edit mode Limit label length to 175 characters and limit height to 5 visible lines In the inspector, display labels on a single line even if there are line breaks In the inspector, move update label to the top
* Use context label in inspector when available Also prevent context label from overlapping when empty Added label in inspector for spawning context Set the output mesh label in the same color as its border like other outputs * Added missing context types to display lable in inspector * Updated changelog * Avoid context label to change color when hovering (it's not an interactive element) * Fixed formatiing issue * Cleaned up using * Hide context label while editing Prevent context label from shifting when entering in edit mode Limit label length to 175 characters and limit height to 5 visible lines In the inspector, display labels on a single line even if there are line breaks In the inspector, move update label to the top
Purpose of this PR
https://fogbugz.unity3d.com/f/cases/1363908/
OutputParticle contexts show a default letter in the inspector (A, B, C ...) but even when the user give a label to those contexts, the same letter remains.
[Before]
[After]
For the sake of consistency I also managed to display this label in the inspector for all kind of context
💡 Notice the label in the inspector has the same color has context borders in the graph so it's even easier to identify what kind of context is selected.
The label element was also overlapping other elements and was not easy to discover. So it's not overlapping anymore.
[Before]
[After]
💡 I added a tooltip so that it's more obvious it can be edited and how to do it
And one last minor improvement is for the
Mesh Output
label which color did not match the context borders[Before]
[After]
Testing status
Tested most of the context types.
Add a label, remove it.