これでいけると思います。
lossyScaleではなくlocalScaleなので気を付けてくださいね。
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class test : MonoBehaviour {
public float speed;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
transform.localScale += new Vector3(0, speed, 0);
}
}
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/07/25 02:10