Skip to content

Kilosoft/EditorButton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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