ボタンを押すことでオブジェクトを回転させたいのですが移動してしまいます
C#
using System.Collections.Generic;
using System.Collections;
using UnityEngine;
public class right : MonoBehaviour
{
public GameObject obj;
private int counter = 0; public void OnClick() { counter++; obj.transform.Rotate(new Vector3(0f, 90f, 0f)); }
}
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。