Delegate UnityCharacterPoolService.BindDelegate
Delegate that binds a fresh ViewModel to a newly instantiated character GameObject.
Called when a brand-new instance is created from a prefab.
The implementation lives in the installer (which can reference InterfaceAdapters).
Assembly: Serenity.UnityCharacter.Infrastructure.dll
Syntax
public delegate bool UnityCharacterPoolService.BindDelegate(GameObject go, ICharacterConfig config)
Parameters
| Type |
Name |
Description |
| GameObject |
go |
The instantiated character GameObject.
|
| ICharacterConfig |
config |
The Application archetype config for this character.
|
Returns
| Type |
Description |
| bool |
True if binding succeeded.
|
Constructors
BindDelegate(object, IntPtr)
Declaration
public BindDelegate(object @object, IntPtr method)
Parameters
Methods
BeginInvoke(GameObject, ICharacterConfig, AsyncCallback, object)
Declaration
public virtual IAsyncResult BeginInvoke(GameObject go, ICharacterConfig config, AsyncCallback callback, object @object)
Parameters
Returns
EndInvoke(IAsyncResult)
Declaration
public virtual bool EndInvoke(IAsyncResult result)
Parameters
Returns
Invoke(GameObject, ICharacterConfig)
Declaration
public virtual bool Invoke(GameObject go, ICharacterConfig config)
Parameters
Returns