Skip to content

glTF object custom user data/extras storage #124

@AndreCostaaa

Description

@AndreCostaaa

Hi @spnda,

I would like to store my own data tied to the Node class
Usually, in C, this is done by setting a void* attribute that can then point to anything, I guess with C++ this would be done with generic instead

template <typename UserDataT>
FASTGLTF_EXPORT struct Node {
    UserDataT userData;
}

Would this change be something you'd like? If not do you have another possible approach?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions