Skip to main content

How to set image dynamically at run time using LUA script?

Comments

1 comment

  • Jason
    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.