Expose on Spawn default value for Spawn Actor

Hi all,

I have a strange issue. I recently transition my project from 5.1 to 5.5, and I noticed that expose on spawn values aren’t functioning the same between my projects. Previously, if I left an expose on spawn value blank when using the “Spawn Actor from class” node, it would use the default class value, but in my 5.5 version, it uses a null value if left empty, which does make sense but makes me question how I can use a default value for expose on spawn. In my instance, I have an “Equipped weapon class” and “holstered weapon class” variable which when left empty, would previously use the class defaults, but now it just gives a null value (resulting in characters spawning with no weapons).

I tried the “Get Class Defaults” node, but it doesn’t show me the variables I need (EquippedWeaponClass and HolsteredWeaponClass) presumably because the class inherits from a C++ class.

have you tried just deleting and re creating the node?

the old turn it off and on again :rofl:

I did, unfortunately it didn’t change anything :frowning:

@SgtFlexxx Is this PR possibly related?

https://github.com/EpicGames/UnrealEngine/pull/12637

This is pretty much 1-to-1 of the issue I’m describing, so yeah thanks for that link. I was thinking it can also be on my end but now I definitely know its because it got changed in 5.5. Only issue for me to figure out now is why my class defaults node doesn’t show C++ variables.

Oh okay, so I just forgot to look at the details panel for the ‘Get Class Defaults’ node. It lists inherited variables there that you can check on to use as pins.

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