Delegate UnityCharacterPoolService.RebindDelegate
Delegate that rebinds a pooled character GameObject with a fresh ViewModel.
Called when reusing an inactive pooled instance.
Assembly: Serenity.UnityCharacter.Infrastructure.dll
Syntax
public delegate bool UnityCharacterPoolService.RebindDelegate(GameObject go, ICharacterConfig config)
Parameters
| Type |
Name |
Description |
| GameObject |
go |
The pooled character GameObject.
|
| ICharacterConfig |
config |
The Application archetype config for this character.
|
Returns
| Type |
Description |
| bool |
True if rebinding succeeded.
|
Constructors
RebindDelegate(object, IntPtr)
Declaration
public RebindDelegate(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