Skip to content
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

Merged
merged 8 commits into from
Feb 11, 2022

Conversation

julienamsellem
Copy link
Contributor

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]
VFX_OutputNaming_FdBk

[After]
Unity_kLaB5puhtr

For the sake of consistency I also managed to display this label in the inspector for all kind of context
Unity_X0suhOmJb4
💡 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]
8YwWgWZ3Z6

[After]
J4HXbtWDmR
💡 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]
Unity_8q08BW34Ys

[After]
Unity_rIStxrMzrv


Testing status

Tested most of the context types.
Add a label, remove it.

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
@github-actions
Copy link

github-actions bot commented Feb 4, 2022

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.
Link to Yamato: https://unity-ci.cds.internal.unity3d.com/project/902/
Search for your PR branch using the search bar at the top, then add the following segment(s) to the end of the URL (you may need multiple tabs depending on how many packages you change)

VFX
/jobDefinition/.yamato%252Fall-vfx.yml%2523PR_VFX_trunk

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.

@VitaVFX VitaVFX requested review from VitaVFX and removed request for a team February 7, 2022 10:24
Copy link
Contributor

@gabrieldelacruz gabrieldelacruz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@julienamsellem julienamsellem marked this pull request as ready for review February 8, 2022 09:01
@VitaVFX
Copy link

VitaVFX commented Feb 10, 2022

Should we consider implementing character limit?

When in Edit mode text is duplicated (observe that we can see green and white letters

Let's move Update name in top of the Inspector?

Green: It seems that multi lines are being displayed in Output Order. Maybe is it worth only to show the first one?
Pink: Render Order Naming. System name/ Random name / Output Name. Do you happen to know what does random letters between system name and output name refer to?
image

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
@julienamsellem julienamsellem merged commit 6100c73 into master Feb 11, 2022
@julienamsellem julienamsellem deleted the vfx/fix/1363908-output-context-name-inspector branch February 11, 2022 16:48
julienf-unity pushed a commit that referenced this pull request Feb 17, 2022
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants