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

Match material property size with Unity's defaults #11

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

forestrf
Copy link

@forestrf forestrf commented Jul 8, 2022

I wanted the material gui to render the labels, controls and everything the same way the default one does. Searching around with ILSpy to see how they do it I found that, fortunately, it was done with a single line.

This is how it looks before and after the change:

Before After
1657254525 2253 1657254470 2252

@forestrf
Copy link
Author

forestrf commented Jul 8, 2022

I added another commit to add more default stuff from Unity:

if (UnityEngine.Rendering.SupportedRenderingFeatures.active.editableMaterialRenderQueue) {
    materialEditor.RenderQueueField();
}
materialEditor.EnableInstancingField();
materialEditor.DoubleSidedGIField();

imagen

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.

1 participant