com.unity.uiextensions.nosa.../Scripts/Utilities/Serialization/Non-Mono Classes/ObjectComponent.cs

13 lines
458 B
C#

//The ObjectComponent class holds all data of a gameobject's component.
//The Dictionary holds the actual data of a component; A field's name as key and the corresponding value (object) as value. Confusing, right?
using System.Collections.Generic;
namespace UnityEngine.UI.Extensions
{
[System.Serializable]
public class ObjectComponent
{
public string componentName;
public Dictionary<string, object> fields;
}
}