28 lines
826 B
C#
28 lines
826 B
C#
//////////////////////////////////////////////////////
|
|
// MK Toon Editor Material Property Drawer Base //
|
|
// //
|
|
// Created by Michael Kremmel //
|
|
// www.michaelkremmel.de //
|
|
// Copyright © 2021 All rights reserved. //
|
|
//////////////////////////////////////////////////////
|
|
|
|
#if UNITY_EDITOR
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
namespace MK.Toon.Editor
|
|
{
|
|
internal abstract class MaterialPropertyDrawer : UnityEditor.MaterialPropertyDrawer
|
|
{
|
|
protected GUIContent _guiContent;
|
|
public MaterialPropertyDrawer(GUIContent ui)
|
|
{
|
|
this._guiContent = ui;
|
|
}
|
|
public MaterialPropertyDrawer()
|
|
{
|
|
this._guiContent = GUIContent.none;
|
|
}
|
|
}
|
|
}
|
|
#endif |