Version: 2022.3
LanguageEnglish
  • C#
Removed

AssetBundle.CreateFromMemoryImmediate

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Obsolete Method CreateFromMemoryImmediate has been renamed to LoadFromMemory.
Upgrade to LoadFromMemory

Declaration

public static AssetBundle CreateFromMemoryImmediate(byte[] binary);

Parameters

binary Array of bytes with the AssetBundle data.

Description

Synchronously create an AssetBundle from a memory region.

Use this method to create an AssetBundle from an array of bytes. This is useful when you want to download the AssetBundle using your own system instead of the UnityWebRequest class, or when you have downloaded the data with encryption and need to create the AssetBundle from the unencrypted bytes.

Compared to AssetBundle.CreateFromMemory, this version is synchronous and will not return until it is done creating the AssetBundle object.

Method CreateFromMemoryImmediate is obsolete and has been renamed to LoadFromMemory.

Additional resources: AssetBundleCreateRequest, AssetBundle.CreateFromMemory.