Skip to content

Attribute visualization functions crashing Unreal Engine 5.4.4 #132

@Archives0

Description

@Archives0

I am attempting to use the functions defined in AttributeComponent.cpp to visualize attributes of the New York 3D Object dataset but am having an issue. I am creating the New York layer in Blueprints and then adding the layer to the map's layer collection. I am then calling the Setup3DAttributes function from blueprints and passing a reference of the previous layer to the function.

Image

Whenever either Setup3DAttributesFloatAndIntegerType or Setup3DAttributesOtherType are run, the engine crashes and produces the following error message.

Image

In file, the error message points to the following line of code in Setup3DAttributesFloatAndIntegerType:
layerAPIObject->SetAttributesToVisualize(layerAttributes.MoveToArray());

I have made many attempts to verify the validity of the layer APIObject and ensure it is not a nullptr, but no matter what I do, the engine always crashes at this line. Commenting this line out causes the engine to instead crash at the line:
Layer->SetMaterialReference(LoadObject<UMaterial>(this, TEXT("Material'/Game/Assets/MAT_BasicPBR'")));

I am not sure how to proceed with this issue and have been working to resolve it for a few days now. Any insight would be appreciated, thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions