Skip to content

BrainswitchMachina/Show-In-Inspector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Show In Inspector

Unity 3D utility for showing non-serialized (static, private, protected) fields and properties in the Inspector Window. Show In Inspector only exposes the fields and properties in the Inspector Window, it does not serialize them.

Example usage:

Static field:

[ShowInInspector]
public static int staticIntExample;

Property (with serialized private field for saving):

[SerializeField, HideInInspector]
private Vector2 _vector2;

[ShowInInspector]
public Vector2 vector2PropertyExample
{
    get
    {
        return _vector2;
    }
    set
    {
        _vector2 = Vector2.ClampMagnitude(value, 10f);
    }
}

About

Unity 3D Utility

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages