Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 862 Bytes

File metadata and controls

37 lines (30 loc) · 862 Bytes

EditorButton

Add Button from method to Inspector Unity3D

Discord

Button in Inspecor

Debug Screen

Installation

Download the UnityPackage from the latest releases and import it into Unity. The directory can be moved after being imported.

Usage

Add

using Kilosoft.tools

Mark any public method(void) with the attribute [EditorButton(name = "")]

using UnityEngine;
using Kilosoft.Tools;

/// <summary>
/// Test script
/// </summary>
public class TestScriptButton : MonoBehaviour
{
    [EditorButton("Test Button [Press me]")]
    public void TestMethod()
    {
        Debug.Log("I am Fire!");
    }
}

Thank you! Good luck! Kilosoft