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

20 lines
373 B
C#
Raw Normal View History

using TriInspector;
using UnityEngine;
public class Misc_ShowInInspectorSample : ScriptableObject
{
private float _field;
2022-12-09 10:59:33 -05:00
[ShowInInspector]
private bool _myToggle;
[ShowInInspector]
public float ReadOnlyProperty => _field;
[ShowInInspector]
public float EditableProperty
{
get => _field;
set => _field = value;
}
}