From 015c1cb4480404a93cbe35449ae133c907b1ff77 Mon Sep 17 00:00:00 2001 From: chenyulin Date: Thu, 4 Apr 2024 17:51:08 +0800 Subject: [PATCH] feat. capture camera --- Assets/Material/CamTexture.renderTexture | 38 + Assets/Material/CamTexture.renderTexture.meta | 8 + Assets/Material/Materials.meta | 8 + Assets/Material/Materials/CamTexture.mat | 28 + Assets/Material/Materials/CamTexture.mat.meta | 8 + .../Material/Materials/New Render Texture.mat | 28 + .../Materials/New Render Texture.mat.meta | 8 + Assets/Material/Texture.mat | 78 + Assets/Material/Texture.mat.meta | 8 + Assets/Scenes/SampleScene.unity | 1262 ++++++----------- Assets/Script/Detection.meta | 8 + Assets/Script/Detection/HoloCanCapture.cs | 34 + .../Script/Detection/HoloCanCapture.cs.meta | 11 + 13 files changed, 712 insertions(+), 815 deletions(-) create mode 100644 Assets/Material/CamTexture.renderTexture create mode 100644 Assets/Material/CamTexture.renderTexture.meta create mode 100644 Assets/Material/Materials.meta create mode 100644 Assets/Material/Materials/CamTexture.mat create mode 100644 Assets/Material/Materials/CamTexture.mat.meta create mode 100644 Assets/Material/Materials/New Render Texture.mat create mode 100644 Assets/Material/Materials/New Render Texture.mat.meta create mode 100644 Assets/Material/Texture.mat create mode 100644 Assets/Material/Texture.mat.meta create mode 100644 Assets/Script/Detection.meta create mode 100644 Assets/Script/Detection/HoloCanCapture.cs create mode 100644 Assets/Script/Detection/HoloCanCapture.cs.meta diff --git a/Assets/Material/CamTexture.renderTexture b/Assets/Material/CamTexture.renderTexture new file mode 100644 index 0000000..499ff99 --- /dev/null +++ b/Assets/Material/CamTexture.renderTexture @@ -0,0 +1,38 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!84 &8400000 +RenderTexture: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: CamTexture + m_ImageContentsHash: + serializedVersion: 2 + Hash: 00000000000000000000000000000000 + m_ForcedFallbackFormat: 4 + m_DownscaleFallback: 0 + m_IsAlphaChannelOptional: 0 + serializedVersion: 3 + m_Width: 896 + m_Height: 504 + m_AntiAliasing: 1 + m_MipCount: -1 + m_DepthFormat: 2 + m_ColorFormat: 8 + m_MipMap: 0 + m_GenerateMips: 1 + m_SRGB: 0 + m_UseDynamicScale: 0 + m_BindMS: 0 + m_EnableCompatibleFormat: 1 + m_TextureSettings: + serializedVersion: 2 + m_FilterMode: 1 + m_Aniso: 0 + m_MipBias: 0 + m_WrapU: 1 + m_WrapV: 1 + m_WrapW: 1 + m_Dimension: 2 + m_VolumeDepth: 1 diff --git a/Assets/Material/CamTexture.renderTexture.meta b/Assets/Material/CamTexture.renderTexture.meta new file mode 100644 index 0000000..2a852f5 --- /dev/null +++ b/Assets/Material/CamTexture.renderTexture.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2c806b64d300cbf438885bd85e52cd14 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 8400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Material/Materials.meta b/Assets/Material/Materials.meta new file mode 100644 index 0000000..c63f09e --- /dev/null +++ b/Assets/Material/Materials.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 35e04dfeabab8ae48bf11a5ced814470 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Material/Materials/CamTexture.mat b/Assets/Material/Materials/CamTexture.mat new file mode 100644 index 0000000..126fe70 --- /dev/null +++ b/Assets/Material/Materials/CamTexture.mat @@ -0,0 +1,28 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: CamTexture + m_Shader: {fileID: 10752, guid: 0000000000000000f000000000000000, type: 0} + m_ShaderKeywords: + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _MainTex: + m_Texture: {fileID: 8400000, guid: 2c806b64d300cbf438885bd85e52cd14, type: 2} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: [] + m_Colors: [] + m_BuildTextureStacks: [] diff --git a/Assets/Material/Materials/CamTexture.mat.meta b/Assets/Material/Materials/CamTexture.mat.meta new file mode 100644 index 0000000..8a7380b --- /dev/null +++ b/Assets/Material/Materials/CamTexture.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d4c3396def303a84d81ff6a10a617c11 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Material/Materials/New Render Texture.mat b/Assets/Material/Materials/New Render Texture.mat new file mode 100644 index 0000000..7065ae7 --- /dev/null +++ b/Assets/Material/Materials/New Render Texture.mat @@ -0,0 +1,28 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: New Render Texture + m_Shader: {fileID: 10752, guid: 0000000000000000f000000000000000, type: 0} + m_ShaderKeywords: + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _MainTex: + m_Texture: {fileID: 8400000, guid: 2c806b64d300cbf438885bd85e52cd14, type: 2} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: [] + m_Colors: [] + m_BuildTextureStacks: [] diff --git a/Assets/Material/Materials/New Render Texture.mat.meta b/Assets/Material/Materials/New Render Texture.mat.meta new file mode 100644 index 0000000..594d0e8 --- /dev/null +++ b/Assets/Material/Materials/New Render Texture.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a47112c7e293ca94aaf6560d2b5467b2 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Material/Texture.mat b/Assets/Material/Texture.mat new file mode 100644 index 0000000..a487ee2 --- /dev/null +++ b/Assets/Material/Texture.mat @@ -0,0 +1,78 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Texture + m_Shader: {fileID: 10752, guid: 0000000000000000f000000000000000, type: 0} + m_ShaderKeywords: + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - _BumpScale: 1 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _GlossMapScale: 1 + - _Glossiness: 0.5 + - _GlossyReflections: 1 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _Parallax: 0.02 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _UVSec: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/Material/Texture.mat.meta b/Assets/Material/Texture.mat.meta new file mode 100644 index 0000000..1206956 --- /dev/null +++ b/Assets/Material/Texture.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 17cdbd6c22515b743a9fd0c101be3e06 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scenes/SampleScene.unity b/Assets/Scenes/SampleScene.unity index b3c1e19..ca0cde6 100644 --- a/Assets/Scenes/SampleScene.unity +++ b/Assets/Scenes/SampleScene.unity @@ -1512,175 +1512,6 @@ Transform: m_Father: {fileID: 1970860041} m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &203608262 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 203608263} - - component: {fileID: 203608269} - - component: {fileID: 203608268} - - component: {fileID: 203608267} - - component: {fileID: 203608266} - - component: {fileID: 203608265} - - component: {fileID: 203608264} - m_Layer: 0 - m_Name: Cube (2) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &203608263 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 203608262} - m_LocalRotation: {x: -0, y: 0.7093659, z: -0, w: 0.7048404} - m_LocalPosition: {x: 0.19999592, y: -0.1, z: -0.0012793709} - m_LocalScale: {x: 0.1, y: 0.1, z: 0.1} - m_Children: [] - m_Father: {fileID: 600980682} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 90.367, z: 0} ---- !u!114 &203608264 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 203608262} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5afd5316c63705643b3daba5a6e923bd, type: 3} - m_Name: - m_EditorClassIdentifier: - ShowTetherWhenManipulating: 0 - IsBoundsHandles: 0 ---- !u!114 &203608265 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 203608262} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 181cd563a8349c34ea8978b0bc8d9c7e, type: 3} - m_Name: - m_EditorClassIdentifier: - hostTransform: {fileID: 203608263} - manipulationType: 3 - twoHandedManipulationType: 7 - allowFarManipulation: 1 - useForcesForNearManipulation: 0 - oneHandRotationModeNear: 1 - oneHandRotationModeFar: 1 - releaseBehavior: 3 - transformSmoothingLogicType: - reference: Microsoft.MixedReality.Toolkit.Utilities.DefaultTransformSmoothingLogic, - Microsoft.MixedReality.Toolkit.SDK - smoothingFar: 1 - smoothingNear: 1 - moveLerpTime: 0.001 - rotateLerpTime: 0.001 - scaleLerpTime: 0.001 - enableConstraints: 1 - constraintsManager: {fileID: 203608266} - elasticsManager: {fileID: 0} - onManipulationStarted: - m_PersistentCalls: - m_Calls: [] - onManipulationEnded: - m_PersistentCalls: - m_Calls: [] - onHoverEntered: - m_PersistentCalls: - m_Calls: [] - onHoverExited: - m_PersistentCalls: - m_Calls: [] ---- !u!114 &203608266 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 203608262} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: a98de877dee5fc341b4eb59dfdab266c, type: 3} - m_Name: - m_EditorClassIdentifier: - autoConstraintSelection: 1 - selectedConstraints: [] ---- !u!65 &203608267 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 203608262} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!23 &203608268 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 203608262} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &203608269 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 203608262} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} --- !u!1 &226529661 GameObject: m_ObjectHideFlags: 0 @@ -3164,7 +2995,7 @@ MeshFilter: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 365927385} m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &375203309 +--- !u!1 &397310429 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -3172,124 +3003,63 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 375203316} - - component: {fileID: 375203315} - - component: {fileID: 375203314} - - component: {fileID: 375203313} - - component: {fileID: 375203312} - - component: {fileID: 375203311} - - component: {fileID: 375203310} + - component: {fileID: 397310430} + - component: {fileID: 397310433} + - component: {fileID: 397310432} + - component: {fileID: 397310431} m_Layer: 0 - m_Name: Cube + m_Name: HighlightPlate m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!114 &375203310 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 375203309} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5afd5316c63705643b3daba5a6e923bd, type: 3} - m_Name: - m_EditorClassIdentifier: - ShowTetherWhenManipulating: 0 - IsBoundsHandles: 0 ---- !u!114 &375203311 -MonoBehaviour: +--- !u!4 &397310430 +Transform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 375203309} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 181cd563a8349c34ea8978b0bc8d9c7e, type: 3} - m_Name: - m_EditorClassIdentifier: - hostTransform: {fileID: 375203316} - manipulationType: 3 - twoHandedManipulationType: 7 - allowFarManipulation: 1 - useForcesForNearManipulation: 0 - oneHandRotationModeNear: 1 - oneHandRotationModeFar: 1 - releaseBehavior: 3 - transformSmoothingLogicType: - reference: Microsoft.MixedReality.Toolkit.Utilities.DefaultTransformSmoothingLogic, - Microsoft.MixedReality.Toolkit.SDK - smoothingFar: 1 - smoothingNear: 1 - moveLerpTime: 0.001 - rotateLerpTime: 0.001 - scaleLerpTime: 0.001 - enableConstraints: 1 - constraintsManager: {fileID: 375203312} - elasticsManager: {fileID: 0} - onManipulationStarted: - m_PersistentCalls: - m_Calls: [] - onManipulationEnded: - m_PersistentCalls: - m_Calls: [] - onHoverEntered: - m_PersistentCalls: - m_Calls: [] - onHoverExited: - m_PersistentCalls: - m_Calls: [] ---- !u!114 &375203312 + m_GameObject: {fileID: 397310429} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -0.5} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 652799309} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &397310431 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 375203309} + m_GameObject: {fileID: 397310429} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: a98de877dee5fc341b4eb59dfdab266c, type: 3} + m_Script: {fileID: 11500000, guid: 36065390e01a3cd40b87e4bf4acd02f9, type: 3} m_Name: m_EditorClassIdentifier: - autoConstraintSelection: 1 - selectedConstraints: [] ---- !u!65 &375203313 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 375203309} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!23 &375203314 +--- !u!23 &397310432 MeshRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 375203309} + m_GameObject: {fileID: 397310429} m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 + m_MotionVectors: 2 + m_LightProbeUsage: 0 + m_ReflectionProbeUsage: 0 m_RayTracingMode: 2 m_RayTraceProcedural: 0 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 2100000, guid: 329cdefad4cf0f14e9b6767d0af094b0, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 @@ -3301,7 +3071,7 @@ MeshRenderer: m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 - m_StitchLightmapSeams: 1 + m_StitchLightmapSeams: 0 m_SelectedEditorRenderState: 3 m_MinimumChartSize: 4 m_AutoUVMaxDistance: 0.5 @@ -3311,29 +3081,15 @@ MeshRenderer: m_SortingLayer: 0 m_SortingOrder: 0 m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &375203315 +--- !u!33 &397310433 MeshFilter: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 375203309} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} ---- !u!4 &375203316 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 375203309} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: -0.1, z: 0.2} - m_LocalScale: {x: 0.1, y: 0.1, z: 0.1} - m_Children: [] - m_Father: {fileID: 600980682} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &397310429 + m_GameObject: {fileID: 397310429} + m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} +--- !u!1 &400244204 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -3341,63 +3097,67 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 397310430} - - component: {fileID: 397310433} - - component: {fileID: 397310432} - - component: {fileID: 397310431} + - component: {fileID: 400244205} + - component: {fileID: 400244208} + - component: {fileID: 400244207} + - component: {fileID: 400244206} m_Layer: 0 - m_Name: HighlightPlate + m_Name: achor m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!4 &397310430 +--- !u!4 &400244205 Transform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 397310429} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: -0.5} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 652799309} + m_GameObject: {fileID: 400244204} + m_LocalRotation: {x: 0.21263108, y: -0.67437977, z: -0.21263108, w: 0.67437977} + m_LocalPosition: {x: 0, y: 0, z: -0.01} + m_LocalScale: {x: 0.029999997, y: 0.030000001, z: 0.03} + m_Children: + - {fileID: 620393240} + - {fileID: 278918740} + - {fileID: 1244184577} + m_Father: {fileID: 1549906063} m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &397310431 -MonoBehaviour: + m_LocalEulerAnglesHint: {x: 0, y: -90, z: -35} +--- !u!135 &400244206 +SphereCollider: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 397310429} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 36065390e01a3cd40b87e4bf4acd02f9, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!23 &397310432 + m_GameObject: {fileID: 400244204} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 0 + serializedVersion: 2 + m_Radius: 0.5 + m_Center: {x: 0, y: 0, z: 0} +--- !u!23 &400244207 MeshRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 397310429} + m_GameObject: {fileID: 400244204} m_Enabled: 1 - m_CastShadows: 0 - m_ReceiveShadows: 0 - m_DynamicOccludee: 1 - m_MotionVectors: 2 - m_LightProbeUsage: 0 - m_ReflectionProbeUsage: 0 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 m_RayTracingMode: 2 m_RayTraceProcedural: 0 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: - - {fileID: 2100000, guid: 329cdefad4cf0f14e9b6767d0af094b0, type: 2} + - {fileID: 2100000, guid: 70a6f91fad349694d9863894a78acd7d, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 @@ -3409,7 +3169,7 @@ MeshRenderer: m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 - m_StitchLightmapSeams: 0 + m_StitchLightmapSeams: 1 m_SelectedEditorRenderState: 3 m_MinimumChartSize: 4 m_AutoUVMaxDistance: 0.5 @@ -3419,15 +3179,15 @@ MeshRenderer: m_SortingLayer: 0 m_SortingOrder: 0 m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &397310433 +--- !u!33 &400244208 MeshFilter: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 397310429} - m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} ---- !u!1 &400244204 + m_GameObject: {fileID: 400244204} + m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} +--- !u!1 &431162344 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -3435,54 +3195,37 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 400244205} - - component: {fileID: 400244208} - - component: {fileID: 400244207} - - component: {fileID: 400244206} + - component: {fileID: 431162345} + - component: {fileID: 431162348} + - component: {fileID: 431162347} m_Layer: 0 - m_Name: achor + m_Name: Screen m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!4 &400244205 +--- !u!4 &431162345 Transform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 400244204} - m_LocalRotation: {x: 0.21263108, y: -0.67437977, z: -0.21263108, w: 0.67437977} - m_LocalPosition: {x: 0, y: 0, z: -0.01} - m_LocalScale: {x: 0.029999997, y: 0.030000001, z: 0.03} - m_Children: - - {fileID: 620393240} - - {fileID: 278918740} - - {fileID: 1244184577} - m_Father: {fileID: 1549906063} + m_GameObject: {fileID: 431162344} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -1.0145437} + m_LocalScale: {x: 0.6666667, y: 0.8, z: 6.6666675} + m_Children: [] + m_Father: {fileID: 688983090} m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: -90, z: -35} ---- !u!135 &400244206 -SphereCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 400244204} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 0 - serializedVersion: 2 - m_Radius: 0.5 - m_Center: {x: 0, y: 0, z: 0} ---- !u!23 &400244207 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!23 &431162347 MeshRenderer: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 400244204} + m_GameObject: {fileID: 431162344} m_Enabled: 1 m_CastShadows: 1 m_ReceiveShadows: 1 @@ -3495,7 +3238,7 @@ MeshRenderer: m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: - - {fileID: 2100000, guid: 70a6f91fad349694d9863894a78acd7d, type: 2} + - {fileID: 2100000, guid: d4c3396def303a84d81ff6a10a617c11, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 @@ -3517,14 +3260,14 @@ MeshRenderer: m_SortingLayer: 0 m_SortingOrder: 0 m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &400244208 +--- !u!33 &431162348 MeshFilter: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 400244204} - m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} + m_GameObject: {fileID: 431162344} + m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} --- !u!1 &434786957 GameObject: m_ObjectHideFlags: 0 @@ -4956,10 +4699,6 @@ Transform: m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - - {fileID: 375203316} - - {fileID: 1724571259} - - {fileID: 203608263} - - {fileID: 1906059876} - {fileID: 963194228} - {fileID: 1648845060} m_Father: {fileID: 0} @@ -5397,94 +5136,281 @@ MonoBehaviour: m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 661408667} + m_GameObject: {fileID: 661408667} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9541d86e2fd84c1d9990edf0852d74ab, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_text: 'Toggle + + Room Mesh' + m_isRightToLeft: 0 + m_fontAsset: {fileID: 11400000, guid: 6a84f857bec7e7345843ae29404c57ce, type: 2} + m_sharedMaterial: {fileID: 21202819797275496, guid: 6a84f857bec7e7345843ae29404c57ce, type: 2} + m_fontSharedMaterials: [] + m_fontMaterial: {fileID: 0} + m_fontMaterials: [] + m_fontColor32: + serializedVersion: 2 + rgba: 4294967295 + m_fontColor: {r: 1, g: 1, b: 1, a: 1} + m_enableVertexGradient: 0 + m_colorMode: 3 + m_fontColorGradient: + topLeft: {r: 1, g: 1, b: 1, a: 1} + topRight: {r: 1, g: 1, b: 1, a: 1} + bottomLeft: {r: 1, g: 1, b: 1, a: 1} + bottomRight: {r: 1, g: 1, b: 1, a: 1} + m_fontColorGradientPreset: {fileID: 0} + m_spriteAsset: {fileID: 0} + m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 + m_overrideHtmlColors: 0 + m_faceColor: + serializedVersion: 2 + rgba: 4294967295 + m_fontSize: 0.04 + m_fontSizeBase: 0.04 + m_fontWeight: 400 + m_enableAutoSizing: 0 + m_fontSizeMin: 18 + m_fontSizeMax: 72 + m_fontStyle: 0 + m_HorizontalAlignment: 2 + m_VerticalAlignment: 512 + m_textAlignment: 65535 + m_characterSpacing: 0 + m_wordSpacing: 0 + m_lineSpacing: 0 + m_lineSpacingMax: 0 + m_paragraphSpacing: 0 + m_charWidthMaxAdj: 0 + m_enableWordWrapping: 1 + m_wordWrappingRatios: 0.4 + m_overflowMode: 0 + m_linkedTextComponent: {fileID: 0} + parentLinkedComponent: {fileID: 0} + m_enableKerning: 1 + m_enableExtraPadding: 0 + checkPaddingRequired: 0 + m_isRichText: 1 + m_parseCtrlCharacters: 1 + m_isOrthographic: 0 + m_isCullingEnabled: 0 + m_horizontalMapping: 0 + m_verticalMapping: 0 + m_uvLineOffset: 0 + m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 + m_VertexBufferAutoSizeReduction: 1 + m_useMaxVisibleDescender: 1 + m_pageToDisplay: 1 + m_margin: {x: 0, y: -0.0022691963, z: 0, w: 0} + m_isUsingLegacyAnimationComponent: 0 + m_isVolumetricText: 0 + m_hasFontAssetChanged: 0 + m_renderer: {fileID: 661408670} + m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 +--- !u!1 &688983089 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 688983090} + - component: {fileID: 688983093} + - component: {fileID: 688983092} + - component: {fileID: 688983091} + - component: {fileID: 688983097} + - component: {fileID: 688983096} + - component: {fileID: 688983095} + - component: {fileID: 688983094} + m_Layer: 0 + m_Name: Cube + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &688983090 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 688983089} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0.117, y: -0.044192076, z: 0.36882207} + m_LocalScale: {x: 0.3, y: 0.25, z: 0.03} + m_Children: + - {fileID: 431162345} + m_Father: {fileID: 0} + m_RootOrder: 4 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!65 &688983091 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 688983089} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!23 &688983092 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 688983089} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!33 &688983093 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 688983089} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!114 &688983094 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 688983089} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5afd5316c63705643b3daba5a6e923bd, type: 3} + m_Name: + m_EditorClassIdentifier: + ShowTetherWhenManipulating: 0 + IsBoundsHandles: 0 +--- !u!54 &688983095 +Rigidbody: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 688983089} + serializedVersion: 2 + m_Mass: 1 + m_Drag: 1 + m_AngularDrag: 2 + m_UseGravity: 0 + m_IsKinematic: 0 + m_Interpolate: 0 + m_Constraints: 0 + m_CollisionDetection: 0 +--- !u!114 &688983096 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 688983089} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 181cd563a8349c34ea8978b0bc8d9c7e, type: 3} + m_Name: + m_EditorClassIdentifier: + hostTransform: {fileID: 688983090} + manipulationType: 3 + twoHandedManipulationType: 7 + allowFarManipulation: 1 + useForcesForNearManipulation: 1 + oneHandRotationModeNear: 1 + oneHandRotationModeFar: 1 + releaseBehavior: 3 + transformSmoothingLogicType: + reference: Microsoft.MixedReality.Toolkit.Utilities.DefaultTransformSmoothingLogic, + Microsoft.MixedReality.Toolkit.SDK + smoothingFar: 1 + smoothingNear: 1 + moveLerpTime: 0.001 + rotateLerpTime: 0.001 + scaleLerpTime: 0.001 + enableConstraints: 1 + constraintsManager: {fileID: 688983097} + elasticsManager: {fileID: 0} + onManipulationStarted: + m_PersistentCalls: + m_Calls: [] + onManipulationEnded: + m_PersistentCalls: + m_Calls: [] + onHoverEntered: + m_PersistentCalls: + m_Calls: [] + onHoverExited: + m_PersistentCalls: + m_Calls: [] +--- !u!114 &688983097 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 688983089} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 9541d86e2fd84c1d9990edf0852d74ab, type: 3} + m_Script: {fileID: 11500000, guid: a98de877dee5fc341b4eb59dfdab266c, type: 3} m_Name: m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_text: 'Toggle - - Room Mesh' - m_isRightToLeft: 0 - m_fontAsset: {fileID: 11400000, guid: 6a84f857bec7e7345843ae29404c57ce, type: 2} - m_sharedMaterial: {fileID: 21202819797275496, guid: 6a84f857bec7e7345843ae29404c57ce, type: 2} - m_fontSharedMaterials: [] - m_fontMaterial: {fileID: 0} - m_fontMaterials: [] - m_fontColor32: - serializedVersion: 2 - rgba: 4294967295 - m_fontColor: {r: 1, g: 1, b: 1, a: 1} - m_enableVertexGradient: 0 - m_colorMode: 3 - m_fontColorGradient: - topLeft: {r: 1, g: 1, b: 1, a: 1} - topRight: {r: 1, g: 1, b: 1, a: 1} - bottomLeft: {r: 1, g: 1, b: 1, a: 1} - bottomRight: {r: 1, g: 1, b: 1, a: 1} - m_fontColorGradientPreset: {fileID: 0} - m_spriteAsset: {fileID: 0} - m_tintAllSprites: 0 - m_StyleSheet: {fileID: 0} - m_TextStyleHashCode: -1183493901 - m_overrideHtmlColors: 0 - m_faceColor: - serializedVersion: 2 - rgba: 4294967295 - m_fontSize: 0.04 - m_fontSizeBase: 0.04 - m_fontWeight: 400 - m_enableAutoSizing: 0 - m_fontSizeMin: 18 - m_fontSizeMax: 72 - m_fontStyle: 0 - m_HorizontalAlignment: 2 - m_VerticalAlignment: 512 - m_textAlignment: 65535 - m_characterSpacing: 0 - m_wordSpacing: 0 - m_lineSpacing: 0 - m_lineSpacingMax: 0 - m_paragraphSpacing: 0 - m_charWidthMaxAdj: 0 - m_enableWordWrapping: 1 - m_wordWrappingRatios: 0.4 - m_overflowMode: 0 - m_linkedTextComponent: {fileID: 0} - parentLinkedComponent: {fileID: 0} - m_enableKerning: 1 - m_enableExtraPadding: 0 - checkPaddingRequired: 0 - m_isRichText: 1 - m_parseCtrlCharacters: 1 - m_isOrthographic: 0 - m_isCullingEnabled: 0 - m_horizontalMapping: 0 - m_verticalMapping: 0 - m_uvLineOffset: 0 - m_geometrySortingOrder: 0 - m_IsTextObjectScaleStatic: 0 - m_VertexBufferAutoSizeReduction: 1 - m_useMaxVisibleDescender: 1 - m_pageToDisplay: 1 - m_margin: {x: 0, y: -0.0022691963, z: 0, w: 0} - m_isUsingLegacyAnimationComponent: 0 - m_isVolumetricText: 0 - m_hasFontAssetChanged: 0 - m_renderer: {fileID: 661408670} - m_maskType: 0 - _SortingLayer: 0 - _SortingLayerID: 0 - _SortingOrder: 0 + autoConstraintSelection: 1 + selectedConstraints: [] --- !u!1 &705507993 GameObject: m_ObjectHideFlags: 0 @@ -7881,7 +7807,7 @@ Transform: m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 600980682} - m_RootOrder: 4 + m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!114 &963194229 MonoBehaviour: @@ -10512,7 +10438,7 @@ Transform: m_Children: - {fileID: 1549906063} m_Father: {fileID: 600980682} - m_RootOrder: 5 + m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!114 &1648845061 MonoBehaviour: @@ -10575,228 +10501,59 @@ GameObject: m_Layer: 0 m_Name: BackPlate m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1649054921 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1649054920} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0.008} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 64106870} - m_Father: {fileID: 1321460033} - m_RootOrder: 2 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1720124316 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1720124317} - m_Layer: 0 - m_Name: IconAndText - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1720124317 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1720124316} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0, y: 0.0044, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 197455489} - - {fileID: 995886001} - - {fileID: 60567123} - - {fileID: 899504266} - m_Father: {fileID: 1940169381} - m_RootOrder: 3 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1724571258 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1724571259} - - component: {fileID: 1724571265} - - component: {fileID: 1724571264} - - component: {fileID: 1724571263} - - component: {fileID: 1724571262} - - component: {fileID: 1724571261} - - component: {fileID: 1724571260} - m_Layer: 0 - m_Name: Cube (1) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1724571259 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1724571258} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: -0.1, z: -0.2} - m_LocalScale: {x: 0.1, y: 0.1, z: 0.1} - m_Children: [] - m_Father: {fileID: 600980682} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &1724571260 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1724571258} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5afd5316c63705643b3daba5a6e923bd, type: 3} - m_Name: - m_EditorClassIdentifier: - ShowTetherWhenManipulating: 0 - IsBoundsHandles: 0 ---- !u!114 &1724571261 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1724571258} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 181cd563a8349c34ea8978b0bc8d9c7e, type: 3} - m_Name: - m_EditorClassIdentifier: - hostTransform: {fileID: 1724571259} - manipulationType: 3 - twoHandedManipulationType: 7 - allowFarManipulation: 1 - useForcesForNearManipulation: 0 - oneHandRotationModeNear: 1 - oneHandRotationModeFar: 1 - releaseBehavior: 3 - transformSmoothingLogicType: - reference: Microsoft.MixedReality.Toolkit.Utilities.DefaultTransformSmoothingLogic, - Microsoft.MixedReality.Toolkit.SDK - smoothingFar: 1 - smoothingNear: 1 - moveLerpTime: 0.001 - rotateLerpTime: 0.001 - scaleLerpTime: 0.001 - enableConstraints: 1 - constraintsManager: {fileID: 1724571262} - elasticsManager: {fileID: 0} - onManipulationStarted: - m_PersistentCalls: - m_Calls: [] - onManipulationEnded: - m_PersistentCalls: - m_Calls: [] - onHoverEntered: - m_PersistentCalls: - m_Calls: [] - onHoverExited: - m_PersistentCalls: - m_Calls: [] ---- !u!114 &1724571262 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1724571258} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: a98de877dee5fc341b4eb59dfdab266c, type: 3} - m_Name: - m_EditorClassIdentifier: - autoConstraintSelection: 1 - selectedConstraints: [] ---- !u!65 &1724571263 -BoxCollider: + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1649054921 +Transform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1724571258} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!23 &1724571264 -MeshRenderer: + m_GameObject: {fileID: 1649054920} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0.008} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 64106870} + m_Father: {fileID: 1321460033} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1720124316 +GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1724571258} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &1724571265 -MeshFilter: + serializedVersion: 6 + m_Component: + - component: {fileID: 1720124317} + m_Layer: 0 + m_Name: IconAndText + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1720124317 +Transform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1724571258} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} + m_GameObject: {fileID: 1720124316} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -0, y: 0.0044, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 197455489} + - {fileID: 995886001} + - {fileID: 60567123} + - {fileID: 899504266} + m_Father: {fileID: 1940169381} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1726288179 GameObject: m_ObjectHideFlags: 0 @@ -11726,175 +11483,6 @@ MeshRenderer: m_SortingLayer: 0 m_SortingOrder: 0 m_AdditionalVertexStreams: {fileID: 0} ---- !u!1 &1906059875 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1906059876} - - component: {fileID: 1906059882} - - component: {fileID: 1906059881} - - component: {fileID: 1906059880} - - component: {fileID: 1906059879} - - component: {fileID: 1906059878} - - component: {fileID: 1906059877} - m_Layer: 0 - m_Name: Cube (3) - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1906059876 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1906059875} - m_LocalRotation: {x: -0, y: 0.7093659, z: -0, w: 0.7048404} - m_LocalPosition: {x: -0.19999592, y: -0.1, z: 0.0012793709} - m_LocalScale: {x: 0.1, y: 0.1, z: 0.1} - m_Children: [] - m_Father: {fileID: 600980682} - m_RootOrder: 3 - m_LocalEulerAnglesHint: {x: 0, y: 90.367, z: 0} ---- !u!114 &1906059877 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1906059875} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5afd5316c63705643b3daba5a6e923bd, type: 3} - m_Name: - m_EditorClassIdentifier: - ShowTetherWhenManipulating: 0 - IsBoundsHandles: 0 ---- !u!114 &1906059878 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1906059875} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 181cd563a8349c34ea8978b0bc8d9c7e, type: 3} - m_Name: - m_EditorClassIdentifier: - hostTransform: {fileID: 1906059876} - manipulationType: 3 - twoHandedManipulationType: 7 - allowFarManipulation: 1 - useForcesForNearManipulation: 0 - oneHandRotationModeNear: 1 - oneHandRotationModeFar: 1 - releaseBehavior: 3 - transformSmoothingLogicType: - reference: Microsoft.MixedReality.Toolkit.Utilities.DefaultTransformSmoothingLogic, - Microsoft.MixedReality.Toolkit.SDK - smoothingFar: 1 - smoothingNear: 1 - moveLerpTime: 0.001 - rotateLerpTime: 0.001 - scaleLerpTime: 0.001 - enableConstraints: 1 - constraintsManager: {fileID: 1906059879} - elasticsManager: {fileID: 0} - onManipulationStarted: - m_PersistentCalls: - m_Calls: [] - onManipulationEnded: - m_PersistentCalls: - m_Calls: [] - onHoverEntered: - m_PersistentCalls: - m_Calls: [] - onHoverExited: - m_PersistentCalls: - m_Calls: [] ---- !u!114 &1906059879 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1906059875} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: a98de877dee5fc341b4eb59dfdab266c, type: 3} - m_Name: - m_EditorClassIdentifier: - autoConstraintSelection: 1 - selectedConstraints: [] ---- !u!65 &1906059880 -BoxCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1906059875} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 2 - m_Size: {x: 1, y: 1, z: 1} - m_Center: {x: 0, y: 0, z: 0} ---- !u!23 &1906059881 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1906059875} - m_Enabled: 1 - m_CastShadows: 1 - m_ReceiveShadows: 1 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RayTraceProcedural: 0 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 1 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!33 &1906059882 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1906059875} - m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} --- !u!1 &1940169380 GameObject: m_ObjectHideFlags: 0 @@ -14069,3 +13657,47 @@ Transform: m_Father: {fileID: 1865511665} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &2131188206 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2131188208} + - component: {fileID: 2131188207} + m_Layer: 0 + m_Name: holoCamCapturer + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &2131188207 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2131188206} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 81daafc4c9832fe4698eb1e3c01b9043, type: 3} + m_Name: + m_EditorClassIdentifier: + targetTexture: {fileID: 8400000, guid: 2c806b64d300cbf438885bd85e52cd14, type: 2} +--- !u!4 &2131188208 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2131188206} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0.13592516, y: 0.07651035, z: 0.42138577} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 5 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} diff --git a/Assets/Script/Detection.meta b/Assets/Script/Detection.meta new file mode 100644 index 0000000..412db61 --- /dev/null +++ b/Assets/Script/Detection.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e904b0ef14a3c3942a3ccb802894f0f4 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Script/Detection/HoloCanCapture.cs b/Assets/Script/Detection/HoloCanCapture.cs new file mode 100644 index 0000000..331da3d --- /dev/null +++ b/Assets/Script/Detection/HoloCanCapture.cs @@ -0,0 +1,34 @@ +using System.Collections; +using System.Collections.Generic; +using System.Threading.Tasks; +using UnityEngine; + +public class HoloCanCapture : MonoBehaviour +{ + Vector2Int requestedCamSize = new Vector2Int(896, 504); + + public RenderTexture targetTexture; + + private WebCamTexture wct; + async void Start() + { + wct = new WebCamTexture(requestedCamSize.x, requestedCamSize.y, 4); + if (wct) + { + wct.Play(); + } + await GettingTextureFromCam(); + } + + private async Task GettingTextureFromCam() + { + await Task.Delay(1000); + + while (wct) + { + Graphics.Blit(wct, targetTexture); + await Task.Delay(32); + } + Debug.LogError("wct failed"); + } +} diff --git a/Assets/Script/Detection/HoloCanCapture.cs.meta b/Assets/Script/Detection/HoloCanCapture.cs.meta new file mode 100644 index 0000000..4b9c955 --- /dev/null +++ b/Assets/Script/Detection/HoloCanCapture.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 81daafc4c9832fe4698eb1e3c01b9043 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: