Cesium Metadata Component

Hello,
I am currently working on retrieving metadata from cesium tilesets. I have followed this Visualize Mesh Features and Metadata tutorial which works. For context, my program works by spawning in Cesium3DTilesets during runtime. The issue I am facing is that I need to manually add the CesiumFeaturesMetadata component in order to retrieve the metadata each time. My question is, is there a way to automatically add and autofill this component when I spawn it in my program. Hopefully that makes sense and please let me know if anybody need further clarification.

Hi @dyllan-aeroai,

It would help to have more context about your use case so we could suggest the best paths forward. But from what you wrote, it sounds like you want to apply metadata styling at runtime, is that correct?

The caveat with CesiumFeaturesMetadata component is that it is mainly intended for use in the Editor, not at runtime. It’s purpose is to create Unreal materials for metadata styling. The fields that are filled by Auto Fill are there to tell the Cesium3DTileset which properties it should send to the material for styling. Unfortunately, I’m not aware of any way to generate new Unreal materials at runtime.

The Auto Fill button is also used in the Editor to capture all the metadata based on the tiles that are currently visible in the Editor view. You could modify the plugin to make this work at runtime, but I can’t make any guarantees about performance. I think it would have to be a one-time action that you do once the tileset’s load progress is at 100%. (The load progress can be queried through Blueprints.)

But let me make sure I’m not misunderstanding you first! :smile: