VR空間で目線の中心からゲームオブジェクトを生成したいのですが、
目線中心の情報を取得する方法が分からなく困っております。
どなたか教えていただけたら幸いですm(_ _)m
C#
1using System.Collections; 2using System.Collections.Generic; 3using UnityEngine; 4 5public class Look_Instantiate : MonoBehaviour 6{ 7 public GameObject InstantiatePrefab; 8 9 // Start is called before the first frame update 10 void Start() 11 { 12 Instantiate(InstantiatePrefab, transform.position, Quaternion.identity); 13 } 14 15 // Update is called once per frame 16 void Update() 17 { 18 19 }
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/01/15 13:28