この文書の現在のバージョンと選択したバージョンの差分を表示します。
| 両方とも前のリビジョン 前のリビジョン | |||
|
vci:sample:material:uvchange [2021/06/24 17:43] t-daihisa |
vci:sample:material:uvchange [2023/10/03 20:19] (現在) pastatto 非推奨のAPIを書き換えてサンプルの追加 |
||
|---|---|---|---|
| ライン 1: | ライン 1: | ||
| ====== マテリアルのUV座標を変更する ====== | ====== マテリアルのUV座標を変更する ====== | ||
| - | 毎フレームテクスチャのUVOffsetを変更する | + | [[https://developer.virtualcast.jp/vci-docs/api/classes/ExportMaterial/SetTextureOffset.html|SetTextureOffset]] を利用したマテリアル操作のサンプルVCIです。\\ |
| + | 毎フレームテクスチャのUVOffsetを変更します。 | ||
| + | |||
| + | === サンプルデータ === | ||
| + | {{ :vci:sample:material:uv_auto_scroll.zip |}} | ||
| ===== VCIスクリプト ===== | ===== VCIスクリプト ===== | ||
| ライン 9: | ライン 13: | ||
| u = u + 0.05 | u = u + 0.05 | ||
| u = u%1.0 | u = u%1.0 | ||
| - | vci.assets._ALL_SetMaterialTextureOffsetFromIndex(0,Vector2.__new(u,0)) | + | vci.assets.material._ALL_SetTextureOffsetFromIndex(0,Vector2.__new(u,0)) |
| end | end | ||
| </file> | </file> | ||