Example #1
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();
        //this is my script
        //from object being Inspected :
        InteractionManager myscript = (InteractionManager)target;

        if (GUILayout.Button("ButtonFunction"))
        {
            myscript.ButtonFunction();
        }
    }