Newer
Older
HoloAnatomy / Assets / HoloToolkit / Input / Scripts / Editor / EditorHandsMaterialInspector.cs
SURFACEBOOK2\jackwynne on 25 May 2018 565 bytes v1
using UnityEditor;

namespace HoloToolkit.Unity
{
    public class EditorHandsMaterialInspector : ShaderGUI
    {
        public override void OnGUI(MaterialEditor materialEditor, MaterialProperty[] properties)
        {
            foreach (MaterialProperty materialProperty in properties)
            {
                if (materialProperty.flags != MaterialProperty.PropFlags.PerRendererData)
                {
                    materialEditor.ShaderProperty(materialProperty, materialProperty.displayName);
                }
            }
        }
    }
}