Photon Fusion 2.1.1

IPluginBakedDataProvider< T > Interface Template Reference

Implement on a NetworkBehaviour to add BakedPluginData field of T to the exported class and serialized data. More...

Inherits IPluginBakedDataProvider.

Public Member Functions

object IPluginBakedDataProvider. Bake (in PluginBakedDataContext context)
 IPluginBakedDataProvider<T>.Bake
new T Bake (in PluginBakedDataContext context)
 Creates a baked-data object, right before serialization.

Detailed Description

Implement on a NetworkBehaviour to add BakedPluginData field of T to the exported class and serialized data.

Template Parameters
TData type. If using the default exporter, needs to be Unity-serializable. The data type needs to be visible in the plugin as well, so either define it with PluginCodeExportSettingsAttribute(PluginExportOptions) while also applying the attribute to required fields, or just keep the type definition in a file visible to the plugin.

Member Function Documentation

◆ Bake()

new T Bake ( in PluginBakedDataContext context)

Creates a baked-data object, right before serialization.

Parameters
contextBake context. Empty for now, kept for future API compability
Returns

Implements IPluginBakedDataProvider.