Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Doloro.DataManagement.AssetBundlesTools.LoaderUtils Class Reference

Detailed Description

Class that provides unified API for loader features handling.

Static Public Member Functions

static void RegisterLoader (AResourceLoadingBehavior loader)
 Adding loader to register collection. More...
 
static void UnregisterLoader (AResourceLoadingBehavior loader)
 Removing loader from the register collection. More...
 
static void ClearRegister ()
 Removes all entries from the loaders register.
 
static void LoadBundlesByPath (string path)
 Looking for assets bundles by the path and load their content to RAM. More...
 
static void BundlesAsyncLoadRound ()
 Checks current loading state of async operations.
 
static bool ExternalLoadersRound ()
 Successively calls external loaders. And updates meta data. More...
 
static string CollectStatistic ()
 Collects short statistic data about loader state. More...
 
static void LoadAllAssets< T > (Action< AssetBundle, UnityEngine.Object[]> handler)
 Loading all assets with type from bundles. More...
 
static void LoadAllAssetsParallel< T > (Action< AssetBundle, UnityEngine.Object[]> handler)
 Loading all assets with type from bundles. handles process in different thread. More...
 
static void LoadAllAssetsParallel< T > (Action< AssetBundle, UnityEngine.Object[]> handler, Action isFinished)
 Loading all assets with type from bundles. handles process in different thread. More...
 

Static Public Attributes

static Action eBundlesLoaded
 Occurs when content loading process is complete.
 
static Action eExternalLoadersCompleted
 Occurs when all external loaders bond have data as loaded.
 
static Action< AResourceLoadingBehavioreNewLoaderInProgress
 Occurs when some new loader starts loading process.
 

Properties

static bool BundlesLoaded [get]
 Describe does the bundles was loaded.
 
static int BundlesCount [get]
 Count of detected assets bundles.
 
static float LoadingPercent [get]
 Loading progress in percents.
 
static int LoadedBundlesCount [get]
 Count of already loaded bundles.
 
static int BundlesToLoad [get]
 How many bundles still waiting for load.
 
static int IndexOfLoaderInProgress [get, set]
 Index of a loader that currently at the loading process.
 
static bool AsyncLoad = true [get, set]
 Define loading way that will be used my the handler. Changing of the state during started loading not cause any affect.
 
static int ExternalResourceLoadersCount [get]
 How many resource loaders included to processing.
 

Member Function Documentation

◆ CollectStatistic()

static string Doloro.DataManagement.AssetBundlesTools.LoaderUtils.CollectStatistic ( )
static

Collects short statistic data about loader state.

Returns

◆ ExternalLoadersRound()

static bool Doloro.DataManagement.AssetBundlesTools.LoaderUtils.ExternalLoadersRound ( )
static

Successively calls external loaders. And updates meta data.

Returns
True - finished. False - in progress.

◆ LoadAllAssets< T >()

static void Doloro.DataManagement.AssetBundlesTools.LoaderUtils.LoadAllAssets< T > ( Action< AssetBundle, UnityEngine.Object[]>  handler)
static

Loading all assets with type from bundles.

Template Parameters
TType of loading assets.
Parameters
handlerDelegate that will called to handle loaded assets.
Type Constraints
T :UnityEngine.Object 

◆ LoadAllAssetsParallel< T >() [1/2]

static void Doloro.DataManagement.AssetBundlesTools.LoaderUtils.LoadAllAssetsParallel< T > ( Action< AssetBundle, UnityEngine.Object[]>  handler)
static

Loading all assets with type from bundles. handles process in different thread.

Template Parameters
TType of loading assets.
Parameters
handlerDelegate that will called to handle loaded assets.
Type Constraints
T :UnityEngine.Object 

◆ LoadAllAssetsParallel< T >() [2/2]

static void Doloro.DataManagement.AssetBundlesTools.LoaderUtils.LoadAllAssetsParallel< T > ( Action< AssetBundle, UnityEngine.Object[]>  handler,
Action  isFinished 
)
static

Loading all assets with type from bundles. handles process in different thread.

Template Parameters
TType of loading assets.
Parameters
handlerDelegate that will called to handle loaded assets.
isFinishedhandler that will be called when all bundles will be scanned.
Type Constraints
T :UnityEngine.Object 

◆ LoadBundlesByPath()

static void Doloro.DataManagement.AssetBundlesTools.LoaderUtils.LoadBundlesByPath ( string  path)
static

Looking for assets bundles by the path and load their content to RAM.

Parameters
pathPath with a bundles packages.

◆ RegisterLoader()

static void Doloro.DataManagement.AssetBundlesTools.LoaderUtils.RegisterLoader ( AResourceLoadingBehavior  loader)
static

Adding loader to register collection.

Parameters
loaderTarget loader.

◆ UnregisterLoader()

static void Doloro.DataManagement.AssetBundlesTools.LoaderUtils.UnregisterLoader ( AResourceLoadingBehavior  loader)
static

Removing loader from the register collection.

Parameters
loader

The documentation for this class was generated from the following file: