Legacy Documentation: Version 5.4
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Removed in version 5.4.1p3
Method CreateFromFile has been renamed to LoadFromFile (UnityUpgradable) -> LoadFromFile(*)

AssetBundle.CreateFromFile

public static AssetBundle CreateFromFile(string path);

Parameters

path Path of the file on disk

See Also: WWW.assetBundle, WWW.LoadFromCacheOrDownload.

Description

Loads an asset bundle from a disk.

Only uncompressed asset bundles are supported by this function. This is the fastest way to load an asset bundle.