Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/kilosoft/editorbutton
- Owner: Kilosoft
- Created: 2018-02-07T10:45:33.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-10T10:18:53.000Z (about 5 years ago)
- Last Synced: 2024-03-28T06:29:24.380Z (9 months ago)
- Topics: button, csharp, framework, game, game-development, inspector, inspector-unity3d, plugin, unity, unity3d
- Language: C#
- Size: 68.4 KB
- Stars: 12
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`