rr_doot/BundleBuilder/Assets/DontBuildThis/Scripts/BuildButton.cs

23 lines
387 B
C#
Raw Permalink Normal View History

2024-02-20 17:03:40 +00:00
using UnityEditor;
using UnityEngine;
#if UNITY_EDITOR
[CustomEditor(typeof(BundleBuilder))]
public class BuildButton : Editor
{
public override void OnInspectorGUI()
{
DrawDefaultInspector();
var myScript = (BundleBuilder)target;
if (GUILayout.Button("HEY! Build the bundles."))
{
myScript.BuildIt();
}
}
}
#endif