###前提・実現したいこと
オキュラスタッチのボタン操作を用いてオブジェクトの表示/非表示の切り替えを行いたいのですが
うまく動きません。
###発生している問題・エラーメッセージ
非表示にはできても、その後の再表示が出来ない
TouchのボタンBが動作しない
エラーメッセージ
特になし
###該当のソースコード
C#
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Destroy : MonoBehaviour {
private static GameObject obj;
// Use this for initialization void Start () { obj = gameObject; } // Update is called once per frame void Update () { if (OVRInput.Get (OVRInput.RawButton.A)) { obj.SetActiveRecursively(false); } if (OVRInput.Get (OVRInput.RawButton.B)) { obj.SetActiveRecursively(true); } }
}
###試したこと
課題に対してアプローチしたことを記載してください
###補足情報(言語/FW/ツール等のバージョンなど)
より詳細な情報
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。