19 lines
429 B
C#
19 lines
429 B
C#
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();
|
|
}
|
|
}
|
|
}
|