Version: 1.7
LanguageEnglish
  • C#

InstantAssetTable.LoadAsset

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

Declaration

public Object LoadAsset(string path, Type type);

Parameters

path Path of the Asset. The path is a relative path based on the Assets folder in the Editor, for example, "Assets/material/test.mat".
type Type of Asset.

Returns

Object Loaded asset object.

Description

Synchronously loads an Asset from the InstantAssetTable.