Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kilosoft/editorbutton

Add Button to Inspector Unity3D
https://github.com/kilosoft/editorbutton

button csharp framework game game-development inspector inspector-unity3d plugin unity unity3d

Last synced: about 2 months ago
JSON representation

Add Button to Inspector Unity3D

Awesome Lists containing this project

README

        

# EditorButton
Add Button from method to Inspector Unity3D

[![Discord](https://img.shields.io/discord/608666714653065217.svg?label=Discord)](https://discord.gg/UWkHKB)

![Button in Inspecor](./Doc/Inspector.JPG)

![Debug Screen](./Doc/Debug.JPG)

## Installation
Download the UnityPackage from the [latest releases](https://github.com/Kilosoft/EditorButton/releases) and import it into Unity. The directory can be moved after being imported.

## Usage
Add
```C#
using Kilosoft.tools
```
Mark any public method(void) with the attribute [EditorButton(name = "")]

```C#
using UnityEngine;
using Kilosoft.Tools;

///
/// Test script
///
public class TestScriptButton : MonoBehaviour
{
[EditorButton("Test Button [Press me]")]
public void TestMethod()
{
Debug.Log("I am Fire!");
}
}
```
`Thank you! Good luck!
Kilosoft`