{ ARRaycastHit hit = aRRaycastHits[0]; hitPosition = hit.pose.position; }#elifWINDOWS_UWP || UNITY_WSARaycastHit hit;if(this.TryGazeHitTest(outhit)) { hitPosition = hit.point; }#endifQuaternion rotation = Quaternion.AngleAxis(0, Vector3.up);this.localAnchor = GameObject.Instantiate(/*...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class PlayerController : MonoBehaviour { //Player Variables public float moveSpeed; public float jumpHeight; public float raycastDistanceGround; public Text moneyText; private bool isGrounded;...
(arRaycastManager.Raycast(screenCenter, aRRaycastHits) && aRRaycastHits.Count > 0) { ARRaycastHit hit = aRRaycastHits[0]; hitPosition = hit.pose.position; } #elif WINDOWS_UWP || UNITY_WSA RaycastHit hit; if (this.TryGazeHitTest(out hit)) { hitPosition = hit.point; } #endif ...