ZMWSLI0-SL2021-GR11/cw7/Editor/ProceduralTextureEditor.cs

23 lines
451 B
C#
Raw Normal View History

2021-06-28 23:19:16 +02:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using UnityEngine;
using System.Collections;
[CustomEditor(typeof(ProceduralTextureScript))]
public class ProceduralTextureEditor : Editor {
public override void OnInspectorGUI() {
DrawDefaultInspector();
if (GUILayout.Button("Run")) {
((ProceduralTextureScript)target).runProcedrualTexturing();
}
}
}