Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

AssetBundle.CreateFromFile

static function CreateFromFile(path: string): AssetBundle;
static AssetBundle CreateFromFile(string path);
static def CreateFromFile(path as string) as AssetBundle

Parameters

pathPath 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.