March 2019
Intermediate to advanced
708 pages
17h 9m
English
We create an instance of the FObjectFinder class, passing in the type of asset that we are trying to load as a template parameter.
FObjectFinder is a class template that helps us load assets. When we construct it, we pass in a string that contains a path to the asset that we are trying to load.
The string is of the format "{ObjectType}'/Path/To/Asset.Asset'". Note the use of single quotes in the string.
To get the string for an asset that already exists in the editor, you can right-click on the asset in the Content Browser and select Copy Reference. This gives you the string so that you can paste it into your code:

We use ...
Read now
Unlock full access