Forgive me if I am misinterpreting your question.
In the details panel of any variable there is an option for making it “Instance Editable” and Expose on Spawn". If you select both of them whenever you call a spawn event for that class you set that variable before the object is spawned.