GameplayTags
GameplayTags copied to clipboard
Can't serialize/deserialize GameplayTag and GameplayTagContainer with Newtonsoft Json
GameplayTag and GameplayTagContainer can't be serialized to JObject with Newtonsoft Json, one of the built-in package.
[System.Serializable]
public class MyClass
{
public GameplayTag tag;
public GameplayTagContainer tagContainer;
}
JObject.FromObject(myClassInstance);
The error message
JsonSerializationException: Self referencing loop detected for property 'ParentTag' with type 'BandoWare.GameplayTags.GameplayTag'. Path 'tag.ParentTag.ParentTag'.