Table of Contents

TryGetBridge

Methods
public static bool TryGetBridge(int sceneHandle, out CoherenceBridge bridge)

Get a reference to a registered CoherenceBridge.

Parameters
Type Name Description
int sceneHandle

The handle of the scene associated with the bridge.

CoherenceBridge bridge

The bridge reference.

Returns
Type Description
bool

true if the registered reference could be fetched. false otherwise.

See Also
public static bool TryGetBridge(Scene scene, out CoherenceBridge bridge)

Get a reference to a registered CoherenceBridge.

Parameters
Type Name Description
Scene scene

The scene associated with the bridge.

CoherenceBridge bridge

The bridge reference.

Returns
Type Description
bool

true if the registered reference could be fetched. false otherwise.

public static bool TryGetBridge<T>(Scene scene, CoherenceBridgeResolver<T> resolver, T component, out CoherenceBridge bridge) where T : MonoBehaviour

Get a reference to a registered CoherenceBridge.

Parameters
Type Name Description
Scene scene

The scene associated with the bridge.

CoherenceBridgeResolver<T> resolver

The resolver to use. Use null to skip.

T component

The component to send through the resolver.

CoherenceBridge bridge

The bridge reference.

Returns
Type Description
bool

true if the registered reference could be fetched. false otherwise.

Type Parameters
Name Description
T