Home

Awesome

Essential Editor

Unity Asset that exposes properties and methods of MonoBehaviour to inspector. You can expose them to inspector simply by using specific attribute.

It makes your test and debugging easy. Also you can avoid to write 'public', '[SerializedField]' fields to trace them on inspector so that you can enhance encapsulation and do not need to declare unnacessary field anymore.

Read this in other languages: English, 한국어

How to use

[ExposeMethod]

The methods using this attribute are exposed in inspector. It invokes the method if you click 'Invoke' button. If the return type is not 'void' then the result will be printed in console window.

using EssentialEditor;

[ExposeMethod]
void Foo()
{

}

[ExposeMethod]
int Goo()
{
    return 1;
}

[ExposeMethod]
string Hoo(int x, float y, Vector3 z, string w)
{
    return w;
}

alt tag

[ExposeProperty]

The properties using this attribute are exposed in inspector.

using EssentialEditor;

[ExposeProperty]
public float Foo
{
    get { return foo; }
    set { foo = value; }
}

[ExposeProperty]
public float Goo
{
    get { return foo; }
}

[ExposeProperty]
public Vector3 Hoo
{
    get;
    set;
}

alt tag

Author

License