How to set image dynamically at run time using LUA script?
How to set image to the alias node created as shown below dynamically? I'm able to acesss the node but not able to set the new image to the node. either in lua scripting or in c++script.
0
-
local imageNode = contextNode
local texture = imageNode:tryAcquireResource("kzb://luatest/Textures/DefaultBackground") imageNode:setProperty(Image2DMetadata.ImageProperty, texture)You can also ask the Kanzi Doc Bot to assist with questions like these.
0
Please sign in to leave a comment.
Comments
1 comment