Hopefully someone already knows the answer to these:
-
Can PMCs have static baked lighting? I’m guessing no as they’re re-created at runtime.
-
Do PMCs auto-generate a lightmap UV set? Also guessing no if the above doesn’t take place.
I need those UVs so I’m thinking that I need to convert my procedural meshes to static meshes somehow. I’m also thinking that the easiest way to do this might be to generate brushes and from there convert the brush to a static mesh.
Has anyone had to do this before?
Second question: I’m getting a standard linker error while extending UEditorBrushBuilder:
error LNK2019: unresolved external symbol "public: __cdecl UEditorBrushBuilder::UEditorBrushBuilder(class FObjectInitializer const &)" (??0UEditorBrushBuilder@@QEAA@AEBVFObjectInitializer@@@Z) referenced in function "public: __cdecl UOctaneBrushBuilder::UOctaneBrushBuilder(class FObjectInitializer const &)" (??0UOctaneBrushBuilder@@QEAA@AEBVFObjectInitializer@@@Z)
Normally it’d be a missing header or module, but they’re all present. The problem is I’ve extended UEditorBrushBuilder which is abstract and MINIMAL_API, so I guess it can’t call the initializer.
How do you handle this? Should I be extending UBrushBuilder instead and just copying snippets from UEditorBrushBuilder?
Edit: to answer my own question, using UBrushBuilder instead instantly fixed it.