Header menu logo BaboonAPI

Unity Module

Functions and values

Function or value Description

loadAsset name bundle

Full Usage: loadAsset name bundle

Parameters:
Returns: YieldTask<Object>

Asynchronously load an asset from a bundle

name : string
bundle : AssetBundle
Returns: YieldTask<Object>

loadAudioClip (path, audioType)

Full Usage: loadAudioClip (path, audioType)

Parameters:
Returns: YieldTask<Result<AudioClip, string>>

Load an audio clip from file asynchronously

path : string
audioType : AudioType
Returns: YieldTask<Result<AudioClip, string>>

loadTexture path

Full Usage: loadTexture path

Parameters:
    path : string

Returns: YieldTask<Result<Texture2D, string>>

Load a texture from file asynchronously

path : string
Returns: YieldTask<Result<Texture2D, string>>

openAssetBundleFromFile

Full Usage: openAssetBundleFromFile

Returns: string -> YieldTask<AssetBundle>

Asynchronously open an asset bundle from disk

Returns: string -> YieldTask<AssetBundle>

openAssetBundleFromStream

Full Usage: openAssetBundleFromStream

Returns: Stream -> YieldTask<AssetBundle>

Asynchronously open an asset bundle from the given stream

Returns: Stream -> YieldTask<AssetBundle>

Type something to start searching.