Appearance
hm5-types (source format) / PluginData
Type Alias: PluginData
ts
type PluginData = Record<string, unknown>;Data hm05 itself never reads, kept for plugins (game engine plugins, export scripts, player scripts): plugin name → that plugin's own data, any JSON — e.g. { box2d: { bodyType: "dynamic", mass: 2.5 } }. On a symbol (LibrarySymbol.plugins) and on a symbol instance (SymbolInstanceElement.plugins); saved, copied with its owner and written into the runtime format as it is (AnimSymbol.plugins, SymbolItem.plugins). Never tweened: an instance's data is its keyframe's. Absent = none (an empty object is never stored).
The value is unknown on purpose (its shape is the plugin's business), but it must be plain JSON — document isJsonValue is the check the ops make before storing it.