NME Linking Nodes to Dynamic Textures

If I did not want to static embed a texture image into a texture node in NME, and instead set a custom variable in a block that is already set in my code and holding an appropriate texture image, how do I set that up in NME?

I am just trying to avoid having to go through the exported code each time I export to delete all the base64 data and replace with a texture = new Texture( imageName.png") every time I re-export my NME materials.

You can simply do something like nodemat.getBlockByName("block_name").texture = ....

Example:

1 Like