The attachment DataAsset contains the image mode like this:
This is the idea I suddenly got for the weapon system . I can get things of the attachments that are available in each weapon ,but I am very confused about how to refer to the attachment DataAsset in weapons…
I’m not sure I understand the question, can’t you just for example do Get Available Attachments → Get Item → Get Socket to get the socket for that attachment?
You should be able to just do Get Image, if the type of the array is that of your data asset. If it’s not for some reason, then you need to cast the result of get to your data asset’s type. So if your data asset is of type AttachmentDefinition then just do Cast to AttachmentDefinition and you will be able to get the variables. So to make it easy for you, just make sure that your Available Attachments array is of the same type as your attachment data assets
Yes, you are absolutely right. I cast to dataasset type after the for each loop, and then get its picture, lol, it worked!
I got confused about where the data came from before casting to type……