Delegate TemplateDecorator
- Namespace
- TDMaker.Unity.View
- Assembly
- TDMaker.Unity.dll
Changes a baked template before the simulation is created (for example to add WithCustomData values).
asset is the authoring asset the template came from, or null. Return the template to use.
public delegate EntityTemplate TemplateDecorator(EntityTemplate template, EntityAssetBase asset)
Parameters
templateEntityTemplate- Changes a baked template before the simulation is created (for example to add WithCustomData values). asset is the authoring asset the template came from, or null. Return the template to use.
assetEntityAssetBase- Changes a baked template before the simulation is created (for example to add WithCustomData values). asset is the authoring asset the template came from, or null. Return the template to use.
Returns
- EntityTemplate
- Changes a baked template before the simulation is created (for example to add WithCustomData values). asset is the authoring asset the template came from, or null. Return the template to use.
Constructors
TemplateDecorator(object, IntPtr)
public TemplateDecorator(object @object, IntPtr method)
Parameters
Methods
BeginInvoke(EntityTemplate, EntityAssetBase, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(EntityTemplate template, EntityAssetBase asset, AsyncCallback callback, object @object)
Parameters
templateEntityTemplateassetEntityAssetBasecallbackAsyncCallbackobjectobject
Returns
EndInvoke(IAsyncResult)
public virtual EntityTemplate EndInvoke(IAsyncResult result)
Parameters
resultIAsyncResult
Returns
Invoke(EntityTemplate, EntityAssetBase)
public virtual EntityTemplate Invoke(EntityTemplate template, EntityAssetBase asset)
Parameters
templateEntityTemplateassetEntityAssetBase