Method EncodeComponents
EncodeComponents(GameObject)
Encodes all components of a prefab GameObject into { ComponentTypeName: { field: value } }.
public Dictionary<string, object> EncodeComponents(GameObject go)
Parameters
goGameObject
Returns
- Dictionary<string, object>
EncodeComponents(ScriptableObject)
Encodes a ScriptableObject's serialized fields (classes, room shapes, rooms — content that is data,
not a prefab) into the same { TypeName: { field: value } } shape the mirror uses.
public Dictionary<string, object> EncodeComponents(ScriptableObject asset)
Parameters
assetScriptableObject
Returns
- Dictionary<string, object>