Extended version of Blade[UG]'s answer because I was already typing it...

Originally Posted by
lukesmith
and in my code I refer to it as 'MyWeapons/weapon'
What do you mean by this? I assume in your defaultproperties? When referring to assets in code you use the following format:
Code:
AssetType'Package.Group.Name'
Or an actual example:
Code:
StaticMesh'Pickups.Ammo_Shock.Mesh.S_Ammo_ShockRifle'
This means the asset is a static mesh named S_Ammo_ShockRifle located in the Ammo_Shock group of the Pickups package. You need to use this same format for your own content. An easy way to get the reference is to copy it from the Content Browser by right-clicking on the asset and choosing Copy Full name to Clipboard. Then just paste that into your code.
The folder the package is in is irrelevant other than needing to be in the Content folder at the very least.
Bookmarks