ScriptReference/AssetDatabase.LoadAssetAtPath #14
Replies: 2 comments
-
|
If you're trying to load an asset from a Package you can use |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Paths must be local to an Assets or Packages folder. You can get a local path to the Assets folder from a full path using: path = path[(Application.dataPath.Length - "Assets".Length)..];(This code presumes the provided path will always be rooted to the correct drive) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
ScriptReference/AssetDatabase.LoadAssetAtPath
https://docs.unity3d.com/ScriptReference/AssetDatabase.LoadAssetAtPath.html
Beta Was this translation helpful? Give feedback.
All reactions