removecomponents
This commit is contained in:
1 parent
d7672612cc
commit
828a8e963e
4 files changed
+51
No files matched your search
@@ -0,0 +1,17 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
[CustomEditor (typeof (RemoveComponentName))]
|
||||
public class RemoveComponentNameEditor : Editor {
|
||||
public override void OnInspectorGUI () {
|
||||
DrawDefaultInspector ();
|
||||
|
||||
RemoveComponentName rmc = (RemoveComponentName) target;
|
||||
|
||||
if (GUILayout.Button ("Remove ComponentName")) {
|
||||
rmc.RemoveComponents ();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user