====== マテリアルのUV座標を変更する ====== [[https://developer.virtualcast.jp/vci-docs/api/classes/ExportMaterial/SetTextureOffset.html|SetTextureOffset]] を利用したマテリアル操作のサンプルVCIです。\\ 毎フレームテクスチャのUVOffsetを変更します。 === サンプルデータ === {{ :vci:sample:material:uv_auto_scroll.zip |}} ===== VCIスクリプト ===== local u = 0 function update() u = u + 0.05 u = u%1.0 vci.assets.material._ALL_SetTextureOffsetFromIndex(0,Vector2.__new(u,0)) end