Skip to content

#135 propertyDisplay#136

Merged
Cameron-Micka merged 1 commit intomicrosoft:mainfrom
HoloMoto:holomoto/ShaderPropertyDisplay
Jan 5, 2023
Merged

#135 propertyDisplay#136
Cameron-Micka merged 1 commit intomicrosoft:mainfrom
HoloMoto:holomoto/ShaderPropertyDisplay

Conversation

@HoloMoto
Copy link
Copy Markdown
Collaborator

Overview

The GraphicsStandard shader properties LightIntensity and EdgeSmoothnessMode are properties commonly used by multiple properties.

Previously, they were displayed on the layout instead of being child properties with spaces.

For this reason, we felt that some users may not notice them.

In fact, until I started working on this issue, I was unaware of it and attributed it to a display bug.

 So I modified the layout to distinguish it from the others and make it easier to understand.

 However, I honestly think there may be a better way to tackle this issue.

Wall

Changes

Verification

no

@Cameron-Micka Cameron-Micka self-requested a review January 3, 2023 19:39
Copy link
Copy Markdown
Member

@Cameron-Micka Cameron-Micka left a comment

Choose a reason for hiding this comment

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

Looks great! Made one small comment, feel free to accept or ignore and I can merge. 😊

if (PropertyEnabled(hoverLight) || PropertyEnabled(proximityLight) || PropertyEnabled(borderLight))
{
materialEditor.ShaderProperty(fluentLightIntensity, Styles.fluentLightIntensity);
materialEditor.ShaderProperty(fluentLightIntensity, Styles.fluentLightIntensity, 2);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

One design suggestion, I wonder if it makes sense to move this property to the top?

image

That way it looks like it belongs to Hover Light, Proximity Light, and Border Light, rather than just Border Light.

@Cameron-Micka Cameron-Micka merged commit 8900877 into microsoft:main Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improved parameter display in the Inspector window of StandardShader

2 participants