I was following a tutorial, for make a data asset for an inventory, but in determined point, i have troubles with the FPrimaryAssetID , I’m working inside of a plugin that i build together with the project, in my plugin i have a submodule, and inside of this, i create a class of ItemData that inherits of UPrimaryDataAsset, and the tutorial says me that for the ID i need to put the next code: UPROPERTY(EditDefaultsOnly, BlueprintReadOnly,Category=“Item”)
//Example: “Item.Knife”
FPrimaryAssetId ItemID;
The tutorial says that i need to create a data asset blueprint , that inherit from my ItemData, and in this DataAsset i can put the ID, in the next style, Item.Knife , the tutorial don’t clarify how to edit, and set the asset manager, and when i try to write in the item ID, of my Item.Knife, i can’t write anything, the only thing that i can put is a reference of primary assets like in the image 1 in the ItemID space, but i can’t write the text Item.Knife, anybody knows how can i work in this, and make that this works , because i don’t understand , what’s the problem or how can i put the id’s with that format.
yep i understand but your example wouldnt be “Item.Knife”
the FPrimaryAssetID is more like an FName to a PrimaryAssetType i think, maybe its not showing up because you havent added the PrimaryAssetType to the AssetManager in ProjectSettings