StackOverflowException: The requested operation caused a stack overflow.
無限ループに陥ると起きるらしい
//Tests関数で更にTests関数を呼び更にTestsの…と終わりなく続くと?
public void Tests()
{
Tests();
}
マウス触れたらイベント起こす
using UnityEngine;
using UnityEngine.UI;//追記する
using System.Collections;
using UnityEngine.EventSystems;
public class StageButton : MonoBehaviour, IPointerEnterHandler//←追記する
{
public void OnPointerEnter(PointerEventData eventData)
{
//マウスが触れたら発動みたいな
}
}
コメントをかく