16 lines
428 B
C#
16 lines
428 B
C#
using UnityEngine;
|
|
using UnityEditor;
|
|
|
|
[CustomEditor(typeof(ApplyProceduralTextureProperties))]
|
|
public class ApplyProceduralTexturePropertiesEditor : Editor {
|
|
public override void OnInspectorGUI() {
|
|
DrawDefaultInspector();
|
|
|
|
ApplyProceduralTextureProperties script = (ApplyProceduralTextureProperties)target;
|
|
|
|
if(GUILayout.Button("Apply")) {
|
|
script.SyncMatWithProceduralTextureAsset();
|
|
}
|
|
}
|
|
}
|