Tri-Inspector/Editor.Samples/Misc/Misc_ShowInInspectorSample.cs
2022-12-09 20:06:58 +04:00

20 lines
373 B
C#

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