Table of Contents

Class ResourceExecutableLibrary

Namespace
Ceres.Flow.Utilities
Assembly
Ceres.Flow.dll

Provides Ceres.Resource loading and instantiation helpers for Flow graphs.

[CeresGroup("Resource")]
public class ResourceExecutableLibrary : ExecutableFunctionLibrary
Inheritance
ResourceExecutableLibrary
Inherited Members

Constructors

ResourceExecutableLibrary()

public ResourceExecutableLibrary()

Methods

CollectExecutableFunctions()

Collect all static executable functions in this library

protected override void CollectExecutableFunctions()

Flow_InstantiateAsync(string, Transform)

Instantiates a resource by address under the specified parent and waits synchronously for completion.

[ExecutableFunction]
[CeresLabel("Instantiate Synchronous")]
public static GameObject Flow_InstantiateAsync(string address, Transform parent)

Parameters

address string

The resource address to instantiate.

parent Transform

The parent transform for the created object.

Returns

GameObject

The instantiated GameObject.

Flow_InstantiateAsync(string, Transform, EventDelegate<GameObject>)

Instantiates a resource by address under the specified parent asynchronously.

[ExecutableFunction]
[CeresLabel("Instantiate Async")]
public static void Flow_InstantiateAsync(string address, Transform parent, EventDelegate<GameObject> onComplete)

Parameters

address string

The resource address to instantiate.

parent Transform

The parent transform for the created object.

onComplete EventDelegate<GameObject>

Callback invoked with the instantiated GameObject.

Flow_LoadAssetAsync(string, EventDelegate<Object>)

Loads an asset by address asynchronously and invokes a callback when it completes.

[ExecutableFunction]
[CeresLabel("Load Asset Async")]
public static void Flow_LoadAssetAsync(string address, EventDelegate<Object> onComplete)

Parameters

address string

The resource address to load.

onComplete EventDelegate<Object>

Callback invoked with the loaded object.

Flow_LoadAssetSynchronous(string)

Loads an asset by address and waits synchronously for completion.

[ExecutableFunction]
[CeresLabel("Load Asset Synchronous")]
public static Object Flow_LoadAssetSynchronous(string address)

Parameters

address string

The resource address to load.

Returns

Object

The loaded Unity object.