Skip to content

Unity Asset that exposes properties and methods of MonoBehaviour to inspector.

Notifications You must be signed in to change notification settings

WondermSwift/Advanced-MonoInspector

 
 

Repository files navigation

Advanced-MonoInspector

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 it can enhance the encapsulation.

Read this in other languages: English, 한국어

How to use

####[ExposeProperty]

The properties using this attribute are exposed in inspector.

[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

####[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.

[ExposeMethod]
void Foo()
{
    
}

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

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

alt tag

Author

License

  • This asset is under MIT License.

About

Unity Asset that exposes properties and methods of MonoBehaviour to inspector.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%