I am building a data struct that needs to hold a reference to various blueprints of actor class. When I add either actor or object class or class reference data types to struct, they are not editable. They also do not show up in sub-structs.
I am assuming this is a bug, since structs in unreal seem to be at least partially designed around allowing you to centrally store static data that can be accessed from any blueprint.
Part of problem here is that Structure is setting a default value, but can’t reference an instance from level. So an Actor variable can’t have a default, and thus it’s left null in Struct. You can set these during runtime, however.
I’m not 100% sure why certain things, such as Class variables, can’t be set as defaults. There is an existing bug report recently put in for Data Tables being affected by this, and it includes a note about default values for Class variables and like (UE-8001). I would think that you should be able to set a default value for a Mesh or Material type, as they’re not instances, so I will add a note to bug report to that affect. I’ll let you know if I see any update on it.
I can understand logic behind not being able to reference an instance of something which doesn’t exist in level for sure.
Not being able to set defaults for class variables is sort of hampering usefulness of structs so hopefully that portion of functionality is restored soon, let me know if you have any updates on this