Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

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

AssetBundle.CreateFromFile

Switch to Manual
public static function CreateFromFile(path: string): 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.