I have a member variable in my class:
// Pointer to geometry pattern to apply
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = GeomProcess)
UStaticMesh * GeometryMesh;
In the Blueprint defaults, I can assign a mesh to that variable as I want. However if I put a breakpoint in the class constructor I find that the GeomeryMesh is unassigned and always NULL.
// Constructor
UGeomComponent::UGeomComponent(const class FPostConstructInitializeProperties& PCIP)
: Super(PCIP)
{
// Process geometry
if (GeometryMesh != NULL)
{
}
}
However if I later call a function on the class, from a Blueprint I notice that GeometryMesh is now assigned with the UStaticMesh * that I had set up in Blueprint.
How can I get access to the assigned member variables in the class constructor? Or perhaps I should be overloading another function and performing initialisation on member data at another point?