using Sandbox;
namespace ChitChat.Editor;
public static class ChitChatEditorExtensions
{
public static bool TryGetValue<T>(this SerializedProperty prop, out T value) where T : class
{
T val = prop.GetValue<T>();
if (val != null)
{
value = val;
return true;
}
value = null;
return false;
}
}