Setting variables on a Primary Asset

I have created a Primary Asset (with blueprints) and made assets from it in editor.
When i try to set a variable in a new asset i get an error:


How can i create & manipulate variables in primary data assets ?

New Host is an object reference. You need to either create the ‘New Host’ variable via a construct or add component command, or you need to have the object already created in design time and assign it to the New Host variable before you use it

ok, i got it to work by making a dummy asset in editor, assigning it to the “new host”.
the thing is, that dummy assets var get overwritten.

can i create a primary data asset at runtime ? (i’ve seen the node Create Asset Data)

look at construct object from class

yes !


for better pratice purpose, what should the outer pin point to ?

Self is correct :slight_smile: glad I could help

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.