-
Notifications
You must be signed in to change notification settings - Fork 855
Srp workflows - Improvements working with Volume Components on a XPipeline Projects [Hold] #5745
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
Conversation
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 SRP Core 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 but please rename the parameter for better code readability.
|
||
internal void InitShowOnlyOverridedParametersPreference() | ||
{ | ||
string key = $"UI_Show_Only_Overrided_Parameters_{GetType()}"; |
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.
It's sad that we cannot statically cache this or make it const. With inheritance, I can't see anyway to achieve it ;_;
} | ||
} | ||
|
||
void SetIsSupportedOnCurrentPipeline(VolumeComponent component, Type currentPipelineType) |
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.
[Readability] Either rename currentPipelineType
to renderPipelineType
or make the method find who is the current one.
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.
Same goes for method name. It should be SetIsSupportedOnPipeline
if the method don't get who is the current one
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.
Happened to notice a typo in user-facing text, so jumped in to let you know :)
else | ||
menu.AddDisabledItem(EditorGUIUtility.TrTextContent("Show Additional Properties")); | ||
menu.AddItem(EditorGUIUtility.TrTextContent("Show All Additional Properties..."), false, () => CoreRenderPipelinePreferences.Open()); | ||
menu.AddItem(EditorGUIUtility.TrTextContent("Show Only Overrided Parameters"), targetEditor.showOnlyOverridedParameters, () => targetEditor.showOnlyOverridedParameters = !targetEditor.showOnlyOverridedParameters); |
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.
Proper form is "overridden", not "overrided". Replace at least user-facing text, preferably also variable names.
dea4b87
to
4d57758
Compare
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.
Sorry to nitpick but "overriden" is still not correct, "overridden" with two d's is correct spelling.
Guess just run Yamato and merge? |
@sebastienlagarde we are going to put on hold this PR, until @fredericv-unity3d merge his PR as this will change drastically with his improvements. |
Purpose of this PR
https://jira.unity3d.com/browse/XPIPELINE-327
https://jira.unity3d.com/browse/XPIPELINE-328
Warning for Volume Components from another pipeline:

Add an option to hide not overrided parameters for a component


Testing status
Describe what manual/automated tests were performed for this PR
Comments to reviewers
Notes for the reviewers you have assigned.