Alchemy/docs/articles/en/debugging-serialized-data.md
2024-02-20 14:49:47 +09:00

557 B

Debugging Serialized Data

By adding the [ShowAlchemySerializationData] attribute along with [AlchemySerialize], you can inspect serialized data from the Inspector.

using System;
using System.Collections.Generic;
using UnityEngine;
using Alchemy.Serialization;

[AlchemySerialize]
[ShowAlchemySerializationData]
public partial class AlchemySerializationExample : MonoBehaviour
{
    [AlchemySerializeField, NonSerialized]
    public Dictionary<string, GameObject> dictionary = new();
}

img