en:vci:sample:material:uvchange

Change the UV coordinate of materials

Change the UV offset of the texture every frame

VCI script

main.lua
local u = 0
function update()
    u = u + 0.05
    u = u%1.0
    vci.assets._ALL_SetMaterialTextureOffsetFromIndex(0,Vector2.__new(u,0))
end
en/vci/sample/material/uvchange.txt · Last modified: 2021/06/30 14:27 by t-daihisa

Page Tools