Removed in version 2019.2.10

Resources.LoadAssetAtPath

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 public static Object LoadAssetAtPath(string assetPath, Type type);

Parameters

assetPathPathname of the target asset.
typeType filter for objects returned.

Description

Returns a resource at an asset path (Editor Only).

This function always return null in the standalone player or web player. This is useful for quickly accessing an asset for use in the editor only.

Note: All asset names and paths in Unity use forward slashes, paths using backslashes will not work.
This returns only asset object that is visible in the Project view.

Resources.LoadAssetAtPath is deprecated. Use AssetDatabase.LoadAssetAtPath instead.

Note that web player is not supported from 5.4.0 onwards.


Obsolete public static T LoadAssetAtPath(string assetPath);

Parameters

assetPathPathname of the target asset.

Description

Returns a resource at an asset path (Editor Only).

This function always return null in the standalone player or web player. This is useful for quickly accessing an asset for use in the editor only.

Note: All asset names and paths in Unity use forward slashes, paths using backslashes will not work.
This returns only asset object that is visible in the Project view.

Note that web player is not supported from 5.4.0 onwards.

Did you find this page useful? Please give it a rating: