2020-06-01から1ヶ月間の記事一覧

Unity2020.4 UVスクロール

1.画像を用意 2.スプライトだったらテクスチャー(Default)に変更 3.WrapModeをRepeatに変更画像タイプ4.Materialを用意 5.Shaderを Unlit/Textureに変更マテリアル6.スクリプトを用意 using System.Collections; using System.Collections.Generic; using Un…

PlayerController

using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerController : MonoBehaviour { Rigidbody2D rigidbody2D; // Start is called before the first frame update void Start() { rigidbody2D = GetCompon…