update
This commit is contained in:
18
Assets/Editor/TransformBundleCopyEditor.cs
Normal file
18
Assets/Editor/TransformBundleCopyEditor.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user