using System.Collections; using System.Collections.Generic; using UnityEditor; using UnityEngine; [CustomEditor(typeof(TransformBundleCopy))] public class TransformBundleCopyEditor : Editor { public override void OnInspectorGUI() { base.OnInspectorGUI(); TransformBundleCopy copy = target as TransformBundleCopy; if (GUILayout.Button("Copy")) { copy.Copy(); } } }