Files
Continentis/Assets/Scripts/SLSUtilities/SerializableDictionary/Wrappers.cs

18 lines
335 B
C#
Raw Normal View History

2025-10-23 00:49:44 -04:00
using UnityEngine;
namespace SLSFramework.General
{
[System.Serializable]
public class UnityObjectWrapper<T> where T : class
{
[SerializeField] private Object value;
public T Value => value as T;
public UnityObjectWrapper(Object value)
{
this.value = value;
}
}
}