Click or drag to resize

AssetBundleService Class

Service that downloads all assetbundles at start of application
Inheritance Hierarchy

Namespace:  ImmerseSDK.AssetBundles
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.5.0.0 (3.5.0.0)
Syntax
C#
public class AssetBundleService : SingletonBehaviour

The AssetBundleService type exposes the following members.

Constructors
  NameDescription
Public methodAssetBundleService
Initializes a new instance of the AssetBundleService class
Top
Methods
  NameDescription
Public methodCoroutineInitialise
Override this to perform initialisation tasks This coroutine is started in Awake(). To execute code in Awake(), override OnAwake()
(Overrides SingletonBehaviourCoroutineInitialise.)
Public methodStatic memberGetAssetBundleConfigAssetPath
Returns the file path of the asset bundle configuration file in your project. This can be used to automatically update it during builds or in Editor Scripts and tools if need be.
Public methodStatic memberGetAssetBundleConfigFilePath
Returns the file path of the asset bundle configuration file in your project. This can be used to automatically update it during builds or in Editor Scripts and tools if need be.
Public methodStatic memberGetAssetBundleStreamingAssetsPath
Returns the folder path of the asset bundle streaming assets folder in your project. This can be used to automatically update it during builds or in Editor Scripts and tools if need be.
Public methodStatic memberGetRelativeStreamingResourcePath
Gets the relative path inside the streaming assets folder for this asset bundle file
Public methodStatic memberGetVersionedAssetBundlePath
Gets the relative versioned path for an asset bundle file.
Public methodIsAssetBundleLoaded
Returns true if this AssetBundle is already loading, otherwise false
Public methodIsAssetBundleLoading
Returns true if this AssetBundle is already loading, otherwise false
Public methodLoadAssetAsyncT
Start loading an asset from the specified assetbundle. If the asset bundle is not loaded, this method fails.
Public methodStartLoadingAssetBundle
Start loading an AssetBundle
Public methodUnloadAssetBundle
Unload AssetBundle and free resources. note we do not unload all the loaded objects. It's up to you to make sure they are not referenced and destroyed if need be.
Top
Extension Methods
  NameDescription
Public Extension MethodGetCopyOf
Copies all properties of a component from source to target. Uses reflection to set properties.
(Defined by ComponentExtensions.)
Public Extension MethodWaitForT
Waits for a singleton on a coroutine
(Defined by SingletonManager.)
Top
See Also