rdeioris / glTFRuntime-docs

Official Documentation for the glTFRuntime Unreal Engine Plugin
MIT License
97 stars 16 forks source link

Adding and exposing user metadata in glTF #11

Closed faulknermano closed 4 months ago

faulknermano commented 4 months ago

Hi @rdeioris, I'd like to ask for advice on the best way to inject user data into a gltf file and have that accessible within UE.

My intention is to add metadata to a node, or perhaps even a mesh:

E.g.

"nodes": [
        {
            "mesh": 0,
            "name": "Hose_low",
            "userdata": "A<<B"
        },
...
"meshes": [
        {
            "primitives": [
                {
                    "attributes": {
                        "POSITION": 1,
                        "TANGENT": 2,
                        "NORMAL": 3,
                        "TEXCOORD_0": 4
                    },
                    "indices": 0,
                    "material": 0,
                    "userdata": "A<<B"
                }
            ],

In either situation, I was thinking that perhaps it would be exposed in Component Tags?

Is this possible right now? Or perhaps there is another way of doing it?

Thank you!

faulknermano commented 4 months ago

Sorry, I raised an issue on the wrong repo. Transferring it to the main one.