Hey there guys,
For our plugin we needed to use a custom compiler that at the end, injects some values on the CDO (a state machine of sorts)
This works very good, but has an issue that i’m pretty sure it’s a configuration one.
When i’m instancing this type of objects, this sub UObjects don’t get correctly copied… this is… they are basically pointers to the CDO objects, what i want is the engine to duplicate them per instance as it does normally, this has issues when wanting to instantiate multiple copies of the dynamic class, as all of them point to the same C++ Raw Pointer.
Now, checking the engine the issue seems to stem from FObjectInitializer wanting to use the UClass->PostConstructionLink for fastest compilation, but this is a null pointer.
As i read, this is a chain of UPRoperties pointing to properties that need PostLoading, so am i wrong to assume that setting RF_NeedPostLoad for the properties is good enough? or am i missing something else?
How does the UClass construct or obtains the PostConstructionLink?
And in that regard… are my assumptions correct on thinking that FObjectInitializer::InitProperties is the place where the SubObject get duplicated to their instances (via property copying)?
Any help would be appreciated… at this point i have only come this far by myself, but i want to understand what i’m messing with.