-
Notifications
You must be signed in to change notification settings - Fork 850
[VFX] Rename "Material Offset" in "Sorting Priority" #5646
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
[VFX] Rename "Material Offset" in "Sorting Priority" #5646
Conversation
To avoid confusion with the "sortingPriority", this value isn't visible anyway
& Clarify comment
# Conflicts: # com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/HDRenderQueue.cs
com.unity.visualeffectgraph/Editor/Inspector/VFXSlotContainerEditor.cs
Outdated
Show resolved
Hide resolved
com.unity.visualeffectgraph/Editor/Inspector/VFXSlotContainerEditor.cs
Outdated
Show resolved
Hide resolved
Resolve #5646 (comment) Resolve #5646 (comment)
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. HDRP 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.
Thank you for this PR. Great work. Some minor comments that I will leave up to you if you want to tackle them or not.
com.unity.visualeffectgraph/Editor/ShaderGraph/VFXShaderGraphParticleOutput.cs
Outdated
Show resolved
Hide resolved
com.unity.visualeffectgraph/Documentation~/Context-OutputSharedSettings.md
Show resolved
Hide resolved
Are we ready to merge? |
No, I need to apply minor suggestion from @alex-vazquez, I'm checking if we can factorize the +50/-50 constant somewhere |
Waiting for some sanity run on Yamato before merging ⏳ |
commit d1ea7f9 Author: Paul Demeulenaere <pauld@unity3d.com> Date: Thu Sep 30 11:05:33 2021 +0200 Use StringBuilder instead of string addition Resolve case #5646 (comment) commit 492527c Merge: 9bbcea4 6f4f8d7 Author: Paul Demeulenaere <pauld@unity3d.com> Date: Thu Sep 30 10:39:57 2021 +0200 Merge branch 'master' into vfx/fix/sorting-priority-ux-alignement commit 9bbcea4 Merge: 7dacea5 11417d3 Author: Paul Demeulenaere <pauld@unity3d.com> Date: Fri Sep 24 21:33:21 2021 +0200 Merge branch 'master' into vfx/fix/sorting-priority-ux-alignement commit 7dacea5 Author: Paul Demeulenaere <pauld@unity3d.com> Date: Fri Sep 24 09:38:31 2021 +0200 FIx minor issue Resolve #5646 (comment) Resolve #5646 (comment) commit 8f7cc14 Author: Paul Demeulenaere <pauld@unity3d.com> Date: Thu Sep 23 15:39:51 2021 +0200 Apply rename in VFXHDRPSubOutput commit 14efa73 Author: Paul Demeulenaere <pauld@unity3d.com> Date: Thu Sep 23 15:26:08 2021 +0200 Fix build & Apply rename in code as well commit d5d7b76 Merge: 65f07ff 570437d Author: Paul Demeulenaere <pauld@unity3d.com> Date: Thu Sep 23 15:10:01 2021 +0200 Merge branch 'master' into vfx/fix/sorting-priority-ux-alignement # Conflicts: # com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/HDRenderQueue.cs commit 65f07ff Merge: d5f1c36 0cf2fcb Author: Paul Demeulenaere <pauld@unity3d.com> Date: Tue Sep 14 10:08:25 2021 +0200 Merge branch 'master' into vfx/fix/sorting-priority-ux-alignement commit d5f1c36 Author: Paul Demeulenaere <pauld@unity3d.com> Date: Tue Sep 14 09:20:31 2021 +0200 *Update changelog commit 5515bd2 Author: Paul Demeulenaere <pauld@unity3d.com> Date: Tue Sep 14 09:12:11 2021 +0200 Update documentation & Clarify comment commit f213fbd Author: Paul Demeulenaere <pauld@unity3d.com> Date: Mon Sep 13 21:08:17 2021 +0200 Fallback to DelayedIntField since Delayed & Range aren't compatibke commit f89f534 Author: Paul Demeulenaere <pauld@unity3d.com> Date: Mon Sep 13 20:49:00 2021 +0200 Rename sortPriority in vfxSystemSortPriority To avoid confusion with the "sortingPriority", this value isn't visible anyway commit 26b15b3 Author: Paul Demeulenaere <pauld@unity3d.com> Date: Mon Sep 13 17:47:31 2021 +0200 Rename materialOffset in sortingPriority (cherry picked from commit c223c95fea710cb49d1432dbc15907bb30b1c5b3) # Conflicts: # com.unity.visualeffectgraph/CHANGELOG.md
commit d1ea7f9 Author: Paul Demeulenaere <pauld@unity3d.com> Date: Thu Sep 30 11:05:33 2021 +0200 Use StringBuilder instead of string addition Resolve case #5646 (comment) commit 492527c Merge: 9bbcea4 6f4f8d7 Author: Paul Demeulenaere <pauld@unity3d.com> Date: Thu Sep 30 10:39:57 2021 +0200 Merge branch 'master' into vfx/fix/sorting-priority-ux-alignement commit 9bbcea4 Merge: 7dacea5 11417d3 Author: Paul Demeulenaere <pauld@unity3d.com> Date: Fri Sep 24 21:33:21 2021 +0200 Merge branch 'master' into vfx/fix/sorting-priority-ux-alignement commit 7dacea5 Author: Paul Demeulenaere <pauld@unity3d.com> Date: Fri Sep 24 09:38:31 2021 +0200 FIx minor issue Resolve #5646 (comment) Resolve #5646 (comment) commit 8f7cc14 Author: Paul Demeulenaere <pauld@unity3d.com> Date: Thu Sep 23 15:39:51 2021 +0200 Apply rename in VFXHDRPSubOutput commit 14efa73 Author: Paul Demeulenaere <pauld@unity3d.com> Date: Thu Sep 23 15:26:08 2021 +0200 Fix build & Apply rename in code as well commit d5d7b76 Merge: 65f07ff 570437d Author: Paul Demeulenaere <pauld@unity3d.com> Date: Thu Sep 23 15:10:01 2021 +0200 Merge branch 'master' into vfx/fix/sorting-priority-ux-alignement # Conflicts: # com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/HDRenderQueue.cs commit 65f07ff Merge: d5f1c36 0cf2fcb Author: Paul Demeulenaere <pauld@unity3d.com> Date: Tue Sep 14 10:08:25 2021 +0200 Merge branch 'master' into vfx/fix/sorting-priority-ux-alignement commit d5f1c36 Author: Paul Demeulenaere <pauld@unity3d.com> Date: Tue Sep 14 09:20:31 2021 +0200 *Update changelog commit 5515bd2 Author: Paul Demeulenaere <pauld@unity3d.com> Date: Tue Sep 14 09:12:11 2021 +0200 Update documentation & Clarify comment commit f213fbd Author: Paul Demeulenaere <pauld@unity3d.com> Date: Mon Sep 13 21:08:17 2021 +0200 Fallback to DelayedIntField since Delayed & Range aren't compatibke commit f89f534 Author: Paul Demeulenaere <pauld@unity3d.com> Date: Mon Sep 13 20:49:00 2021 +0200 Rename sortPriority in vfxSystemSortPriority To avoid confusion with the "sortingPriority", this value isn't visible anyway commit 26b15b3 Author: Paul Demeulenaere <pauld@unity3d.com> Date: Mon Sep 13 17:47:31 2021 +0200 Rename materialOffset in sortingPriority (cherry picked from commit c223c95fea710cb49d1432dbc15907bb30b1c5b3) # Conflicts: # com.unity.visualeffectgraph/CHANGELOG.md
Mainly due to this PR #5646
Purpose of this PR
This PR follows up the unification initiated by this change: #3966 from @alex-vazquez
It renames the "material offset" settings into "sorting priority" in VFX and use the same range in HDRP & URP.
Testing status
Yamato ⏳

Checking locally the behavior of material offset
Comments to reviewers
The delayed and range attribute are incompatible. Since every setting update will trigger an invalidation, it's preferable to prioritize the delaying over the ranging.
I also renamed
sortPriority
invfxSystemSortPriority
to prevent the confusion in code (this value isn't visible for user)See also this presentation
See also this discussion
The delayed mode doesn't work on slider:

That is why I replaced to a classic int field in VFXSlotContainerEditor
