Delegate CoherenceBridgeResolver<T>
Called by the Entity/Component to find the correct CoherenceBridge instance. The order of CoherenceBridge resolution is as follows:
* CoherenceBridge provided by the per-instance CoherenceBridgeResolver<T> callback
* CoherenceBridge provided by the global BridgeResolve callback
* CoherenceBridge within the same scene as this Entity/Component
* CoherenceBridge with a CoherenceBridge.IsSingleton checked
* Creating new CoherenceBridge instance
public delegate CoherenceBridge CoherenceBridgeResolver<in T>(T resolvingComponent) where T : MonoBehaviour
Parameters
resolvingComponent
T- Called by the Entity/Component to find the correct instance. The order of resolution is as follows: * provided by the per-instance callback* provided by the global callback* within the same scene as this Entity/Component* with a CoherenceBridge.IsSingleton checked* Creating new instance
Returns
- CoherenceBridge
- Called by the Entity/Component to find the correct instance. The order of resolution is as follows: * provided by the per-instance callback* provided by the global callback* within the same scene as this Entity/Component* with a CoherenceBridge.IsSingleton checked* Creating new instance
Type Parameters
T
Constructors
CoherenceBridgeResolver(object, IntPtr)
public CoherenceBridgeResolver(object @object, IntPtr method)
Parameters
Methods
BeginInvoke(T, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(T resolvingComponent, AsyncCallback callback, object @object)
Parameters
resolvingComponent
Tcallback
AsyncCallbackobject
object
Returns
EndInvoke(IAsyncResult)
public virtual CoherenceBridge EndInvoke(IAsyncResult result)
Parameters
result
IAsyncResult
Returns
Invoke(T)
public virtual CoherenceBridge Invoke(T resolvingComponent)
Parameters
resolvingComponent
T