microsoft / MixedReality-GraphicsTools-Unity

Graphics tools and components for developing Mixed Reality applications in Unity.
MIT License
178 stars 41 forks source link

Proposal for a material search tool based on shaders #134

Open HoloMoto opened 1 year ago

HoloMoto commented 1 year ago

Describe the problem

Sometimes I lost track of which parameter I was using as the number of material parameters increased.

So I have created a simple material search tool for myself first .

image

This little tool is more useful than I thought to me and I would love to contribute I hear your input.

Describe the solution you'd like

If you find this feature useful.

This is currently the shortest tool I have created for my own use.

I would like to clean up this tool as well as other MRGT codes, and also improve the EditorGUI layout by referring to measure tools.

Describe alternatives you've considered

Additional context

https://github.com/HoloMoto/MixedReality-GraphicsTools-Unity/tree/holomoto/MaterialSearch

You can try it out at this brunch.

The changes are in com.microsoft.mrtk.graphicstools.unity/Editor/Utilities/MaterialSearcher.cs The new version is.

If you put this in the appropriate UnityPakcage, you can try it out.

You can check it from the world menu under Window/Graphics Tools/Material Search by Shader.

It's currently a prototype for my own use, so it may be difficult to use, but I think you get the idea of the functionality I'm suggesting!

Cameron-Micka commented 1 year ago

This looks wonderful! I'd be happy to merge this into Graphics Tools if you create a pull request.

HoloMoto commented 1 year ago

@Cameron-Micka Thank you Cameron-san! and Happy new year!

I'm new to extending the editor to create such a tool so I'll make some adjustments and push!

I will can get a PR out within a week or two! I would like to get reviews and feedback from everyone at that time.

Cameron-Micka commented 1 year ago

That sounds great, happy new year!