added serialzed dictionary

This commit is contained in:
Sebastian Bularca
2026-03-19 22:20:34 +01:00
parent fedd1961a0
commit 9ec4c75ce2
129 changed files with 4088 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace AYellowpaper.SerializedCollections
{
public static class SerializedCollectionsUtility
{
public static bool IsValidKey(object obj)
{
// we catch this error if we are not on the main thread and simply return false as we assume the object is null
try
{
return !(obj is Object unityObject && unityObject == null);
}
catch
{
return false;
}
}
}
}