-
Notifications
You must be signed in to change notification settings - Fork 855
XPipeline- Improvements of Light UI inspector code. #5367
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 URP 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.
Found some code that could potentially get removed?
com.unity.render-pipelines.high-definition/Editor/Lighting/LightUnit/HDLightUnitSlider.cs
Outdated
Show resolved
Hide resolved
com.unity.render-pipelines.high-definition/Editor/Lighting/LightUnit/LightUnitSlider.cs
Outdated
Show resolved
Hide resolved
General comment: I haven't found a great way to get a sense of "what's changed" when reviewing refactoring PRs such as this one, so any tips with this are appreciated. Lots of things have just moved to new files, but sometimes there are subtle changes that are hard to notice. Some ideas that might help with this issue in the future:
Any thoughts? |
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.
Have a few comments
com.unity.render-pipelines.core/Editor/Lighting/LightUI.Drawers.cs
Outdated
Show resolved
Hide resolved
public static readonly GUIContent lightLayer = EditorGUIUtility.TrTextContent("Light Layer", "Specifies the current Light Layers that the Light affects. This Light illuminates corresponding Renderers with the same Light Layer flags."); | ||
|
||
// in casse that you want to keep the indentation but have nothing to write | ||
public static readonly GUIContent empty = EditorGUIUtility.TrTextContent(" "); |
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.
Is this the place for this empty style. Isn't this a more global thing? Or maybe I am missing something.
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.
moved in another PR
return CoreEditorUtils.LoadIcon(@"Packages/com.unity.render-pipelines.core/Editor/Lighting/Icons/LightUnitIcons", name, ".png"); | ||
} | ||
|
||
// TODO: Move all light unit icons from the package into the built-in resources. |
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.
Do we have a Jira ticket for this task?
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.
XPIPELINE-247
} | ||
|
||
// Need to cache the serialized object on the slider, to add support for the preset selection context menu (need to apply changes to serialized) | ||
// TODO: This slider drawer is getting kind of bloated. Break up the implementation into where it is actually used? |
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.
is this TODO tracked as a JIRA somewhere?
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.
not that I know
com.unity.render-pipelines.core/Editor/Lighting/LightUI.Drawers.cs
Outdated
Show resolved
Hide resolved
7ee78db
to
03847e7
Compare
com.unity.render-pipelines.core/Editor/Lighting/LightUI.Drawers.cs
Outdated
Show resolved
Hide resolved
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.
Developer already tested this PR, I'm approving without additional testing
a67ee51
to
5b2bfb4
Compare
Purpose of this PR
XPIPELINE-247
HDRP and URP look the same now:
Testing status
Comments to reviewers
Moving code to Core from HDRP and using it on URP.