Tri-Inspector/Editor/TriValue.cs

18 lines
355 B
C#
Raw Normal View History

2021-12-07 18:20:36 +03:00
namespace TriInspector
{
public readonly struct TriValue<T>
{
internal TriValue(TriProperty property)
{
Property = property;
}
public TriProperty Property { get; }
public T Value
{
get => (T) Property.Value;
set => Property.SetValue(value);
}
}
}