20 lines
442 B
C#
20 lines
442 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
[CustomEditor(typeof(NoiseGenerator), true)]
|
|
public class NoiseGeneratorEditor: Editor
|
|
{
|
|
public override void OnInspectorGUI()
|
|
{
|
|
DrawDefaultInspector();
|
|
|
|
NoiseGenerator myScript = (NoiseGenerator)target;
|
|
if (GUILayout.Button("Generate Textures"))
|
|
{
|
|
myScript.Generate();
|
|
}
|
|
}
|
|
}
|