Tri-Inspector/Editor.Samples/Misc/Misc_ShowInInspectorSample.cs

17 lines
322 B
C#

using TriInspector;
using UnityEngine;
public class Misc_ShowInInspectorSample : ScriptableObject
{
private float _field;
[ShowInInspector]
public float ReadOnlyProperty => _field;
[ShowInInspector]
public float EditableProperty
{
get => _field;
set => _field = value;
}
}