Asset Registry - what is an Object Path?

Here is some basic code to find assets by content directory path. The Get Assets By Path works, but I cannot figure out what Get Asset By Object Path does. What is an Object Path?

Hello there!

I would recommend you read the documentation if you haven’t already.

Get Asset by Object Path (Message) | Unreal Engine Documentation

Now, if even after reading it you don’t understand it, here is my take from it.

It retrieves a single object from the disk you pointed to by providing its path. The Get Assets by Path node on the other hand, retrieves all assets/objects located at the path (e.g. inside the directory at that path).

I read the docs but it doesn’t say anything beyond the nodes name.

I tried putting an assets path directly in there but it did nothing. Perhaps I made a typo or something though.

The Get Assets by Path works fine for me, I guess if you wanted to use Get Asset by Object Path, that would be a situation where you know precisely what you want but then… why search by path at all? Wouldn’t you just grab the class?

Maybe a situation where you want something by a certain name but what it could be might change? I’m not sure what sort of situation that might be.

I realize this is probably too late for you, but might help someone in the future as I just stumbled across this thread when having a similar issue with that function not seeming to load the asset.

After manually checking the object path name for one of the objects that I wanted I realized that the path sort of has the file name twice, so:
→ /Game/folder/subfolder/filename.filename
NOT
→ /Game/folder/subfolder/filename

3 Likes