Table of Contents

Method EncodeComponents

Namespace
GrindFest.Content.Editor
Assembly
GrindFest.dll

EncodeComponents(GameObject)

Encodes all components of a prefab GameObject into { ComponentTypeName: { field: value } }.

public Dictionary<string, object> EncodeComponents(GameObject go)

Parameters

go GameObject

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

asset ScriptableObject

Returns

Dictionary<string, object>