Go to file
2022-01-05 16:14:54 +03:00
Editor Remove default inspector 2022-01-05 16:11:51 +03:00
Editor.Extras Add property hide and disable processors 2022-01-05 15:42:21 +03:00
Runtime Add property hide and disable processors 2022-01-05 15:42:21 +03:00
.editorconfig initial commot 2022-01-05 14:59:05 +03:00
.gitignore initial commot 2022-01-05 14:59:05 +03:00
Editor.Extras.meta initial commot 2022-01-05 14:59:05 +03:00
Editor.meta initial commot 2022-01-05 14:59:05 +03:00
LICENSE.md Add license 2022-01-05 15:45:02 +03:00
LICENSE.md.meta Add license 2022-01-05 15:45:02 +03:00
package.json Fix package json 2022-01-05 15:48:09 +03:00
package.json.meta initial commot 2022-01-05 14:59:05 +03:00
README.md Update readme 2022-01-05 16:14:54 +03:00
README.md.meta Update readme 2022-01-05 16:14:54 +03:00
Runtime.meta initial commot 2022-01-05 14:59:05 +03:00

Tri Inspector Github license Unity 2019.3 GitHub package.json version

Advanced inspector attributes for Unity

using System;
using TriInspector;
using UnityEngine;

public class BasicSample : TriMonoBehaviour
{
    [PropertyOrder(1)]
    [HideLabel, LabelText("My Label"), LabelWidth(100)]
    [GUIColor(0, 1, 0), Space, Indent, ReadOnly]
    [Title("My Title"), Header("My Header")]
    [PropertySpace(SpaceBefore = 10, SpaceAfter = 20)]
    [PropertyTooltip("My Tooltip")]
    public float unityField;

    [HideInPlayMode, ShowInPlayMode]
    [DisableInPlayMode, EnableInPlayMode]
    public float conditional;

    [ShowInInspector]
    public float ReadonlyProperty => 123f;

    [ShowInInspector]
    public float EditableProperty
    {
        get => unityField;
        set => unityField = value;
    }

    [InlineProperty(LabelWidth = 60)]
    public Config config = new Config();

    [Serializable]
    public class Config
    {
        public Vector3 position;
        public float rotation;
    }
}

[DeclareBoxGroup("body")]
[DeclareHorizontalGroup("header")]
[DeclareBoxGroup("header/left", Title = "My Left Box")]
[DeclareBoxGroup("header/right", Title = "My Right Box")]
public class GroupDemo : TriMonoBehaviour
{
    [Group("header/left")] public string h1;
    [Group("header/left")] public string h2;

    [Group("header/right")] public string h3;
    [Group("header/right")] public string h4;

    [Group("body")] public string b1;
    [Group("body")] public string b2;
}

How to Install

Minimal Unity Version is 2019.3.

Library distributed as git package (How to install package from git URL)
Git URL: https://github.com/codewriter-packages/Tri-Inspector.git

License

Tri-Inspector is MIT licensed.