Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • arf/world-analysis-api-helpers/unity-world-analysis-validation
1 result
Show changes
fileFormatVersion: 2
guid: 1eeb0d6230b484c8da3267d4af535822
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
using UnityEngine;
public class RayCastSelection : MonoBehaviour
{
void Update()
{
if (Input.GetMouseButtonDown(0) || (Input.touchCount > 0 && Input.GetTouch(0).phase == TouchPhase.Began))
{
Raycast();
}
}
void Raycast()
{
Ray ray;
// Determine if it's a mouse click or touch
if (Input.touchCount > 0)
{
ray = Camera.main.ScreenPointToRay(Input.GetTouch(0).position);
}
else
{
ray = Camera.main.ScreenPointToRay(Input.mousePosition);
}
RaycastHit hit;
if (Physics.Raycast(ray, out hit))
{
// Add your logic here for what happens when the raycast hits an object
hit.collider.gameObject.SendMessage("Interact", SendMessageOptions.DontRequireReceiver);
}
}
}
fileFormatVersion: 2
guid: aa516883b9452491d9f6bd8ec8d840e5
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e4b7be4c33f68d0418c3b4e1a7053d91, type: 3}
m_Name: ARFSTEF
m_EditorClassIdentifier:
serverName: STEF
company: Orange
basePath: http://stef512.ddns.net
port: 0
currentUser: {fileID: 11400000, guid: 19460fb98cba6a247a1ab3a067f97cb2, type: 2}
fileFormatVersion: 2
guid: d326d2a31cf07497ea8c6c48b54d1e93
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
using UnityEngine;
public class DisableObjectOutsideEditor : MonoBehaviour
{
// Start is called before the first frame update
void Awake()
{
// #if !UNITY_EDITOR
this.gameObject.SetActive(false);
// #endif
}
}
fileFormatVersion: 2
guid: d3c15d70663374dbebe5a47c261a8094
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
......@@ -16,7 +16,7 @@
"com.unity.xr.arcore": "4.1.5",
"com.unity.xr.arkit": "4.1.5"
},
"hash": "09f3de423232cb087ab450f72a2ec56eedd9c465"
"hash": "0f7979856fb58c814c861466728400cb60ed5a81"
},
"com.unity.ai.navigation": {
"version": "1.1.5",
......
Subproject commit 7aeed4c2c3bd363f816c34582c673d6b4b2073bf
Subproject commit 374cc8183bffa7d1b0f51bb009db03fe7f98449e
Subproject commit a3687e09b8a3428cab2f13a63d50e77d81955dee
Subproject commit aa919a17df2a6203ce42ab2e4700c255936f940a