Modify metadata at runtime and set parameter to material

I want to achieve the object selection effect, and hide multiple specified objects.
Can it be realized by dynamically modifying the value of Metadata? The batchtable contains an id array and a status array. I want to query the index of the object through the id, and modify the status at the index, then generate Texture to update the material layer. I wang to know how to generate Texture with batchtable matadata.
How should I do? Thanks!

I find the answer. use FTexture2DMipMap to build it.

1 Like