Hi! So I’m just doing some maintenance on a project I’ve been messing around on and I have a struct that is taking up some memory. I have a soft class reference as my WeaponToSpawn, however, it seems that it is taking up as much memory as a hard reference. So I checked the reference viewer and I was pretty sure that if it was actually a soft reference, it would be a pink line to that class/object. But it seems to just stay as the default white line. I tried changing the type of references around, saving, and reopening the window to see if it was maybe just updating weirdly but it doesn’t seem to be that. Any ideas or clarifications for this would be greatly appreciated!
It’s the same as in a blueprint itself, you need to make it a soft actor ref.
You can still assign it later, in the BP
Oh ok I see. So when would I want to use a soft reference to a specific class that I made instead of referencing a soft actor class?
I think you’d never want to use a soft ref to a specific class The moment you mention a class, that’s it, boom, hard link.
Have you tried it in the editor yet? It’s pretty self explanatory when you get there.
Just make it actor type, but you can assign it in the details, even though it’s still not a specific instance.
Interesting… Well I’ll do that from now on and see where that takes me! Thank you so much for your help and explanations! I really appreciate it!
Yeah, it’s a little strange isn’t it. Just making it soft seems like it should be enough, but I guess I can also see the logic of making it ‘actor’ and then stashing the specific class in the details.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.