Hello, can anybody confirm that what I am doing makes sense here:
The goal is to grab a soft class reference from data table, ensure that the class is loaded to memory (Load Class Asset Blocking), and then actually spawn an actor of the class.
The intent for using soft class reference here is so that anybody looking at this data table is not loading all the classes that will be in the data table.
If I understand correctly, it is necessary to Load Class Asset Blocking
because the resolve node
will not actually load a class - it could return null.
If I understand correct, the resolve node
is effectively saying, “follow this given path to find a desired class, and then seek out that class from where ever it is in memory. Thus, it is required that the class is in memory. If it is not, hey, that’s not my job!”
The Load Class Asset Blocking
node tooltip does say that an Async node should be preferred, however that node that is recommended does not appear in context search, so I guess it does not apply to a situation like this?
Some more specific context - this sort of spawning would be happening infrequently, and only one actor at a time. The actors being spawned are lightweight and are completely decoupled. So I don’t think its really needed to load them asynchronously, though I am just speculating about that. This is the “deepest” I’ve gone with blueprints so far.