Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- using UnityEditor;
- [CustomEditor(typeof(GameObjectInfo))]
- public class GameObjectInfoButton : Editor
- {
- public override void OnInspectorGUI()
- {
- DrawDefaultInspector();
- GameObjectInfo myScript = (GameObjectInfo)target;
- if (GUILayout.Button("Search"))
- {
- myScript.Search();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement