Skip to content

20chan/InspectorExtender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

InspectorExtender

Simple unity inspector extension with property & method supports.

It just works.

Example

Only works in exposed public properties and methods. Basic properties and methods usage:

public int IntProperty { get; set; }
public string StringProperty { get; set; }
public Kind KindProperty { get; set; }

public enum Kind {
    A, B, C,
}

public void InvokableMethod() {
    Debug.Log("20c6a7");
}

example-basic

With advanced properties:

private string _value;
public string StringProperty {
    get => _value;
    set => _value = $"__{value}__";
}

public int ReadonlyIntProperty { get; } = 42;

example-advanced

With ref getter:

public int target;
public ref int TargetRef => ref target;

example-ref

How to use

Add InspectorExtender.cs file to any editor scripts directory

About

Unity simple inspector extender

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages