Skip to content

Match material property size with Unity's defaults#11

Open
forestrf wants to merge 2 commits intogasgiant:mainfrom
forestrf:patch-2
Open

Match material property size with Unity's defaults#11
forestrf wants to merge 2 commits intogasgiant:mainfrom
forestrf:patch-2

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

Comments