比较提交
合并到: unity-tech-cn:main
unity-tech-cn:/main
unity-tech-cn:/1.5-preview
unity-tech-cn:/lwrp-support-2018.3-with-1.5
unity-tech-cn:/lwrp-support-2018.3-with-1.0
unity-tech-cn:/2.1
unity-tech-cn:/3.1
unity-tech-cn:/4.0
unity-tech-cn:/4.1
unity-tech-cn:/4.2
拉取从: unity-tech-cn:lwrp-support-2018.3-with-1.5
unity-tech-cn:/main
unity-tech-cn:/1.5-preview
unity-tech-cn:/lwrp-support-2018.3-with-1.5
unity-tech-cn:/lwrp-support-2018.3-with-1.0
unity-tech-cn:/2.1
unity-tech-cn:/3.1
unity-tech-cn:/4.0
unity-tech-cn:/4.1
unity-tech-cn:/4.2
此合并请求有变更与目标分支冲突。
/Assets/Scenes/EnvironmentProbes.unity
/Assets/Scenes/FaceTracking/ARCoreFaceRegions.unity
/Assets/Scenes/FaceTracking/ARKitFaceBlendShapes.unity
/Assets/Scenes/FaceTracking/FacePose.unity
/Assets/Scenes/Object Tracking/ObjectTracking.unity
/Assets/Scenes/Plane Detection/FeatheredPlanes.unity
/Assets/Scenes/Plane Detection/TogglePlaneDetection.unity
/Assets/Scripts/PlaceOnPlane.cs
/Packages/manifest.json
/ProjectSettings/EditorSettings.asset
/ProjectSettings/EditorBuildSettings.asset
/ProjectSettings/GraphicsSettings.asset
/ProjectSettings/ProjectSettings.asset
/ProjectSettings/ProjectVersion.txt
/README.md
/Assets/Scenes/ImageTracking/ImageTracking.unity
/Assets/Scenes/ARWorldMap.unity
/LICENSE.md
/Assets/Scenes/ARCollaborationData.meta
/Assets/Scenes/HumanSegmentation.meta
/Assets/Scripts/Logger.cs
/Assets/Scripts/ScreenSpaceJointVisualizer.cs
/Assets/Scripts/SupportChecker.cs
/Assets/Scripts/TestDepthImage.cs
/Assets/Scripts/TestDepthImage.cs.meta
/Assets/Scripts/TestHumanBodyTracking.cs.meta
/Assets/Scenes/ARCollaborationData/ARCollaborationDataExample.unity.meta
/Assets/Scenes/ARCollaborationData/CollaborationNetworkingIndicator.cs
/Assets/Scenes/ARCollaborationData/CollaborationNetworkingIndicator.cs.meta
/Assets/Scenes/ARCollaborationData/DisplayTrackingState.cs
/Assets/Scenes/ARCollaborationData/DisplayTrackingState.cs.meta
/Assets/Scenes/ARCollaborationData/ReferencePointWithDebugText.prefab.meta
/Assets/Scenes/FaceTracking/DisplayFaceInfo.cs
/Assets/Scenes/FaceTracking/DisplayFaceInfo.cs.meta
/Assets/Scenes/FaceTracking/RearCameraWithFrontCameraFaceMesh.unity.meta
/Assets/Scenes/FaceTracking/ToggleManagers.cs.meta
/Assets/Scenes/HumanSegmentation/HumanBodyTracking2D.unity.meta
/Assets/Scenes/HumanSegmentation/HumanBodyTracking3D.unity.meta
/Assets/Scenes/HumanSegmentation/HumanSegmentationImages.unity.meta
/Assets/Scenes/Check Support.unity
/Assets/Materials/JointLineMaterial.mat.meta
/Assets/Scenes/LightEstimation.unity
/Assets/Scenes/UX/SampleUXScene.unity
/Assets/Scenes/Scale.unity
/Assets/Scenes/SimpleAR.unity
/Assets/Scenes/CameraImage.unity
/Assets/Scenes/FaceTracking
/Assets/Scripts/TestCameraImage.cs
/Assets/Scripts/CameraConfigController.cs
/Assets/Scenes/FaceTracking
/Assets/Scenes/FaceTracking
/Assets/Scenes/FaceTracking
/Assets/Scenes/FaceTracking
/Assets/Scenes/FaceTracking
/Assets/Scenes/FaceTracking
/Assets/Scenes/FaceTracking
/Assets/Scenes/FaceTracking
/Assets/Scenes/FaceTracking
/Assets/Scenes/FaceTracking
/Assets/Scenes/FaceTracking
/Assets/Scenes/FaceTracking
/Assets/Scenes/FaceTracking
/Assets/Scenes/FaceTracking
/Assets/Scenes/FaceTracking
/Assets/Scenes/FaceTracking
/Assets/Scenes/FaceTracking
/Assets/Scenes/FaceTracking
/Assets/Scenes/FaceTracking
/Assets/Scenes/FaceTracking
/Assets/Scenes/FaceTracking
/Assets/Scenes/FaceTracking
/Assets/Scenes/FaceTracking
/Assets/Scenes/FaceTracking
/Assets/Scenes/FaceTracking
/Assets/Scenes/FaceTracking
/Assets/Scenes/FaceTracking
/Assets/Scenes/FaceTracking
/Assets/Scenes/CameraImage.unity
/Assets/Scripts/TestCameraImage.cs
7 次代码提交
作者 | SHA1 | 备注 | 提交日期 |
---|---|---|---|
Todd Stinson | 9efd8d18 | Merge branch '1.5-preview' into lwrp-support-2018.3-with-1.5 | 5 年前 |
Todd Stinson | 844ec1cf | Merging 1.5-preview -> lwrp-support-2018.3-with-1.5. | 5 年前 |
Todd Stinson | da1f7593 | Merging 1.5-preview -> lwrp-support-2018.3-with-1.5. | 5 年前 |
Todd Stinson | 821bfd9c | Updating LWRP to work with the new standalone subsystems. | 5 年前 |
Todd Stinson | 28842455 | Merge branch '1.5-preview' into lwrp-support-2018.3-with-1.5 | 5 年前 |
Todd Stinson | f90e778d | Adding explicit references to LWRP packages version 4.10.0-preview. | 5 年前 |
Todd Stinson | d51345bd | Merging 1.5-preview -> lwrp-support-2018.3-with-1.5. | 5 年前 |
共有 130 个文件被更改,包括 8214 次插入 和 642 次删除
-
22Packages/manifest.json
-
44ProjectSettings/EditorSettings.asset
-
8ProjectSettings/GraphicsSettings.asset
-
35ProjectSettings/ProjectSettings.asset
-
21ProjectSettings/EditorBuildSettings.asset
-
3ProjectSettings/ProjectVersion.txt
-
86ProjectSettings/TagManager.asset
-
8README.md
-
57Assets/Scenes/ARWorldMap.unity
-
45Assets/Scenes/LightEstimation.unity
-
75Assets/Scenes/Plane Detection/FeatheredPlanes.unity
-
48Assets/Scenes/Plane Detection/TogglePlaneDetection.unity
-
58Assets/Scenes/UX/SampleUXScene.unity
-
43Assets/Scenes/ImageTracking/ImageTracking.unity
-
4Assets/Scenes/Object Tracking/Cube.arobject.meta
-
4Assets/Scenes/Object Tracking/Cylinder.arobject.meta
-
43Assets/Scenes/Object Tracking/ObjectTracking.unity
-
6Assets/Scenes/Object Tracking/ReferenceObjectLibrary.asset
-
44Assets/Scenes/EnvironmentProbes.unity
-
58Assets/Scenes/Scale.unity
-
836Assets/Scenes/SimpleAR.unity
-
33Assets/Scripts/PlaceOnPlane.cs
-
46Assets/Scenes/FaceTracking/ARKitFaceBlendShapes.unity
-
46Assets/Scenes/FaceTracking/FacePose.unity
-
60Assets/Scenes/FaceTracking/ARCoreFaceRegions.unity
-
11ProjectSettings/VFXManager.asset
-
5LICENSE.md
-
8Assets/LWRPSupport.meta
-
7Assets/Scenes/SampleLWRPScene.unity.meta
-
1001Assets/Scenes/CameraImage.unity
-
498Assets/Scenes/SampleLWRPScene.unity
-
8Assets/Scenes/ARCollaborationData.meta
-
962Assets/Scenes/Check Support.unity
-
7Assets/Scenes/Check Support.unity.meta
-
8Assets/Scenes/HumanSegmentation.meta
-
115Assets/Scripts/CameraConfigController.cs
-
141Assets/Scripts/TestCameraImage.cs
-
81Assets/Scripts/Logger.cs
-
11Assets/Scripts/Logger.cs.meta
-
59Assets/Scripts/ReferencePointCreator.cs
-
11Assets/Scripts/ReferencePointCreator.cs.meta
-
160Assets/Scripts/ScreenSpaceJointVisualizer.cs
-
11Assets/Scripts/ScreenSpaceJointVisualizer.cs.meta
-
136Assets/Scripts/SupportChecker.cs
-
11Assets/Scripts/SupportChecker.cs.meta
-
121Assets/Scripts/TestDepthImage.cs
-
11Assets/Scripts/TestDepthImage.cs.meta
-
208Assets/Scripts/TestHumanBodyTracking.cs
-
11Assets/Scripts/TestHumanBodyTracking.cs.meta
-
8Assets/Materials/LWRPCube.mat.meta
-
8Assets/Materials/LWRPPlane.mat.meta
-
91Assets/Materials/LWRPCube.mat
-
93Assets/Materials/LWRPPlane.mat
-
85Assets/Materials/JointLineMaterial.mat
-
8Assets/Materials/JointLineMaterial.mat.meta
-
124Assets/Prefabs/AR LWRP Placed Cube.prefab
-
8Assets/Prefabs/AR LWRP Placed Cube.prefab.meta
-
218Assets/Prefabs/AR LWRP Plane Debug Visualizer.prefab
-
8Assets/Prefabs/AR LWRP Plane Debug Visualizer.prefab.meta
-
44Assets/Prefabs/LightweightRP.asset
-
8Assets/Prefabs/LightweightRP.asset.meta
-
7Assets/Prefabs/JointLineRenderer.prefab.meta
-
126Assets/Prefabs/JointLineRenderer.prefab
-
9Assets/LWRPSupport/ARCoreBackgroundLWRP.shader.meta
-
87Assets/LWRPSupport/ARCoreBackgroundLWRPMaterial.mat
-
8Assets/LWRPSupport/ARCoreBackgroundLWRPMaterial.mat.meta
-
95Assets/LWRPSupport/ARKitLWRPMaterial.mat
-
8Assets/LWRPSupport/ARKitLWRPMaterial.mat.meta
-
9Assets/LWRPSupport/ARKitLWRPShader.shader.meta
-
11Assets/LWRPSupport/LWRPBackgroundRenderer.cs.meta
-
11Assets/LWRPSupport/LWRPBeforeCameraRender.cs.meta
-
7Assets/LWRPSupport/Unity.XR.ARFoundation.LWRPSupport.asmdef.meta
-
8Assets/LWRPSupport/LWRPBackgroundRendererAsset.asset.meta
-
77Assets/LWRPSupport/ARKitLWRPShader.shader
-
63Assets/LWRPSupport/LWRPBackgroundRenderPass.cs
-
11Assets/LWRPSupport/LWRPBackgroundRenderPass.cs.meta
-
56Assets/LWRPSupport/LWRPBackgroundRenderer.cs
-
17Assets/LWRPSupport/LWRPBackgroundRendererAsset.asset
-
29Assets/LWRPSupport/LWRPBeforeCameraRender.cs
-
11Assets/LWRPSupport/LWRPBackgroundRendererAsset.cs.meta
-
57Assets/LWRPSupport/ARCoreBackgroundLWRP.shader
-
66Assets/LWRPSupport/LWRPBackgroundRendererAsset.cs
-
17Assets/LWRPSupport/Unity.XR.ARFoundation.LWRPSupport.asmdef
-
1001Assets/Scenes/ARCollaborationData/ARCollaborationDataExample.unity
-
7Assets/Scenes/ARCollaborationData/ARCollaborationDataExample.unity.meta
-
103Assets/Scenes/ARCollaborationData/ClientServerSelector.cs
-
11Assets/Scenes/ARCollaborationData/ClientServerSelector.cs.meta
-
68Assets/Scenes/ARCollaborationData/CollaborationNetworkingIndicator.cs
-
11Assets/Scenes/ARCollaborationData/CollaborationNetworkingIndicator.cs.meta
-
41Assets/Scenes/ARCollaborationData/DisplayTrackingState.cs
-
11Assets/Scenes/ARCollaborationData/DisplayTrackingState.cs.meta
-
96Assets/Scenes/ARCollaborationData/ReferencePointInfoManager.cs
-
11Assets/Scenes/ARCollaborationData/ReferencePointInfoManager.cs.meta
-
610Assets/Scenes/ARCollaborationData/ReferencePointWithDebugText.prefab
-
8Assets/Scenes/ARCollaborationData/ReferencePointWithDebugText.prefab.meta
-
50Assets/Scenes/ARCollaborationData/TCPClient.cs
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!159 &1 |
|||
EditorSettings: |
|||
m_ObjectHideFlags: 0 |
|||
serializedVersion: 7 |
|||
m_ExternalVersionControlSupport: Visible Meta Files |
|||
m_SerializationMode: 2 |
|||
m_LineEndingsForNewScripts: 2 |
|||
m_DefaultBehaviorMode: 0 |
|||
m_SpritePackerMode: 0 |
|||
m_SpritePackerPaddingPower: 1 |
|||
m_EtcTextureCompressorBehavior: 1 |
|||
m_EtcTextureFastCompressor: 1 |
|||
m_EtcTextureNormalCompressor: 2 |
|||
m_EtcTextureBestCompressor: 4 |
|||
m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd |
|||
m_ProjectGenerationRootNamespace: |
|||
m_UserGeneratedProjectSuffix: |
|||
m_CollabEditorSettings: |
|||
inProgressEnabled: 1 |
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!159 &1 |
|||
EditorSettings: |
|||
m_ObjectHideFlags: 0 |
|||
serializedVersion: 7 |
|||
m_ExternalVersionControlSupport: Visible Meta Files |
|||
m_SerializationMode: 2 |
|||
m_LineEndingsForNewScripts: 2 |
|||
m_DefaultBehaviorMode: 0 |
|||
m_PrefabRegularEnvironment: {fileID: 0} |
|||
m_PrefabUIEnvironment: {fileID: 0} |
|||
m_SpritePackerMode: 0 |
|||
m_SpritePackerPaddingPower: 1 |
|||
m_EtcTextureCompressorBehavior: 1 |
|||
m_EtcTextureFastCompressor: 1 |
|||
m_EtcTextureNormalCompressor: 2 |
|||
m_EtcTextureBestCompressor: 4 |
|||
m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef |
|||
m_ProjectGenerationRootNamespace: |
|||
m_CollabEditorSettings: |
|||
inProgressEnabled: 1 |
|||
m_EnableTextureStreamingInPlayMode: 1 |
|
|||
m_EditorVersion: 2019.1.0f2 |
|||
m_EditorVersionWithRevision: 2019.1.0f2 (292b93d75a2c) |
|||
m_EditorVersion: 2018.4.1f1 |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!78 &1 |
|||
TagManager: |
|||
serializedVersion: 2 |
|||
tags: [] |
|||
layers: |
|||
- Default |
|||
- TransparentFX |
|||
- Ignore Raycast |
|||
- |
|||
- Water |
|||
- UI |
|||
- |
|||
- |
|||
- PostProcessing |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
m_SortingLayers: |
|||
- name: Default |
|||
uniqueID: 0 |
|||
locked: 0 |
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!78 &1 |
|||
TagManager: |
|||
serializedVersion: 2 |
|||
tags: [] |
|||
layers: |
|||
- Default |
|||
- TransparentFX |
|||
- Ignore Raycast |
|||
- |
|||
- Water |
|||
- UI |
|||
- |
|||
- |
|||
- PostProcessing |
|||
- Screen Space |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
m_SortingLayers: |
|||
- name: Default |
|||
uniqueID: 0 |
|||
locked: 0 |
|
|||
# AR Foundation Samples |
|||
Example projects that use *AR Foundation* and demonstrate its functionality with sample assets and components. |
|||
|
|||
Compatible with Unity 2018.3. |
|||
Compatible with Unity 2018.4. |
|||
1. Download the latest version of Unity 2018.3 |
|||
1. Download the latest version of Unity 2018.4. |
|||
2. Open Unity and load the project at the root of the *arfoundation-samples* repository |
|||
2. Open Unity, and load the project at the root of the *arfoundation-samples* repository. |
|||
4. See the [AR Foundation Documentation](https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@1.0) for usage instructions and more information. |
|||
4. See the [AR Foundation Documentation](https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@1.5) for usage instructions and more information. |
|
|||
fileFormatVersion: 2 |
|||
guid: 124f01f93d53b4964a2d0b5319c54392 |
|||
ScriptedImporter: |
|||
internalIDToNameTable: [] |
|||
fileIDToRecycleName: |
|||
11400000: arobject |
|||
serializedVersion: 2 |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 1c82254aafb5041a290e59ebe31aee5d |
|||
ScriptedImporter: |
|||
internalIDToNameTable: [] |
|||
fileIDToRecycleName: |
|||
11400000: arobject |
|||
serializedVersion: 2 |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!937362698 &1 |
|||
VFXManager: |
|||
m_ObjectHideFlags: 0 |
|||
m_IndirectShader: {fileID: 0} |
|||
m_CopyBufferShader: {fileID: 0} |
|||
m_SortShader: {fileID: 0} |
|||
m_RenderPipeSettingsPath: |
|||
m_FixedTimeStep: 0.016666668 |
|||
m_MaxDeltaTime: 0.05 |
|
|||
AR Foundation Samples copyright © 2019 Unity Technologies ApS |
|||
|
|||
Licensed under the Unity Companion License for Unity-dependent projects--see [Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). |
|||
|
|||
Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. Please review the license for details on these and other terms and conditions. |
|
|||
fileFormatVersion: 2 |
|||
guid: 276a124b17bce4dfb829de86ace2732f |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: f3beb74fe75ac4a0e9ed3d2e9950bba8 |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
1001
Assets/Scenes/CameraImage.unity
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!29 &1 |
|||
OcclusionCullingSettings: |
|||
m_ObjectHideFlags: 0 |
|||
serializedVersion: 2 |
|||
m_OcclusionBakeSettings: |
|||
smallestOccluder: 5 |
|||
smallestHole: 0.25 |
|||
backfaceThreshold: 100 |
|||
m_SceneGUID: 00000000000000000000000000000000 |
|||
m_OcclusionCullingData: {fileID: 0} |
|||
--- !u!104 &2 |
|||
RenderSettings: |
|||
m_ObjectHideFlags: 0 |
|||
serializedVersion: 9 |
|||
m_Fog: 0 |
|||
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} |
|||
m_FogMode: 3 |
|||
m_FogDensity: 0.01 |
|||
m_LinearFogStart: 0 |
|||
m_LinearFogEnd: 300 |
|||
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} |
|||
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} |
|||
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} |
|||
m_AmbientIntensity: 1 |
|||
m_AmbientMode: 0 |
|||
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} |
|||
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} |
|||
m_HaloStrength: 0.5 |
|||
m_FlareStrength: 1 |
|||
m_FlareFadeSpeed: 3 |
|||
m_HaloTexture: {fileID: 0} |
|||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} |
|||
m_DefaultReflectionMode: 0 |
|||
m_DefaultReflectionResolution: 128 |
|||
m_ReflectionBounces: 1 |
|||
m_ReflectionIntensity: 1 |
|||
m_CustomReflection: {fileID: 0} |
|||
m_Sun: {fileID: 0} |
|||
m_IndirectSpecularColor: {r: 0.44657898, g: 0.49641287, b: 0.5748173, a: 1} |
|||
m_UseRadianceAmbientProbe: 0 |
|||
--- !u!157 &3 |
|||
LightmapSettings: |
|||
m_ObjectHideFlags: 0 |
|||
serializedVersion: 11 |
|||
m_GIWorkflowMode: 0 |
|||
m_GISettings: |
|||
serializedVersion: 2 |
|||
m_BounceScale: 1 |
|||
m_IndirectOutputScale: 1 |
|||
m_AlbedoBoost: 1 |
|||
m_EnvironmentLightingMode: 0 |
|||
m_EnableBakedLightmaps: 1 |
|||
m_EnableRealtimeLightmaps: 0 |
|||
m_LightmapEditorSettings: |
|||
serializedVersion: 10 |
|||
m_Resolution: 2 |
|||
m_BakeResolution: 10 |
|||
m_AtlasSize: 512 |
|||
m_AO: 0 |
|||
m_AOMaxDistance: 1 |
|||
m_CompAOExponent: 1 |
|||
m_CompAOExponentDirect: 0 |
|||
m_Padding: 2 |
|||
m_LightmapParameters: {fileID: 0} |
|||
m_LightmapsBakeMode: 1 |
|||
m_TextureCompression: 1 |
|||
m_FinalGather: 0 |
|||
m_FinalGatherFiltering: 1 |
|||
m_FinalGatherRayCount: 256 |
|||
m_ReflectionCompression: 2 |
|||
m_MixedBakeMode: 2 |
|||
m_BakeBackend: 1 |
|||
m_PVRSampling: 1 |
|||
m_PVRDirectSampleCount: 32 |
|||
m_PVRSampleCount: 256 |
|||
m_PVRBounces: 2 |
|||
m_PVRFilterTypeDirect: 0 |
|||
m_PVRFilterTypeIndirect: 0 |
|||
m_PVRFilterTypeAO: 0 |
|||
m_PVRFilteringMode: 1 |
|||
m_PVRCulling: 1 |
|||
m_PVRFilteringGaussRadiusDirect: 1 |
|||
m_PVRFilteringGaussRadiusIndirect: 5 |
|||
m_PVRFilteringGaussRadiusAO: 2 |
|||
m_PVRFilteringAtrousPositionSigmaDirect: 0.5 |
|||
m_PVRFilteringAtrousPositionSigmaIndirect: 2 |
|||
m_PVRFilteringAtrousPositionSigmaAO: 1 |
|||
m_ShowResolutionOverlay: 1 |
|||
m_LightingDataAsset: {fileID: 0} |
|||
m_UseShadowmask: 0 |
|||
--- !u!196 &4 |
|||
NavMeshSettings: |
|||
serializedVersion: 2 |
|||
m_ObjectHideFlags: 0 |
|||
m_BuildSettings: |
|||
serializedVersion: 2 |
|||
agentTypeID: 0 |
|||
agentRadius: 0.5 |
|||
agentHeight: 2 |
|||
agentSlope: 45 |
|||
agentClimb: 0.4 |
|||
ledgeDropHeight: 0 |
|||
maxJumpAcrossDistance: 0 |
|||
minRegionArea: 2 |
|||
manualCellSize: 0 |
|||
cellSize: 0.16666667 |
|||
manualTileSize: 0 |
|||
tileSize: 256 |
|||
accuratePlacement: 0 |
|||
debug: |
|||
m_Flags: 0 |
|||
m_NavMeshData: {fileID: 0} |
|||
--- !u!1 &282840810 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 282840814} |
|||
- component: {fileID: 282840813} |
|||
- component: {fileID: 282840811} |
|||
- component: {fileID: 282840815} |
|||
- component: {fileID: 282840812} |
|||
- component: {fileID: 282840817} |
|||
- component: {fileID: 282840816} |
|||
m_Layer: 0 |
|||
m_Name: AR Camera |
|||
m_TagString: MainCamera |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!81 &282840811 |
|||
AudioListener: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 282840810} |
|||
m_Enabled: 1 |
|||
--- !u!114 &282840812 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 282840810} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: 816b289ef451e094f9ae174fb4cf8db0, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_UseCustomMaterial: 0 |
|||
m_CustomMaterial: {fileID: 0} |
|||
m_UseCustomRendererAsset: 1 |
|||
m_CustomRendererAsset: {fileID: 11400000, guid: 2310b94e2d8f5463ab592fa99eefbe6f, |
|||
type: 2} |
|||
--- !u!20 &282840813 |
|||
Camera: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 282840810} |
|||
m_Enabled: 1 |
|||
serializedVersion: 2 |
|||
m_ClearFlags: 3 |
|||
m_BackGroundColor: {r: 0.16862746, g: 0.17177747, b: 0.8, a: 1} |
|||
m_projectionMatrixMode: 1 |
|||
m_SensorSize: {x: 36, y: 24} |
|||
m_LensShift: {x: 0, y: 0} |
|||
m_GateFitMode: 2 |
|||
m_FocalLength: 50 |
|||
m_NormalizedViewPortRect: |
|||
serializedVersion: 2 |
|||
x: 0 |
|||
y: 0 |
|||
width: 1 |
|||
height: 1 |
|||
near clip plane: 0.01 |
|||
far clip plane: 1000 |
|||
field of view: 60 |
|||
orthographic: 0 |
|||
orthographic size: 5 |
|||
m_Depth: 0 |
|||
m_CullingMask: |
|||
serializedVersion: 2 |
|||
m_Bits: 4294967295 |
|||
m_RenderingPath: -1 |
|||
m_TargetTexture: {fileID: 0} |
|||
m_TargetDisplay: 0 |
|||
m_TargetEye: 3 |
|||
m_HDR: 0 |
|||
m_AllowMSAA: 0 |
|||
m_AllowDynamicResolution: 0 |
|||
m_ForceIntoRT: 0 |
|||
m_OcclusionCulling: 1 |
|||
m_StereoConvergence: 10 |
|||
m_StereoSeparation: 0.022 |
|||
--- !u!4 &282840814 |
|||
Transform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 282840810} |
|||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
|||
m_LocalPosition: {x: 0, y: 0, z: 0} |
|||
m_LocalScale: {x: 1, y: 1, z: 1} |
|||
m_Children: [] |
|||
m_Father: {fileID: 1335839535} |
|||
m_RootOrder: 0 |
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
|||
--- !u!114 &282840815 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 282840810} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 1742909100, guid: 3a84de5cd0624681b6b6dcd8921d912a, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_Device: 0 |
|||
m_PoseSource: 6 |
|||
m_PoseProviderComponent: {fileID: 0} |
|||
m_TrackingType: 0 |
|||
m_UpdateType: 0 |
|||
m_UseRelativeTransform: 1 |
|||
--- !u!114 &282840816 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 282840810} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: ba6af5eaa8d821f4e93093fd37ee3484, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_RenderShadows: 1 |
|||
m_RequiresDepthTextureOption: 2 |
|||
m_RequiresOpaqueTextureOption: 2 |
|||
m_RequiresDepthTexture: 0 |
|||
m_RequiresColorTexture: 0 |
|||
m_Version: 2 |
|||
--- !u!114 &282840817 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 282840810} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: 4966719baa26e4b0e8231a24d9bd491a, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_FocusMode: 1 |
|||
m_LightEstimationMode: 0 |
|||
--- !u!1 &427002218 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 427002220} |
|||
- component: {fileID: 427002219} |
|||
- component: {fileID: 427002222} |
|||
- component: {fileID: 427002221} |
|||
m_Layer: 0 |
|||
m_Name: AR Session |
|||
m_TagString: Untagged |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!114 &427002219 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 427002218} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: 3859a92a05d4f5d418cb6ca605290e74, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_AttemptUpdate: 1 |
|||
--- !u!4 &427002220 |
|||
Transform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 427002218} |
|||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
|||
m_LocalPosition: {x: 0, y: 0, z: 0} |
|||
m_LocalScale: {x: 1, y: 1, z: 1} |
|||
m_Children: [] |
|||
m_Father: {fileID: 0} |
|||
m_RootOrder: 1 |
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
|||
--- !u!114 &427002221 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 427002218} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: 1eb9777efa8174381b01d319232f7df5, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_TargetFrameRate: 60 |
|||
--- !u!114 &427002222 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 427002218} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: fa850fbd5b8aded44846f96e35f1a9f5, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
--- !u!1 &1015722065 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 1015722067} |
|||
- component: {fileID: 1015722066} |
|||
m_Layer: 0 |
|||
m_Name: Directional Light |
|||
m_TagString: Untagged |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!108 &1015722066 |
|||
Light: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1015722065} |
|||
m_Enabled: 1 |
|||
serializedVersion: 8 |
|||
m_Type: 1 |
|||
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} |
|||
m_Intensity: 1 |
|||
m_Range: 10 |
|||
m_SpotAngle: 30 |
|||
m_CookieSize: 10 |
|||
m_Shadows: |
|||
m_Type: 2 |
|||
m_Resolution: -1 |
|||
m_CustomResolution: -1 |
|||
m_Strength: 1 |
|||
m_Bias: 0.05 |
|||
m_NormalBias: 0.4 |
|||
m_NearPlane: 0.2 |
|||
m_Cookie: {fileID: 0} |
|||
m_DrawHalo: 0 |
|||
m_Flare: {fileID: 0} |
|||
m_RenderMode: 0 |
|||
m_CullingMask: |
|||
serializedVersion: 2 |
|||
m_Bits: 4294967295 |
|||
m_Lightmapping: 4 |
|||
m_LightShadowCasterMode: 0 |
|||
m_AreaSize: {x: 1, y: 1} |
|||
m_BounceIntensity: 1 |
|||
m_ColorTemperature: 6570 |
|||
m_UseColorTemperature: 0 |
|||
m_ShadowRadius: 0 |
|||
m_ShadowAngle: 0 |
|||
--- !u!4 &1015722067 |
|||
Transform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1015722065} |
|||
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} |
|||
m_LocalPosition: {x: 0, y: 3, z: 0} |
|||
m_LocalScale: {x: 1, y: 1, z: 1} |
|||
m_Children: [] |
|||
m_Father: {fileID: 0} |
|||
m_RootOrder: 0 |
|||
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} |
|||
--- !u!1 &1335839533 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 1335839535} |
|||
- component: {fileID: 1335839534} |
|||
- component: {fileID: 1335839537} |
|||
- component: {fileID: 1335839536} |
|||
- component: {fileID: 1335839538} |
|||
m_Layer: 0 |
|||
m_Name: AR Session Origin |
|||
m_TagString: Untagged |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!114 &1335839534 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1335839533} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: 520bb47c46cf8624fafb307b7d1b862a, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_Camera: {fileID: 282840813} |
|||
--- !u!4 &1335839535 |
|||
Transform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1335839533} |
|||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
|||
m_LocalPosition: {x: 0, y: 0, z: 0} |
|||
m_LocalScale: {x: 1, y: 1, z: 1} |
|||
m_Children: |
|||
- {fileID: 282840814} |
|||
m_Father: {fileID: 0} |
|||
m_RootOrder: 2 |
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
|||
--- !u!114 &1335839536 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1335839533} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: 7ab0e80cee9cc1d44928bfe488dd1e2d, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_PointCloudPrefab: {fileID: 1854016325464908, guid: 0d4f49e744bffd14eb527ba76c9bba12, |
|||
type: 3} |
|||
--- !u!114 &1335839537 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1335839533} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: e1760703bbd54c04488a8d10600262ab, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_PlanePrefab: {fileID: 1568414836858200, guid: b588636d005074635b1c79eb606780fa, |
|||
type: 3} |
|||
m_DetectionMode: -1 |
|||
--- !u!114 &1335839538 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1335839533} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: 7d5359d5f13250e4485741ed685a32be, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_PlacedPrefab: {fileID: 1934569588295450, guid: 1ce7552d1af24499c9d1092090d6fb40, |
|||
type: 3} |
|
|||
fileFormatVersion: 2 |
|||
guid: 8f5b9724e5b144109b2858a750aa19a6 |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!29 &1 |
|||
OcclusionCullingSettings: |
|||
m_ObjectHideFlags: 0 |
|||
serializedVersion: 2 |
|||
m_OcclusionBakeSettings: |
|||
smallestOccluder: 5 |
|||
smallestHole: 0.25 |
|||
backfaceThreshold: 100 |
|||
m_SceneGUID: 00000000000000000000000000000000 |
|||
m_OcclusionCullingData: {fileID: 0} |
|||
--- !u!104 &2 |
|||
RenderSettings: |
|||
m_ObjectHideFlags: 0 |
|||
serializedVersion: 9 |
|||
m_Fog: 0 |
|||
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} |
|||
m_FogMode: 3 |
|||
m_FogDensity: 0.01 |
|||
m_LinearFogStart: 0 |
|||
m_LinearFogEnd: 300 |
|||
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} |
|||
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} |
|||
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} |
|||
m_AmbientIntensity: 1 |
|||
m_AmbientMode: 0 |
|||
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} |
|||
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} |
|||
m_HaloStrength: 0.5 |
|||
m_FlareStrength: 1 |
|||
m_FlareFadeSpeed: 3 |
|||
m_HaloTexture: {fileID: 0} |
|||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} |
|||
m_DefaultReflectionMode: 0 |
|||
m_DefaultReflectionResolution: 128 |
|||
m_ReflectionBounces: 1 |
|||
m_ReflectionIntensity: 1 |
|||
m_CustomReflection: {fileID: 0} |
|||
m_Sun: {fileID: 0} |
|||
m_IndirectSpecularColor: {r: 0.44657898, g: 0.49641287, b: 0.5748173, a: 1} |
|||
m_UseRadianceAmbientProbe: 0 |
|||
--- !u!157 &3 |
|||
LightmapSettings: |
|||
m_ObjectHideFlags: 0 |
|||
serializedVersion: 11 |
|||
m_GIWorkflowMode: 0 |
|||
m_GISettings: |
|||
serializedVersion: 2 |
|||
m_BounceScale: 1 |
|||
m_IndirectOutputScale: 1 |
|||
m_AlbedoBoost: 1 |
|||
m_EnvironmentLightingMode: 0 |
|||
m_EnableBakedLightmaps: 1 |
|||
m_EnableRealtimeLightmaps: 0 |
|||
m_LightmapEditorSettings: |
|||
serializedVersion: 10 |
|||
m_Resolution: 2 |
|||
m_BakeResolution: 10 |
|||
m_AtlasSize: 512 |
|||
m_AO: 0 |
|||
m_AOMaxDistance: 1 |
|||
m_CompAOExponent: 1 |
|||
m_CompAOExponentDirect: 0 |
|||
m_Padding: 2 |
|||
m_LightmapParameters: {fileID: 0} |
|||
m_LightmapsBakeMode: 1 |
|||
m_TextureCompression: 1 |
|||
m_FinalGather: 0 |
|||
m_FinalGatherFiltering: 1 |
|||
m_FinalGatherRayCount: 256 |
|||
m_ReflectionCompression: 2 |
|||
m_MixedBakeMode: 2 |
|||
m_BakeBackend: 1 |
|||
m_PVRSampling: 1 |
|||
m_PVRDirectSampleCount: 32 |
|||
m_PVRSampleCount: 256 |
|||
m_PVRBounces: 2 |
|||
m_PVRFilterTypeDirect: 0 |
|||
m_PVRFilterTypeIndirect: 0 |
|||
m_PVRFilterTypeAO: 0 |
|||
m_PVRFilteringMode: 2 |
|||
m_PVRCulling: 1 |
|||
m_PVRFilteringGaussRadiusDirect: 1 |
|||
m_PVRFilteringGaussRadiusIndirect: 5 |
|||
m_PVRFilteringGaussRadiusAO: 2 |
|||
m_PVRFilteringAtrousPositionSigmaDirect: 0.5 |
|||
m_PVRFilteringAtrousPositionSigmaIndirect: 2 |
|||
m_PVRFilteringAtrousPositionSigmaAO: 1 |
|||
m_ShowResolutionOverlay: 1 |
|||
m_LightingDataAsset: {fileID: 0} |
|||
m_UseShadowmask: 1 |
|||
--- !u!196 &4 |
|||
NavMeshSettings: |
|||
serializedVersion: 2 |
|||
m_ObjectHideFlags: 0 |
|||
m_BuildSettings: |
|||
serializedVersion: 2 |
|||
agentTypeID: 0 |
|||
agentRadius: 0.5 |
|||
agentHeight: 2 |
|||
agentSlope: 45 |
|||
agentClimb: 0.4 |
|||
ledgeDropHeight: 0 |
|||
maxJumpAcrossDistance: 0 |
|||
minRegionArea: 2 |
|||
manualCellSize: 0 |
|||
cellSize: 0.16666667 |
|||
manualTileSize: 0 |
|||
tileSize: 256 |
|||
accuratePlacement: 0 |
|||
debug: |
|||
m_Flags: 0 |
|||
m_NavMeshData: {fileID: 0} |
|||
--- !u!1 &282840810 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 282840814} |
|||
- component: {fileID: 282840813} |
|||
- component: {fileID: 282840811} |
|||
- component: {fileID: 282840815} |
|||
- component: {fileID: 282840812} |
|||
- component: {fileID: 282840816} |
|||
m_Layer: 0 |
|||
m_Name: AR Camera |
|||
m_TagString: MainCamera |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!81 &282840811 |
|||
AudioListener: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 282840810} |
|||
m_Enabled: 1 |
|||
--- !u!114 &282840812 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 282840810} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: 816b289ef451e094f9ae174fb4cf8db0, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_UseCustomMaterial: 0 |
|||
m_CustomMaterial: {fileID: 0} |
|||
m_UseCustomRendererAsset: 0 |
|||
m_CustomRendererAsset: {fileID: 0} |
|||
--- !u!20 &282840813 |
|||
Camera: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 282840810} |
|||
m_Enabled: 1 |
|||
serializedVersion: 2 |
|||
m_ClearFlags: 2 |
|||
m_BackGroundColor: {r: 0, g: 0, b: 0, a: 1} |
|||
m_projectionMatrixMode: 1 |
|||
m_SensorSize: {x: 36, y: 24} |
|||
m_LensShift: {x: 0, y: 0} |
|||
m_GateFitMode: 2 |
|||
m_FocalLength: 50 |
|||
m_NormalizedViewPortRect: |
|||
serializedVersion: 2 |
|||
x: 0 |
|||
y: 0 |
|||
width: 1 |
|||
height: 1 |
|||
near clip plane: 0.1 |
|||
far clip plane: 20 |
|||
field of view: 60 |
|||
orthographic: 0 |
|||
orthographic size: 5 |
|||
m_Depth: 0 |
|||
m_CullingMask: |
|||
serializedVersion: 2 |
|||
m_Bits: 4294967295 |
|||
m_RenderingPath: -1 |
|||
m_TargetTexture: {fileID: 0} |
|||
m_TargetDisplay: 0 |
|||
m_TargetEye: 3 |
|||
m_HDR: 1 |
|||
m_AllowMSAA: 1 |
|||
m_AllowDynamicResolution: 0 |
|||
m_ForceIntoRT: 0 |
|||
m_OcclusionCulling: 1 |
|||
m_StereoConvergence: 10 |
|||
m_StereoSeparation: 0.022 |
|||
--- !u!4 &282840814 |
|||
Transform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 282840810} |
|||
m_LocalRotation: {x: 0, y: 0.38268343, z: 0, w: 0.92387956} |
|||
m_LocalPosition: {x: 0, y: -0.46, z: 3.16} |
|||
m_LocalScale: {x: 1, y: 1, z: 1} |
|||
m_Children: [] |
|||
m_Father: {fileID: 1335839535} |
|||
m_RootOrder: 0 |
|||
m_LocalEulerAnglesHint: {x: 0, y: 45, z: 0} |
|||
--- !u!114 &282840815 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 282840810} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 1742909100, guid: ed7343f30e3843b3afda8f8b02669cea, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_Device: 0 |
|||
m_PoseSource: 6 |
|||
m_PoseProviderComponent: {fileID: 0} |
|||
m_TrackingType: 0 |
|||
m_UpdateType: 0 |
|||
m_UseRelativeTransform: 1 |
|||
--- !u!114 &282840816 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 282840810} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: 4966719baa26e4b0e8231a24d9bd491a, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_FocusMode: 1 |
|||
m_LightEstimationMode: 0 |
|||
--- !u!1 &427002218 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 427002220} |
|||
- component: {fileID: 427002219} |
|||
- component: {fileID: 427002222} |
|||
- component: {fileID: 427002221} |
|||
m_Layer: 0 |
|||
m_Name: AR Session |
|||
m_TagString: Untagged |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!114 &427002219 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 427002218} |
|||
m_Enabled: 0 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: 3859a92a05d4f5d418cb6ca605290e74, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_AttemptUpdate: 1 |
|||
--- !u!4 &427002220 |
|||
Transform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 427002218} |
|||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
|||
m_LocalPosition: {x: 0, y: 0, z: 0} |
|||
m_LocalScale: {x: 1, y: 1, z: 1} |
|||
m_Children: [] |
|||
m_Father: {fileID: 0} |
|||
m_RootOrder: 1 |
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
|||
--- !u!114 &427002221 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 427002218} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: 1eb9777efa8174381b01d319232f7df5, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_TargetFrameRate: 60 |
|||
--- !u!114 &427002222 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 427002218} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: fa850fbd5b8aded44846f96e35f1a9f5, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
--- !u!1 &894828843 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 894828846} |
|||
- component: {fileID: 894828845} |
|||
- component: {fileID: 894828844} |
|||
m_Layer: 0 |
|||
m_Name: EventSystem |
|||
m_TagString: Untagged |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!114 &894828844 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 894828843} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 1077351063, guid: f70555f144d8491a825f0804e09c671c, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_HorizontalAxis: Horizontal |
|||
m_VerticalAxis: Vertical |
|||
m_SubmitButton: Submit |
|||
m_CancelButton: Cancel |
|||
m_InputActionsPerSecond: 10 |
|||
m_RepeatDelay: 0.5 |
|||
m_ForceModuleActive: 0 |
|||
--- !u!114 &894828845 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 894828843} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: -619905303, guid: f70555f144d8491a825f0804e09c671c, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_FirstSelected: {fileID: 0} |
|||
m_sendNavigationEvents: 1 |
|||
m_DragThreshold: 10 |
|||
--- !u!4 &894828846 |
|||
Transform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 894828843} |
|||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
|||
m_LocalPosition: {x: 0, y: 0, z: 0} |
|||
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} |
|||
--- !u!1 &1015722065 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 1015722067} |
|||
- component: {fileID: 1015722066} |
|||
m_Layer: 0 |
|||
m_Name: Directional Light |
|||
m_TagString: Untagged |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!108 &1015722066 |
|||
Light: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1015722065} |
|||
m_Enabled: 1 |
|||
serializedVersion: 8 |
|||
m_Type: 1 |
|||
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} |
|||
m_Intensity: 1 |
|||
m_Range: 10 |
|||
m_SpotAngle: 30 |
|||
m_CookieSize: 10 |
|||
m_Shadows: |
|||
m_Type: 2 |
|||
m_Resolution: -1 |
|||
m_CustomResolution: -1 |
|||
m_Strength: 1 |
|||
m_Bias: 0.05 |
|||
m_NormalBias: 0.4 |
|||
m_NearPlane: 0.2 |
|||
m_Cookie: {fileID: 0} |
|||
m_DrawHalo: 0 |
|||
m_Flare: {fileID: 0} |
|||
m_RenderMode: 0 |
|||
m_CullingMask: |
|||
serializedVersion: 2 |
|||
m_Bits: 4294967295 |
|||
m_Lightmapping: 4 |
|||
m_LightShadowCasterMode: 0 |
|||
m_AreaSize: {x: 1, y: 1} |
|||
m_BounceIntensity: 1 |
|||
m_ColorTemperature: 6570 |
|||
m_UseColorTemperature: 0 |
|||
m_ShadowRadius: 0 |
|||
m_ShadowAngle: 0 |
|||
--- !u!4 &1015722067 |
|||
Transform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1015722065} |
|||
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} |
|||
m_LocalPosition: {x: 0, y: 3, z: 0} |
|||
m_LocalScale: {x: 1, y: 1, z: 1} |
|||
m_Children: [] |
|||
m_Father: {fileID: 0} |
|||
m_RootOrder: 0 |
|||
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} |
|||
--- !u!1 &1212519112 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 1212519113} |
|||
- component: {fileID: 1212519115} |
|||
- component: {fileID: 1212519114} |
|||
m_Layer: 5 |
|||
m_Name: Log |
|||
m_TagString: Untagged |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!224 &1212519113 |
|||
RectTransform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1212519112} |
|||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
|||
m_LocalPosition: {x: 0, y: 0, z: 0} |
|||
m_LocalScale: {x: 1, y: 1, z: 1} |
|||
m_Children: [] |
|||
m_Father: {fileID: 2042653337} |
|||
m_RootOrder: 0 |
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
|||
m_AnchorMin: {x: 0, y: 1} |
|||
m_AnchorMax: {x: 0, y: 1} |
|||
m_AnchoredPosition: {x: 0, y: 0} |
|||
m_SizeDelta: {x: 1024, y: 1024} |
|||
m_Pivot: {x: 0, y: 1} |
|||
--- !u!114 &1212519114 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1212519112} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_Material: {fileID: 0} |
|||
m_Color: {r: 1, g: 1, b: 1, a: 1} |
|||
m_RaycastTarget: 1 |
|||
m_OnCullStateChanged: |
|||
m_PersistentCalls: |
|||
m_Calls: [] |
|||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, |
|||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null |
|||
m_FontData: |
|||
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} |
|||
m_FontSize: 30 |
|||
m_FontStyle: 0 |
|||
m_BestFit: 0 |
|||
m_MinSize: 0 |
|||
m_MaxSize: 50 |
|||
m_Alignment: 0 |
|||
m_AlignByGeometry: 0 |
|||
m_RichText: 1 |
|||
m_HorizontalOverflow: 0 |
|||
m_VerticalOverflow: 0 |
|||
m_LineSpacing: 1 |
|||
m_Text: |
|||
--- !u!222 &1212519115 |
|||
CanvasRenderer: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1212519112} |
|||
m_CullTransparentMesh: 0 |
|||
--- !u!1 &1335839533 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 1335839535} |
|||
- component: {fileID: 1335839534} |
|||
- component: {fileID: 1335839537} |
|||
- component: {fileID: 1335839536} |
|||
m_Layer: 0 |
|||
m_Name: AR Session Origin |
|||
m_TagString: Untagged |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!114 &1335839534 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1335839533} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: 520bb47c46cf8624fafb307b7d1b862a, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_Camera: {fileID: 282840813} |
|||
--- !u!4 &1335839535 |
|||
Transform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1335839533} |
|||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
|||
m_LocalPosition: {x: 0, y: 0, z: 0} |
|||
m_LocalScale: {x: 1, y: 1, z: 1} |
|||
m_Children: |
|||
- {fileID: 282840814} |
|||
m_Father: {fileID: 0} |
|||
m_RootOrder: 2 |
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
|||
--- !u!114 &1335839536 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1335839533} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: 7ab0e80cee9cc1d44928bfe488dd1e2d, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_PointCloudPrefab: {fileID: 1854016325464908, guid: 0d4f49e744bffd14eb527ba76c9bba12, |
|||
type: 3} |
|||
--- !u!114 &1335839537 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1335839533} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: e1760703bbd54c04488a8d10600262ab, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_PlanePrefab: {fileID: 1568414836858200, guid: f0e0be81472ff1243aa2afa27e5d0e61, |
|||
type: 3} |
|||
m_DetectionMode: -1 |
|||
--- !u!1 &1340446990 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 1340446991} |
|||
- component: {fileID: 1340446994} |
|||
- component: {fileID: 1340446993} |
|||
- component: {fileID: 1340446992} |
|||
m_Layer: 5 |
|||
m_Name: Install |
|||
m_TagString: Untagged |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!224 &1340446991 |
|||
RectTransform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1340446990} |
|||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
|||
m_LocalPosition: {x: 0, y: 0, z: 0} |
|||
m_LocalScale: {x: 1, y: 1, z: 1} |
|||
m_Children: |
|||
- {fileID: 1944713722} |
|||
m_Father: {fileID: 2042653337} |
|||
m_RootOrder: 1 |
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
|||
m_AnchorMin: {x: 1, y: 1} |
|||
m_AnchorMax: {x: 1, y: 1} |
|||
m_AnchoredPosition: {x: 0, y: 0} |
|||
m_SizeDelta: {x: 515.8, y: 90.5} |
|||
m_Pivot: {x: 1, y: 1} |
|||
--- !u!114 &1340446992 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1340446990} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 1392445389, guid: f70555f144d8491a825f0804e09c671c, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_Navigation: |
|||
m_Mode: 3 |
|||
m_SelectOnUp: {fileID: 0} |
|||
m_SelectOnDown: {fileID: 0} |
|||
m_SelectOnLeft: {fileID: 0} |
|||
m_SelectOnRight: {fileID: 0} |
|||
m_Transition: 1 |
|||
m_Colors: |
|||
m_NormalColor: {r: 1, g: 1, b: 1, a: 1} |
|||
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} |
|||
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} |
|||
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} |
|||
m_ColorMultiplier: 1 |
|||
m_FadeDuration: 0.1 |
|||
m_SpriteState: |
|||
m_HighlightedSprite: {fileID: 0} |
|||
m_PressedSprite: {fileID: 0} |
|||
m_DisabledSprite: {fileID: 0} |
|||
m_AnimationTriggers: |
|||
m_NormalTrigger: Normal |
|||
m_HighlightedTrigger: Highlighted |
|||
m_PressedTrigger: Pressed |
|||
m_DisabledTrigger: Disabled |
|||
m_Interactable: 1 |
|||
m_TargetGraphic: {fileID: 1340446993} |
|||
m_OnClick: |
|||
m_PersistentCalls: |
|||
m_Calls: |
|||
- m_Target: {fileID: 1741665671} |
|||
m_MethodName: OnInstallButtonPressed |
|||
m_Mode: 1 |
|||
m_Arguments: |
|||
m_ObjectArgument: {fileID: 0} |
|||
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine |
|||
m_IntArgument: 0 |
|||
m_FloatArgument: 0 |
|||
m_StringArgument: |
|||
m_BoolArgument: 0 |
|||
m_CallState: 2 |
|||
m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, |
|||
Culture=neutral, PublicKeyToken=null |
|||
--- !u!114 &1340446993 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1340446990} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_Material: {fileID: 0} |
|||
m_Color: {r: 1, g: 1, b: 1, a: 1} |
|||
m_RaycastTarget: 1 |
|||
m_OnCullStateChanged: |
|||
m_PersistentCalls: |
|||
m_Calls: [] |
|||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, |
|||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null |
|||
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} |
|||
m_Type: 1 |
|||
m_PreserveAspect: 0 |
|||
m_FillCenter: 1 |
|||
m_FillMethod: 4 |
|||
m_FillAmount: 1 |
|||
m_FillClockwise: 1 |
|||
m_FillOrigin: 0 |
|||
m_UseSpriteMesh: 0 |
|||
--- !u!222 &1340446994 |
|||
CanvasRenderer: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1340446990} |
|||
m_CullTransparentMesh: 0 |
|||
--- !u!1 &1741665669 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 1741665670} |
|||
- component: {fileID: 1741665671} |
|||
m_Layer: 0 |
|||
m_Name: Check Support |
|||
m_TagString: Untagged |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!4 &1741665670 |
|||
Transform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1741665669} |
|||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
|||
m_LocalPosition: {x: 0, y: 0, z: 0} |
|||
m_LocalScale: {x: 1, y: 1, z: 1} |
|||
m_Children: [] |
|||
m_Father: {fileID: 0} |
|||
m_RootOrder: 3 |
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
|||
--- !u!114 &1741665671 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1741665669} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: 7d6e0d0e337524b1b94f78d525bf7d2e, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_Session: {fileID: 427002219} |
|||
m_LogText: {fileID: 1212519114} |
|||
m_InstallButton: {fileID: 1340446992} |
|||
--- !u!1 &1944713721 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 1944713722} |
|||
- component: {fileID: 1944713724} |
|||
- component: {fileID: 1944713723} |
|||
m_Layer: 5 |
|||
m_Name: Text |
|||
m_TagString: Untagged |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!224 &1944713722 |
|||
RectTransform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1944713721} |
|||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
|||
m_LocalPosition: {x: 0, y: 0, z: 0} |
|||
m_LocalScale: {x: 1, y: 1, z: 1} |
|||
m_Children: [] |
|||
m_Father: {fileID: 1340446991} |
|||
m_RootOrder: 0 |
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
|||
m_AnchorMin: {x: 0, y: 0} |
|||
m_AnchorMax: {x: 1, y: 1} |
|||
m_AnchoredPosition: {x: 0, y: 0} |
|||
m_SizeDelta: {x: 0, y: 0} |
|||
m_Pivot: {x: 0.5, y: 0.5} |
|||
--- !u!114 &1944713723 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1944713721} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_Material: {fileID: 0} |
|||
m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} |
|||
m_RaycastTarget: 1 |
|||
m_OnCullStateChanged: |
|||
m_PersistentCalls: |
|||
m_Calls: [] |
|||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, |
|||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null |
|||
m_FontData: |
|||
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} |
|||
m_FontSize: 50 |
|||
m_FontStyle: 0 |
|||
m_BestFit: 0 |
|||
m_MinSize: 3 |
|||
m_MaxSize: 50 |
|||
m_Alignment: 4 |
|||
m_AlignByGeometry: 0 |
|||
m_RichText: 1 |
|||
m_HorizontalOverflow: 0 |
|||
m_VerticalOverflow: 0 |
|||
m_LineSpacing: 1 |
|||
m_Text: Install AR Software |
|||
--- !u!222 &1944713724 |
|||
CanvasRenderer: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1944713721} |
|||
m_CullTransparentMesh: 0 |
|||
--- !u!1 &2042653333 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 2042653337} |
|||
- component: {fileID: 2042653336} |
|||
- component: {fileID: 2042653335} |
|||
- component: {fileID: 2042653334} |
|||
m_Layer: 5 |
|||
m_Name: Canvas |
|||
m_TagString: Untagged |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!114 &2042653334 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 2042653333} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_IgnoreReversedGraphics: 1 |
|||
m_BlockingObjects: 0 |
|||
m_BlockingMask: |
|||
serializedVersion: 2 |
|||
m_Bits: 4294967295 |
|||
--- !u!114 &2042653335 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 2042653333} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_UiScaleMode: 0 |
|||
m_ReferencePixelsPerUnit: 100 |
|||
m_ScaleFactor: 1 |
|||
m_ReferenceResolution: {x: 800, y: 600} |
|||
m_ScreenMatchMode: 0 |
|||
m_MatchWidthOrHeight: 0 |
|||
m_PhysicalUnit: 3 |
|||
m_FallbackScreenDPI: 96 |
|||
m_DefaultSpriteDPI: 96 |
|||
m_DynamicPixelsPerUnit: 1 |
|||
--- !u!223 &2042653336 |
|||
Canvas: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 2042653333} |
|||
m_Enabled: 1 |
|||
serializedVersion: 3 |
|||
m_RenderMode: 0 |
|||
m_Camera: {fileID: 0} |
|||
m_PlaneDistance: 100 |
|||
m_PixelPerfect: 0 |
|||
m_ReceivesEvents: 1 |
|||
m_OverrideSorting: 0 |
|||
m_OverridePixelPerfect: 0 |
|||
m_SortingBucketNormalizedSize: 0 |
|||
m_AdditionalShaderChannelsFlag: 0 |
|||
m_SortingLayerID: 0 |
|||
m_SortingOrder: 0 |
|||
m_TargetDisplay: 0 |
|||
--- !u!224 &2042653337 |
|||
RectTransform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 2042653333} |
|||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
|||
m_LocalPosition: {x: 0, y: 0, z: 0} |
|||
m_LocalScale: {x: 0, y: 0, z: 0} |
|||
m_Children: |
|||
- {fileID: 1212519113} |
|||
- {fileID: 1340446991} |
|||
m_Father: {fileID: 0} |
|||
m_RootOrder: 4 |
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
|||
m_AnchorMin: {x: 0, y: 0} |
|||
m_AnchorMax: {x: 0, y: 0} |
|||
m_AnchoredPosition: {x: 0, y: 0} |
|||
m_SizeDelta: {x: 0, y: 0} |
|||
m_Pivot: {x: 0, y: 0} |
|
|||
fileFormatVersion: 2 |
|||
guid: cf67ab53e5ff241dfa61608222d82109 |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 182a357a33f23407ab0bd3ef40079dc9 |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System.Collections.Generic; |
|||
using Unity.Collections; |
|||
using UnityEngine; |
|||
using UnityEngine.UI; |
|||
using UnityEngine.XR.ARFoundation; |
|||
|
|||
/// <summary>
|
|||
/// Populates a drop down UI element with all the supported
|
|||
/// camera configurations and changes the active camera
|
|||
/// configuration when the user changes the selection in the dropdown.
|
|||
///
|
|||
/// The camera configuration affects the resolution (and possibly framerate)
|
|||
/// of the hardware camera during an AR session.
|
|||
/// </summary>
|
|||
[RequireComponent(typeof(Dropdown))] |
|||
public class CameraConfigController : MonoBehaviour |
|||
{ |
|||
List<string> m_ConfigurationNames; |
|||
|
|||
Dropdown m_Dropdown; |
|||
|
|||
[SerializeField] |
|||
[Tooltip("The ARCameraManager which will produce frame events.")] |
|||
ARCameraManager m_CameraManager; |
|||
|
|||
/// <summary>
|
|||
/// Get or set the <c>ARCameraManager</c>.
|
|||
/// </summary>
|
|||
public ARCameraManager cameraManager |
|||
{ |
|||
get { return m_CameraManager; } |
|||
set { m_CameraManager = value; } |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Callback invoked when <see cref="m_Dropdown"/> changes. This
|
|||
/// lets us change the camera configuration when the user changes
|
|||
/// the selection in the UI.
|
|||
/// </summary>
|
|||
/// <param name="dropdown">The <c>Dropdown</c> which changed.</param>
|
|||
void OnDropdownValueChanged(Dropdown dropdown) |
|||
{ |
|||
if ((cameraManager == null) || (cameraManager.subsystem == null) || !cameraManager.subsystem.running) |
|||
{ |
|||
return; |
|||
} |
|||
|
|||
var configurationIndex = dropdown.value; |
|||
|
|||
// Check that the value makes sense
|
|||
using (var configurations = cameraManager.GetConfigurations(Allocator.Temp)) |
|||
{ |
|||
if (configurationIndex >= configurations.Length) |
|||
{ |
|||
return; |
|||
} |
|||
|
|||
// Get that configuration by index
|
|||
var configuration = configurations[configurationIndex]; |
|||
|
|||
// Make it the active one
|
|||
cameraManager.currentConfiguration = configuration; |
|||
} |
|||
} |
|||
|
|||
void Awake() |
|||
{ |
|||
m_Dropdown = GetComponent<Dropdown>(); |
|||
m_Dropdown.ClearOptions(); |
|||
m_Dropdown.onValueChanged.AddListener(delegate { OnDropdownValueChanged(m_Dropdown); }); |
|||
m_ConfigurationNames = new List<string>(); |
|||
} |
|||
|
|||
void PopulateDropdown() |
|||
{ |
|||
if ((cameraManager == null) || (cameraManager.subsystem == null) || !cameraManager.subsystem.running) |
|||
return; |
|||
|
|||
// No configurations available probably means this feature
|
|||
// isn't supported by the current device.
|
|||
using (var configurations = cameraManager.GetConfigurations(Allocator.Temp)) |
|||
{ |
|||
if (!configurations.IsCreated || (configurations.Length <= 0)) |
|||
{ |
|||
return; |
|||
} |
|||
|
|||
// There are two ways to enumerate the camera configurations.
|
|||
|
|||
// 1. Use a foreach to iterate over all the available configurations
|
|||
foreach (var config in configurations) |
|||
{ |
|||
m_ConfigurationNames.Add(config.ToString()); |
|||
} |
|||
m_Dropdown.AddOptions(m_ConfigurationNames); |
|||
|
|||
// 2. Use a normal for...loop
|
|||
var currentConfig = cameraManager.currentConfiguration; |
|||
for (int i = 0; i < configurations.Length; ++i) |
|||
{ |
|||
// Find the current configuration and update the drop down value
|
|||
if (currentConfig == configurations[i]) |
|||
{ |
|||
m_Dropdown.value = i; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
|||
void Update() |
|||
{ |
|||
if (m_ConfigurationNames.Count == 0) |
|||
PopulateDropdown(); |
|||
} |
|||
} |
|
|||
using System; |
|||
using Unity.Collections.LowLevel.Unsafe; |
|||
using UnityEngine; |
|||
using UnityEngine.UI; |
|||
using UnityEngine.XR.ARFoundation; |
|||
using UnityEngine.XR.ARSubsystems; |
|||
|
|||
/// <summary>
|
|||
/// This component tests getting the latest camera image
|
|||
/// and converting it to RGBA format. If successful,
|
|||
/// it displays the image on the screen as a RawImage
|
|||
/// and also displays information about the image.
|
|||
///
|
|||
/// This is useful for computer vision applications where
|
|||
/// you need to access the raw pixels from camera image
|
|||
/// on the CPU.
|
|||
///
|
|||
/// This is different from the ARCameraBackground component, which
|
|||
/// efficiently displays the camera image on the screen. If you
|
|||
/// just want to blit the camera texture to the screen, use
|
|||
/// the ARCameraBackground, or use Graphics.Blit to create
|
|||
/// a GPU-friendly RenderTexture.
|
|||
///
|
|||
/// In this example, we get the camera image data on the CPU,
|
|||
/// convert it to an RGBA format, then display it on the screen
|
|||
/// as a RawImage texture to demonstrate it is working.
|
|||
/// This is done as an example; do not use this technique simply
|
|||
/// to render the camera image on screen.
|
|||
/// </summary>
|
|||
public class TestCameraImage : MonoBehaviour |
|||
{ |
|||
[SerializeField] |
|||
[Tooltip("The ARCameraManager which will produce frame events.")] |
|||
ARCameraManager m_CameraManager; |
|||
|
|||
/// <summary>
|
|||
/// Get or set the <c>ARCameraManager</c>.
|
|||
/// </summary>
|
|||
public ARCameraManager cameraManager |
|||
{ |
|||
get { return m_CameraManager; } |
|||
set { m_CameraManager = value; } |
|||
} |
|||
|
|||
[SerializeField] |
|||
RawImage m_RawImage; |
|||
|
|||
/// <summary>
|
|||
/// The UI RawImage used to display the image on screen.
|
|||
/// </summary>
|
|||
public RawImage rawImage |
|||
{ |
|||
get { return m_RawImage; } |
|||
set { m_RawImage = value; } |
|||
} |
|||
|
|||
[SerializeField] |
|||
Text m_ImageInfo; |
|||
|
|||
/// <summary>
|
|||
/// The UI Text used to display information about the image on screen.
|
|||
/// </summary>
|
|||
public Text imageInfo |
|||
{ |
|||
get { return m_ImageInfo; } |
|||
set { m_ImageInfo = value; } |
|||
} |
|||
|
|||
void OnEnable() |
|||
{ |
|||
if (m_CameraManager != null) |
|||
{ |
|||
m_CameraManager.frameReceived += OnCameraFrameReceived; |
|||
} |
|||
} |
|||
|
|||
void OnDisable() |
|||
{ |
|||
if (m_CameraManager != null) |
|||
{ |
|||
m_CameraManager.frameReceived -= OnCameraFrameReceived; |
|||
} |
|||
} |
|||
|
|||
unsafe void OnCameraFrameReceived(ARCameraFrameEventArgs eventArgs) |
|||
{ |
|||
// Attempt to get the latest camera image. If this method succeeds,
|
|||
// it acquires a native resource that must be disposed (see below).
|
|||
XRCameraImage image; |
|||
if (!cameraManager.TryGetLatestImage(out image)) |
|||
{ |
|||
return; |
|||
} |
|||
|
|||
// Display some information about the camera image
|
|||
m_ImageInfo.text = string.Format( |
|||
"Image info:\n\twidth: {0}\n\theight: {1}\n\tplaneCount: {2}\n\ttimestamp: {3}\n\tformat: {4}", |
|||
image.width, image.height, image.planeCount, image.timestamp, image.format); |
|||
|
|||
// Once we have a valid XRCameraImage, we can access the individual image "planes"
|
|||
// (the separate channels in the image). XRCameraImage.GetPlane provides
|
|||
// low-overhead access to this data. This could then be passed to a
|
|||
// computer vision algorithm. Here, we will convert the camera image
|
|||
// to an RGBA texture and draw it on the screen.
|
|||
|
|||
// Choose an RGBA format.
|
|||
// See XRCameraImage.FormatSupported for a complete list of supported formats.
|
|||
var format = TextureFormat.RGBA32; |
|||
|
|||
if (m_Texture == null || m_Texture.width != image.width || m_Texture.height != image.height) |
|||
{ |
|||
m_Texture = new Texture2D(image.width, image.height, format, false); |
|||
} |
|||
|
|||
// Convert the image to format, flipping the image across the Y axis.
|
|||
// We can also get a sub rectangle, but we'll get the full image here.
|
|||
var conversionParams = new XRCameraImageConversionParams(image, format, CameraImageTransformation.MirrorY); |
|||
|
|||
// Texture2D allows us write directly to the raw texture data
|
|||
// This allows us to do the conversion in-place without making any copies.
|
|||
var rawTextureData = m_Texture.GetRawTextureData<byte>(); |
|||
try |
|||
{ |
|||
image.Convert(conversionParams, new IntPtr(rawTextureData.GetUnsafePtr()), rawTextureData.Length); |
|||
} |
|||
finally |
|||
{ |
|||
// We must dispose of the XRCameraImage after we're finished
|
|||
// with it to avoid leaking native resources.
|
|||
image.Dispose(); |
|||
} |
|||
|
|||
// Apply the updated texture data to our texture
|
|||
m_Texture.Apply(); |
|||
|
|||
// Set the RawImage's texture so we can visualize it.
|
|||
m_RawImage.texture = m_Texture; |
|||
} |
|||
|
|||
Texture2D m_Texture; |
|||
} |
|
|||
using System; |
|||
using System.Collections; |
|||
using System.Collections.Generic; |
|||
using System.Text; |
|||
using UnityEngine; |
|||
using UnityEngine.UI; |
|||
|
|||
public class Logger : MonoBehaviour |
|||
{ |
|||
[SerializeField] |
|||
Text m_LogText; |
|||
public Text logText |
|||
{ |
|||
get { return s_LogText; } |
|||
set |
|||
{ |
|||
m_LogText = value; |
|||
s_LogText = value; |
|||
} |
|||
} |
|||
|
|||
[SerializeField] |
|||
int m_VisibleMessageCount = 40; |
|||
public int visibleMessageCount |
|||
{ |
|||
get { return s_VisibleMessageCount; } |
|||
set |
|||
{ |
|||
m_VisibleMessageCount = value; |
|||
s_VisibleMessageCount = value; |
|||
} |
|||
} |
|||
|
|||
int m_LastMessageCount; |
|||
|
|||
static int s_VisibleMessageCount; |
|||
|
|||
static Text s_LogText; |
|||
|
|||
static List<string> s_Log = new List<string>(); |
|||
|
|||
static StringBuilder s_StringBuilder = new StringBuilder(); |
|||
|
|||
void Awake() |
|||
{ |
|||
s_LogText = m_LogText; |
|||
s_VisibleMessageCount = m_VisibleMessageCount; |
|||
Log("Log console initialized."); |
|||
} |
|||
|
|||
void Update() |
|||
{ |
|||
lock (s_Log) |
|||
{ |
|||
if (m_LastMessageCount != s_Log.Count) |
|||
{ |
|||
s_StringBuilder.Clear(); |
|||
var startIndex = Mathf.Max(s_Log.Count - s_VisibleMessageCount, 0); |
|||
for (int i = startIndex; i < s_Log.Count; ++i) |
|||
{ |
|||
s_StringBuilder.Append($"{i:000}> {s_Log[i]}\n"); |
|||
} |
|||
|
|||
s_LogText.text = s_StringBuilder.ToString(); |
|||
} |
|||
|
|||
m_LastMessageCount = s_Log.Count; |
|||
} |
|||
} |
|||
|
|||
public static void Log(string message) |
|||
{ |
|||
lock (s_Log) |
|||
{ |
|||
if (s_Log == null) |
|||
s_Log = new List<string>(); |
|||
|
|||
s_Log.Add(message); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 6b9ec441ecd1d4c21b5736659749bcf2 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System.Collections.Generic; |
|||
using UnityEngine; |
|||
using UnityEngine.XR.ARFoundation; |
|||
using UnityEngine.XR.ARSubsystems; |
|||
|
|||
[RequireComponent(typeof(ARReferencePointManager))] |
|||
[RequireComponent(typeof(ARRaycastManager))] |
|||
public class ReferencePointCreator : MonoBehaviour |
|||
{ |
|||
public void RemoveAllReferencePoints() |
|||
{ |
|||
foreach (var referencePoint in m_ReferencePoints) |
|||
{ |
|||
m_ReferencePointManager.RemoveReferencePoint(referencePoint); |
|||
} |
|||
m_ReferencePoints.Clear(); |
|||
} |
|||
|
|||
void Awake() |
|||
{ |
|||
m_RaycastManager = GetComponent<ARRaycastManager>(); |
|||
m_ReferencePointManager = GetComponent<ARReferencePointManager>(); |
|||
m_ReferencePoints = new List<ARReferencePoint>(); |
|||
} |
|||
|
|||
void Update() |
|||
{ |
|||
if (Input.touchCount == 0) |
|||
return; |
|||
|
|||
var touch = Input.GetTouch(0); |
|||
if (touch.phase != TouchPhase.Began) |
|||
return; |
|||
|
|||
if (m_RaycastManager.Raycast(touch.position, s_Hits, TrackableType.FeaturePoint)) |
|||
{ |
|||
// Raycast hits are sorted by distance, so the first one
|
|||
// will be the closest hit.
|
|||
var hitPose = s_Hits[0].pose; |
|||
var referencePoint = m_ReferencePointManager.AddReferencePoint(hitPose); |
|||
if (referencePoint == null) |
|||
{ |
|||
Logger.Log("Error creating reference point"); |
|||
} |
|||
else |
|||
{ |
|||
m_ReferencePoints.Add(referencePoint); |
|||
} |
|||
} |
|||
} |
|||
|
|||
static List<ARRaycastHit> s_Hits = new List<ARRaycastHit>(); |
|||
|
|||
List<ARReferencePoint> m_ReferencePoints; |
|||
|
|||
ARRaycastManager m_RaycastManager; |
|||
|
|||
ARReferencePointManager m_ReferencePointManager; |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: f68fbc98b9133456f8a212911c899469 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
using System.Text; |
|||
using System.Collections.Generic; |
|||
using Unity.Collections; |
|||
using UnityEngine; |
|||
using UnityEngine.XR.ARFoundation; |
|||
using UnityEngine.XR.ARSubsystems; |
|||
|
|||
public class ScreenSpaceJointVisualizer : MonoBehaviour |
|||
{ |
|||
// 2D joint skeleton
|
|||
enum JointIndices |
|||
{ |
|||
Invalid = -1, |
|||
head_joint = 0, // parent: neck_1_joint [1]
|
|||
neck_1_joint = 1, // parent: root [16]
|
|||
right_shoulder_1_joint = 2, // parent: neck_1_joint [1]
|
|||
right_forearm_joint = 3, // parent: right_shoulder_1_joint [2]
|
|||
right_hand_joint = 4, // parent: right_forearm_joint [3]
|
|||
left_shoulder_1_joint = 5, // parent: neck_1_joint [1]
|
|||
left_forearm_joint = 6, // parent: left_shoulder_1_joint [5]
|
|||
left_hand_joint = 7, // parent: left_forearm_joint [6]
|
|||
right_upLeg_joint = 8, // parent: root [16]
|
|||
right_leg_joint = 9, // parent: right_upLeg_joint [8]
|
|||
right_foot_joint = 10, // parent: right_leg_joint [9]
|
|||
left_upLeg_joint = 11, // parent: root [16]
|
|||
left_leg_joint = 12, // parent: left_upLeg_joint [11]
|
|||
left_foot_joint = 13, // parent: left_leg_joint [12]
|
|||
right_eye_joint = 14, // parent: head_joint [0]
|
|||
left_eye_joint = 15, // parent: head_joint [0]
|
|||
root = 16, // parent: <none> [-1]
|
|||
} |
|||
|
|||
[SerializeField] |
|||
[Tooltip("The AR camera being used in the scene.")] |
|||
Camera m_ARCamera; |
|||
|
|||
/// <summary>
|
|||
/// Get or set the <c>Camera</c>.
|
|||
/// </summary>
|
|||
public Camera arCamera |
|||
{ |
|||
get { return m_ARCamera; } |
|||
set { m_ARCamera = value; } |
|||
} |
|||
|
|||
[SerializeField] |
|||
[Tooltip("The ARHumanBodyManager which will produce human body anchors.")] |
|||
ARHumanBodyManager m_HumanBodyManager; |
|||
|
|||
/// <summary>
|
|||
/// Get or set the <c>ARHumanBodyManager</c>.
|
|||
/// </summary>
|
|||
public ARHumanBodyManager humanBodyManager |
|||
{ |
|||
get { return m_HumanBodyManager; } |
|||
set { m_HumanBodyManager = value; } |
|||
} |
|||
|
|||
[SerializeField] |
|||
[Tooltip("A prefab that contains a LineRenderer component that will be used for rendering lines, representing the skeleton joints.")] |
|||
GameObject m_LineRendererPrefab; |
|||
|
|||
/// <summary>
|
|||
/// Get or set the Line Renderer prefab.
|
|||
/// </summary>
|
|||
public GameObject lineRendererPrefab |
|||
{ |
|||
get { return m_LineRendererPrefab; } |
|||
set { m_LineRendererPrefab = value; } |
|||
} |
|||
|
|||
Dictionary<int, GameObject> m_LineRenderers; |
|||
static HashSet<int> s_JointSet = new HashSet<int>(); |
|||
|
|||
void Awake() |
|||
{ |
|||
m_LineRenderers = new Dictionary<int, GameObject>(); |
|||
} |
|||
|
|||
void UpdateRenderer(NativeArray<XRHumanBodyPose2DJoint> joints, int index) |
|||
{ |
|||
GameObject lineRendererGO; |
|||
if (!m_LineRenderers.TryGetValue(index, out lineRendererGO)) |
|||
{ |
|||
lineRendererGO = Instantiate(m_LineRendererPrefab, transform); |
|||
m_LineRenderers.Add(index, lineRendererGO); |
|||
} |
|||
|
|||
var lineRenderer = lineRendererGO.GetComponent<LineRenderer>(); |
|||
|
|||
// Traverse hierarchy to determine the longest line set that needs to be drawn.
|
|||
var positions = new NativeArray<Vector2>(joints.Length, Allocator.Temp); |
|||
try |
|||
{ |
|||
var boneIndex = index; |
|||
int jointCount = 0; |
|||
while (boneIndex >= 0) |
|||
{ |
|||
var joint = joints[boneIndex]; |
|||
if (joint.tracked) |
|||
{ |
|||
positions[jointCount++] = joint.position; |
|||
if (!s_JointSet.Add(boneIndex)) |
|||
break; |
|||
} |
|||
else |
|||
break; |
|||
|
|||
boneIndex = joint.parentIndex; |
|||
} |
|||
|
|||
// Render the joints as lines on the camera's near clip plane.
|
|||
lineRenderer.positionCount = jointCount; |
|||
lineRenderer.startWidth = 0.001f; |
|||
lineRenderer.endWidth = 0.001f; |
|||
for (int i = 0; i < jointCount; ++i) |
|||
{ |
|||
var position = positions[i]; |
|||
var worldPosition = m_ARCamera.ViewportToWorldPoint( |
|||
new Vector3(position.x, position.y, m_ARCamera.nearClipPlane)); |
|||
lineRenderer.SetPosition(i, worldPosition); |
|||
} |
|||
lineRendererGO.SetActive(true); |
|||
} |
|||
finally |
|||
{ |
|||
positions.Dispose(); |
|||
} |
|||
} |
|||
|
|||
void Update() |
|||
{ |
|||
Debug.Assert(m_HumanBodyManager != null, "Human body manager cannot be null"); |
|||
var joints = m_HumanBodyManager.GetHumanBodyPose2DJoints(Allocator.Temp); |
|||
if (!joints.IsCreated) |
|||
{ |
|||
HideJointLines(); |
|||
return; |
|||
} |
|||
|
|||
using (joints) |
|||
{ |
|||
s_JointSet.Clear(); |
|||
for (int i = joints.Length - 1; i >= 0; --i) |
|||
{ |
|||
if (joints[i].parentIndex != -1) |
|||
UpdateRenderer(joints, i); |
|||
} |
|||
} |
|||
} |
|||
|
|||
void HideJointLines() |
|||
{ |
|||
foreach (var lineRenderer in m_LineRenderers) |
|||
{ |
|||
lineRenderer.Value.SetActive(false); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: df5a70088ca42443ebe4c6b2346d7e5e |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System.Collections; |
|||
using System.Collections.Generic; |
|||
using UnityEngine; |
|||
using UnityEngine.UI; |
|||
using UnityEngine.XR.ARFoundation; |
|||
|
|||
/// <summary>
|
|||
/// This example shows how to check for AR support before the ARSession is enabled.
|
|||
/// For ARCore in particular, it is possible for a device to support ARCore but not
|
|||
/// have it installed. This example will detect this case and prompt the user to install ARCore.
|
|||
/// To test this feature yourself, use a supported device and uninstall ARCore.
|
|||
/// (Settings > Search for "ARCore" and uninstall or disable it.)
|
|||
/// </summary>
|
|||
public class SupportChecker : MonoBehaviour |
|||
{ |
|||
[SerializeField] |
|||
ARSession m_Session; |
|||
|
|||
public ARSession session |
|||
{ |
|||
get { return m_Session; } |
|||
set { m_Session = value; } |
|||
} |
|||
|
|||
[SerializeField] |
|||
Text m_LogText; |
|||
|
|||
public Text logText |
|||
{ |
|||
get { return m_LogText; } |
|||
set { m_LogText = value; } |
|||
} |
|||
|
|||
[SerializeField] |
|||
Button m_InstallButton; |
|||
|
|||
public Button installButton |
|||
{ |
|||
get { return m_InstallButton; } |
|||
set { m_InstallButton = value; } |
|||
} |
|||
|
|||
void Log(string message) |
|||
{ |
|||
m_LogText.text += $"{message}\n"; |
|||
} |
|||
|
|||
IEnumerator CheckSupport() |
|||
{ |
|||
SetInstallButtonActive(false); |
|||
|
|||
Log("Checking for AR support..."); |
|||
|
|||
yield return ARSession.CheckAvailability(); |
|||
|
|||
if (ARSession.state == ARSessionState.NeedsInstall) |
|||
{ |
|||
Log("Your device supports AR, but requires a software update."); |
|||
Log("Attempting install..."); |
|||
yield return ARSession.Install(); |
|||
} |
|||
|
|||
if (ARSession.state == ARSessionState.Ready) |
|||
{ |
|||
Log("Your device supports AR!"); |
|||
Log("Starting AR session..."); |
|||
|
|||
// To start the ARSession, we just need to enable it.
|
|||
m_Session.enabled = true; |
|||
} |
|||
else |
|||
{ |
|||
switch (ARSession.state) |
|||
{ |
|||
case ARSessionState.Unsupported: |
|||
Log("Your device does not support AR."); |
|||
break; |
|||
case ARSessionState.NeedsInstall: |
|||
Log("The software update failed, or you declined the update."); |
|||
|
|||
// In this case, we enable a button which allows the user
|
|||
// to try again in the event they decline the update the first time.
|
|||
SetInstallButtonActive(true); |
|||
break; |
|||
} |
|||
|
|||
Log("\n[Start non-AR experience instead]"); |
|||
|
|||
//
|
|||
// Start a non-AR fallback experience here...
|
|||
//
|
|||
} |
|||
} |
|||
|
|||
void SetInstallButtonActive(bool active) |
|||
{ |
|||
if (m_InstallButton != null) |
|||
m_InstallButton.gameObject.SetActive(active); |
|||
} |
|||
|
|||
IEnumerator Install() |
|||
{ |
|||
SetInstallButtonActive(false); |
|||
|
|||
if (ARSession.state == ARSessionState.NeedsInstall) |
|||
{ |
|||
Log("Attempting install..."); |
|||
yield return ARSession.Install(); |
|||
|
|||
if (ARSession.state == ARSessionState.NeedsInstall) |
|||
{ |
|||
Log("The software update failed, or you declined the update."); |
|||
SetInstallButtonActive(true); |
|||
} |
|||
else if (ARSession.state == ARSessionState.Ready) |
|||
{ |
|||
Log("Success! Starting AR session..."); |
|||
m_Session.enabled = true; |
|||
} |
|||
} |
|||
else |
|||
{ |
|||
Log("Error: ARSession does not require install."); |
|||
} |
|||
} |
|||
|
|||
public void OnInstallButtonPressed() |
|||
{ |
|||
StartCoroutine(Install()); |
|||
} |
|||
|
|||
void OnEnable() |
|||
{ |
|||
StartCoroutine(CheckSupport()); |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 7d6e0d0e337524b1b94f78d525bf7d2e |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
using System.Text; |
|||
using Unity.Collections.LowLevel.Unsafe; |
|||
using UnityEngine; |
|||
using UnityEngine.UI; |
|||
using UnityEngine.XR.ARFoundation; |
|||
using UnityEngine.XR.ARSubsystems; |
|||
|
|||
/// <summary>
|
|||
/// This component tests getting the latest camera image
|
|||
/// and converting it to RGBA format. If successful,
|
|||
/// it displays the image on the screen as a RawImage
|
|||
/// and also displays information about the image.
|
|||
///
|
|||
/// This is useful for computer vision applications where
|
|||
/// you need to access the raw pixels from camera image
|
|||
/// on the CPU.
|
|||
///
|
|||
/// This is different from the ARCameraBackground component, which
|
|||
/// efficiently displays the camera image on the screen. If you
|
|||
/// just want to blit the camera texture to the screen, use
|
|||
/// the ARCameraBackground, or use Graphics.Blit to create
|
|||
/// a GPU-friendly RenderTexture.
|
|||
///
|
|||
/// In this example, we get the camera image data on the CPU,
|
|||
/// convert it to an RGBA format, then display it on the screen
|
|||
/// as a RawImage texture to demonstrate it is working.
|
|||
/// This is done as an example; do not use this technique simply
|
|||
/// to render the camera image on screen.
|
|||
/// </summary>
|
|||
public class TestDepthImage : MonoBehaviour |
|||
{ |
|||
[SerializeField] |
|||
[Tooltip("The ARHumanBodyManager which will produce frame events.")] |
|||
ARHumanBodyManager m_HumanBodyManager; |
|||
|
|||
/// <summary>
|
|||
/// Get or set the <c>ARHumanBodyManager</c>.
|
|||
/// </summary>
|
|||
public ARHumanBodyManager humanBodyManager |
|||
{ |
|||
get { return m_HumanBodyManager; } |
|||
set { m_HumanBodyManager = value; } |
|||
} |
|||
|
|||
[SerializeField] |
|||
RawImage m_RawImage; |
|||
|
|||
/// <summary>
|
|||
/// The UI RawImage used to display the image on screen.
|
|||
/// </summary>
|
|||
public RawImage rawImage |
|||
{ |
|||
get { return m_RawImage; } |
|||
set { m_RawImage = value; } |
|||
} |
|||
|
|||
[SerializeField] |
|||
Text m_ImageInfo; |
|||
|
|||
/// <summary>
|
|||
/// The UI Text used to display information about the image on screen.
|
|||
/// </summary>
|
|||
public Text imageInfo |
|||
{ |
|||
get { return m_ImageInfo; } |
|||
set { m_ImageInfo = value; } |
|||
} |
|||
|
|||
void LogTextureInfo(StringBuilder stringBuilder, string textureName, Texture2D texture) |
|||
{ |
|||
stringBuilder.AppendFormat("texture : {0}\n", textureName); |
|||
if (texture == null) |
|||
{ |
|||
stringBuilder.AppendFormat(" <null>\n"); |
|||
} |
|||
else |
|||
{ |
|||
stringBuilder.AppendFormat(" format : {0}\n", texture.format.ToString()); |
|||
stringBuilder.AppendFormat(" width : {0}\n", texture.width); |
|||
stringBuilder.AppendFormat(" height : {0}\n", texture.height); |
|||
stringBuilder.AppendFormat(" mipmap : {0}\n", texture.mipmapCount); |
|||
} |
|||
} |
|||
|
|||
void Update() |
|||
{ |
|||
var subsystem = m_HumanBodyManager.subsystem; |
|||
if (subsystem == null) |
|||
{ |
|||
if (m_ImageInfo != null) |
|||
{ |
|||
m_ImageInfo.text = "Human Segmentation not supported."; |
|||
} |
|||
return; |
|||
} |
|||
|
|||
StringBuilder sb = new StringBuilder(); |
|||
Texture2D humanStencil = m_HumanBodyManager.humanStencilTexture; |
|||
Texture2D humanDepth = m_HumanBodyManager.humanDepthTexture; |
|||
LogTextureInfo(sb, "stencil", humanStencil); |
|||
LogTextureInfo(sb, "depth", humanDepth); |
|||
|
|||
if (m_ImageInfo != null) |
|||
{ |
|||
m_ImageInfo.text = sb.ToString(); |
|||
} |
|||
else |
|||
{ |
|||
Debug.Log(sb.ToString()); |
|||
} |
|||
|
|||
// To use the stencil, be sure the HumanSegmentationStencilMode property on the ARHumanBodyManager is set to a
|
|||
// non-disabled value.
|
|||
m_RawImage.texture = humanStencil; |
|||
|
|||
// To use the depth, be sure the HumanSegmentationDepthMode property on the ARHumanBodyManager is set to a
|
|||
/// non-disabled value.
|
|||
// m_RawImage.texture = eventArgs.humanDepth;
|
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 5b552aa0564624c56ae746579bc814e6 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
using System.Text; |
|||
using System.Collections.Generic; |
|||
using Unity.Collections; |
|||
using Unity.Collections.LowLevel.Unsafe; |
|||
using UnityEngine; |
|||
using UnityEngine.UI; |
|||
using UnityEngine.XR.ARFoundation; |
|||
using UnityEngine.XR.ARSubsystems; |
|||
|
|||
using Object = UnityEngine.Object; |
|||
|
|||
public class TestHumanBodyTracking : MonoBehaviour |
|||
{ |
|||
// 3D joint skeleton
|
|||
enum JointIndices |
|||
{ |
|||
Invalid = -1, |
|||
root = 0, // parent: <none> [-1]
|
|||
hips_joint = 1, // parent: root [0]
|
|||
left_upLeg_joint = 2, // parent: hips_joint [1]
|
|||
left_leg_joint = 3, // parent: left_upLeg_joint [2]
|
|||
left_foot_joint = 4, // parent: left_leg_joint [3]
|
|||
left_toes_joint = 5, // parent: left_foot_joint [4]
|
|||
left_toesEnd_joint = 6, // parent: left_toes_joint [5]
|
|||
right_upLeg_joint = 7, // parent: hips_joint [1]
|
|||
right_leg_joint = 8, // parent: right_upLeg_joint [7]
|
|||
right_foot_joint = 9, // parent: right_leg_joint [8]
|
|||
right_toes_joint = 10, // parent: right_foot_joint [9]
|
|||
right_toesEnd_joint = 11, // parent: right_toes_joint [10]
|
|||
spine_1_joint = 12, // parent: hips_joint [1]
|
|||
spine_2_joint = 13, // parent: spine_1_joint [12]
|
|||
spine_3_joint = 14, // parent: spine_2_joint [13]
|
|||
spine_4_joint = 15, // parent: spine_3_joint [14]
|
|||
spine_5_joint = 16, // parent: spine_4_joint [15]
|
|||
spine_6_joint = 17, // parent: spine_5_joint [16]
|
|||
spine_7_joint = 18, // parent: spine_6_joint [17]
|
|||
right_shoulder_1_joint = 19, // parent: spine_7_joint [18]
|
|||
right_shoulder_2_joint = 20, // parent: right_shoulder_1_joint [19]
|
|||
right_arm_joint = 21, // parent: right_shoulder_2_joint [20]
|
|||
right_forearm_joint = 22, // parent: right_arm_joint [21]
|
|||
right_hand_joint = 23, // parent: right_forearm_joint [22]
|
|||
right_handThumbStart_joint = 24, // parent: right_hand_joint [23]
|
|||
right_handThumb_1_joint = 25, // parent: right_handThumbStart_joint [24]
|
|||
right_handThumb_2_joint = 26, // parent: right_handThumb_1_joint [25]
|
|||
right_handThumbEnd_joint = 27, // parent: right_handThumb_2_joint [26]
|
|||
right_handIndexStart_joint = 28, // parent: right_hand_joint [23]
|
|||
right_handIndex_1_joint = 29, // parent: right_handIndexStart_joint [28]
|
|||
right_handIndex_2_joint = 30, // parent: right_handIndex_1_joint [29]
|
|||
right_handIndex_3_joint = 31, // parent: right_handIndex_2_joint [30]
|
|||
right_handIndexEnd_joint = 32, // parent: right_handIndex_3_joint [31]
|
|||
right_handMidStart_joint = 33, // parent: right_hand_joint [23]
|
|||
right_handMid_1_joint = 34, // parent: right_handMidStart_joint [33]
|
|||
right_handMid_2_joint = 35, // parent: right_handMid_1_joint [34]
|
|||
right_handMid_3_joint = 36, // parent: right_handMid_2_joint [35]
|
|||
right_handMidEnd_joint = 37, // parent: right_handMid_3_joint [36]
|
|||
right_handRingStart_joint = 38, // parent: right_hand_joint [23]
|
|||
right_handRing_1_joint = 39, // parent: right_handRingStart_joint [38]
|
|||
right_handRing_2_joint = 40, // parent: right_handRing_1_joint [39]
|
|||
right_handRing_3_joint = 41, // parent: right_handRing_2_joint [40]
|
|||
right_handRingEnd_joint = 42, // parent: right_handRing_3_joint [41]
|
|||
right_handPinkyStart_joint = 43, // parent: right_hand_joint [23]
|
|||
right_handPinky_1_joint = 44, // parent: right_handPinkyStart_joint [43]
|
|||
right_handPinky_2_joint = 45, // parent: right_handPinky_1_joint [44]
|
|||
right_handPinky_3_joint = 46, // parent: right_handPinky_2_joint [45]
|
|||
right_handPinkyEnd_joint = 47, // parent: right_handPinky_3_joint [46]
|
|||
left_shoulder_1_joint = 48, // parent: spine_7_joint [18]
|
|||
left_shoulder_2_joint = 49, // parent: left_shoulder_1_joint [48]
|
|||
left_arm_joint = 50, // parent: left_shoulder_2_joint [49]
|
|||
left_forearm_joint = 51, // parent: left_arm_joint [50]
|
|||
left_hand_joint = 52, // parent: left_forearm_joint [51]
|
|||
left_handThumbStart_joint = 53, // parent: left_hand_joint [52]
|
|||
left_handThumb_1_joint = 54, // parent: left_handThumbStart_joint [53]
|
|||
left_handThumb_2_joint = 55, // parent: left_handThumb_1_joint [54]
|
|||
left_handThumbEnd_joint = 56, // parent: left_handThumb_2_joint [55]
|
|||
left_handIndexStart_joint = 57, // parent: left_hand_joint [52]
|
|||
left_handIndex_1_joint = 58, // parent: left_handIndexStart_joint [57]
|
|||
left_handIndex_2_joint = 59, // parent: left_handIndex_1_joint [58]
|
|||
left_handIndex_3_joint = 60, // parent: left_handIndex_2_joint [59]
|
|||
left_handIndexEnd_joint = 61, // parent: left_handIndex_3_joint [60]
|
|||
left_handMidStart_joint = 62, // parent: left_hand_joint [52]
|
|||
left_handMid_1_joint = 63, // parent: left_handMidStart_joint [62]
|
|||
left_handMid_2_joint = 64, // parent: left_handMid_1_joint [63]
|
|||
left_handMid_3_joint = 65, // parent: left_handMid_2_joint [64]
|
|||
left_handMidEnd_joint = 66, // parent: left_handMid_3_joint [65]
|
|||
left_handRingStart_joint = 67, // parent: left_hand_joint [52]
|
|||
left_handRing_1_joint = 68, // parent: left_handRingStart_joint [67]
|
|||
left_handRing_2_joint = 69, // parent: left_handRing_1_joint [68]
|
|||
left_handRing_3_joint = 70, // parent: left_handRing_2_joint [69]
|
|||
left_handRingEnd_joint = 71, // parent: left_handRing_3_joint [70]
|
|||
left_handPinkyStart_joint = 72, // parent: left_hand_joint [52]
|
|||
left_handPinky_1_joint = 73, // parent: left_handPinkyStart_joint [72]
|
|||
left_handPinky_2_joint = 74, // parent: left_handPinky_1_joint [73]
|
|||
left_handPinky_3_joint = 75, // parent: left_handPinky_2_joint [74]
|
|||
left_handPinkyEnd_joint = 76, // parent: left_handPinky_3_joint [75]
|
|||
neck_1_joint = 77, // parent: spine_7_joint [18]
|
|||
neck_2_joint = 78, // parent: neck_1_joint [77]
|
|||
neck_3_joint = 79, // parent: neck_2_joint [78]
|
|||
neck_4_joint = 80, // parent: neck_3_joint [79]
|
|||
head_joint = 81, // parent: neck_4_joint [80]
|
|||
jaw_joint = 82, // parent: head_joint [81]
|
|||
chin_joint = 83, // parent: jaw_joint [82]
|
|||
nose_joint = 84, // parent: head_joint [81]
|
|||
right_eye_joint = 85, // parent: head_joint [81]
|
|||
right_eyeUpperLid_joint = 86, // parent: right_eye_joint [85]
|
|||
right_eyeLowerLid_joint = 87, // parent: right_eye_joint [85]
|
|||
right_eyeBall_joint = 88, // parent: right_eye_joint [85]
|
|||
left_eye_joint = 89, // parent: head_joint [81]
|
|||
left_eyeUpperLid_joint = 90, // parent: left_eye_joint [89]
|
|||
left_eyeLowerLid_joint = 91, // parent: left_eye_joint [89]
|
|||
left_eyeBall_joint = 92, // parent: left_eye_joint [89]
|
|||
} |
|||
|
|||
[SerializeField] |
|||
[Tooltip("The ARHumanBodyManager which will produce frame events.")] |
|||
ARHumanBodyManager m_HumanBodyManager; |
|||
|
|||
/// <summary>
|
|||
/// Get or set the <c>ARHumanBodyManager</c>.
|
|||
/// </summary>
|
|||
public ARHumanBodyManager humanBodyManager |
|||
{ |
|||
get { return m_HumanBodyManager; } |
|||
set { m_HumanBodyManager = value; } |
|||
} |
|||
|
|||
[SerializeField] |
|||
GameObject m_HeadPrefab; |
|||
|
|||
public GameObject headPrefab |
|||
{ |
|||
get { return m_HeadPrefab; } |
|||
set { m_HeadPrefab = value; } |
|||
} |
|||
|
|||
void OnEnable() |
|||
{ |
|||
Debug.Assert(m_HumanBodyManager != null, "human body manager is required"); |
|||
m_HumanBodyManager.humanBodiesChanged += OnHumanBodiesChanged; |
|||
} |
|||
|
|||
void OnDisable() |
|||
{ |
|||
Debug.Assert(m_HumanBodyManager != null, "human body manager is required"); |
|||
m_HumanBodyManager.humanBodiesChanged -= OnHumanBodiesChanged; |
|||
} |
|||
|
|||
void CreateOrUpdateHead(ARHumanBody arBody) |
|||
{ |
|||
if (m_HeadPrefab == null) |
|||
{ |
|||
Debug.Log("no prefab found"); |
|||
return; |
|||
} |
|||
|
|||
Transform rootTransform = arBody.transform; |
|||
if (rootTransform == null) |
|||
{ |
|||
Debug.Log("no root transform found for ARHumanBody"); |
|||
return; |
|||
} |
|||
|
|||
Transform headTransform; |
|||
if (rootTransform.childCount <= 1) |
|||
{ |
|||
GameObject go = Instantiate(m_HeadPrefab, rootTransform); |
|||
headTransform = go.transform; |
|||
} |
|||
else |
|||
{ |
|||
headTransform = rootTransform.GetChild(1); |
|||
} |
|||
|
|||
XRHumanBodyJoint joint = arBody.joints[(int)JointIndices.head_joint]; |
|||
headTransform.localScale = joint.anchorScale; |
|||
headTransform.localRotation = joint.anchorPose.rotation; |
|||
headTransform.localPosition = joint.anchorPose.position; |
|||
} |
|||
|
|||
void OnHumanBodiesChanged(ARHumanBodiesChangedEventArgs eventArgs) |
|||
{ |
|||
StringBuilder sb = new StringBuilder(); |
|||
|
|||
sb.Append("OnHumanBodiesChanged\n"); |
|||
|
|||
sb.AppendFormat(" added[{0}]:\n", eventArgs.added.Count); |
|||
foreach (var humanBody in eventArgs.added) |
|||
{ |
|||
sb.AppendFormat(" human body: {0}\n", humanBody.ToString()); |
|||
CreateOrUpdateHead(humanBody); |
|||
} |
|||
|
|||
sb.AppendFormat(" updated[{0}]:\n", eventArgs.updated.Count); |
|||
foreach (var humanBody in eventArgs.updated) |
|||
{ |
|||
sb.AppendFormat(" human body: {0}\n", humanBody.ToString()); |
|||
CreateOrUpdateHead(humanBody); |
|||
} |
|||
|
|||
sb.AppendFormat(" removed[{0}]:\n", eventArgs.removed.Count); |
|||
foreach (var humanBody in eventArgs.removed) |
|||
{ |
|||
sb.AppendFormat(" human body: {0}\n", humanBody.ToString()); |
|||
} |
|||
|
|||
Debug.Log(sb.ToString()); |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: a70310605953942b396590064b0a3830 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 99e2cb67513004f3ab6ff053dd2a6dc6 |
|||
NativeFormatImporter: |
|||
externalObjects: {} |
|||
mainObjectFileID: 2100000 |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: ca8875ced1a06499e8ad6a66ad990598 |
|||
NativeFormatImporter: |
|||
externalObjects: {} |
|||
mainObjectFileID: 2100000 |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%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: LWRPCube |
|||
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3} |
|||
m_ShaderKeywords: _RECEIVE_SHADOWS_OFF |
|||
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} |
|||
- _SpecGlossMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
m_Floats: |
|||
- _AlphaClip: 0 |
|||
- _Blend: 0 |
|||
- _BumpScale: 1 |
|||
- _Cull: 2 |
|||
- _Cutoff: 0.5 |
|||
- _DetailNormalMapScale: 1 |
|||
- _DstBlend: 0 |
|||
- _GlossMapScale: 1 |
|||
- _Glossiness: 0.5 |
|||
- _GlossinessSource: 0 |
|||
- _GlossyReflections: 1 |
|||
- _Metallic: 0 |
|||
- _OcclusionStrength: 1 |
|||
- _Parallax: 0.02 |
|||
- _ReceiveShadows: 0 |
|||
- _SampleGI: 0 |
|||
- _Shininess: 0.5 |
|||
- _SmoothnessTextureChannel: 0 |
|||
- _SpecSource: 0 |
|||
- _SpecularHighlights: 1 |
|||
- _SrcBlend: 1 |
|||
- _Surface: 0 |
|||
- _UVSec: 0 |
|||
- _WorkflowMode: 1 |
|||
- _ZWrite: 1 |
|||
m_Colors: |
|||
- _Color: {r: 0.2991723, g: 0.5792419, b: 0.7830189, a: 1} |
|||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1} |
|||
- _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} |
|
|||
%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: LWRPPlane |
|||
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3} |
|||
m_ShaderKeywords: |
|||
m_LightmapFlags: 4 |
|||
m_EnableInstancingVariants: 0 |
|||
m_DoubleSidedGI: 0 |
|||
m_CustomRenderQueue: 3000 |
|||
stringTagMap: |
|||
RenderType: Transparent |
|||
disabledShaderPasses: |
|||
- SHADOWCASTER |
|||
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} |
|||
- _SpecGlossMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
m_Floats: |
|||
- _AlphaClip: 0 |
|||
- _Blend: 0 |
|||
- _BumpScale: 1 |
|||
- _Cull: 0 |
|||
- _Cutoff: 0.5 |
|||
- _DetailNormalMapScale: 1 |
|||
- _DstBlend: 10 |
|||
- _GlossMapScale: 1 |
|||
- _Glossiness: 0.5 |
|||
- _GlossinessSource: 1 |
|||
- _GlossyReflections: 1 |
|||
- _Metallic: 0 |
|||
- _OcclusionStrength: 1 |
|||
- _Parallax: 0.02 |
|||
- _ReceiveShadows: 1 |
|||
- _SampleGI: 0 |
|||
- _Shininess: 0.5 |
|||
- _SmoothnessTextureChannel: 0 |
|||
- _SpecSource: 0 |
|||
- _SpecularHighlights: 1 |
|||
- _SrcBlend: 5 |
|||
- _Surface: 1 |
|||
- _UVSec: 0 |
|||
- _WorkflowMode: 1 |
|||
- _ZWrite: 0 |
|||
m_Colors: |
|||
- _Color: {r: 0.8606618, g: 0.8962264, b: 0.46079564, a: 0.49803922} |
|||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1} |
|||
- _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} |
|
|||
%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: JointLineMaterial |
|||
m_Shader: {fileID: 10753, 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: |
|||
- _AlphaTex: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _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: |
|||
- PixelSnap: 0 |
|||
- _BumpScale: 1 |
|||
- _Cutoff: 0.5 |
|||
- _DetailNormalMapScale: 1 |
|||
- _DstBlend: 0 |
|||
- _EnableExternalAlpha: 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: 0.0043056235, g: 0.33962262, b: 0, a: 1} |
|||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1} |
|||
- _Flip: {r: 1, g: 1, b: 1, a: 1} |
|||
- _RendererColor: {r: 1, g: 1, b: 1, a: 1} |
|
|||
fileFormatVersion: 2 |
|||
guid: 7c57bb7614d2746e4a2cc322b1174d39 |
|||
NativeFormatImporter: |
|||
externalObjects: {} |
|||
mainObjectFileID: 2100000 |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!1 &1754213505959666 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 4343436889174130} |
|||
- component: {fileID: 33105698979402868} |
|||
- component: {fileID: 23914862008890870} |
|||
- component: {fileID: 65768120757988866} |
|||
m_Layer: 0 |
|||
m_Name: Cube |
|||
m_TagString: Untagged |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!4 &4343436889174130 |
|||
Transform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1754213505959666} |
|||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
|||
m_LocalPosition: {x: 0, y: 0.025, z: 0} |
|||
m_LocalScale: {x: 0.05, y: 0.05, z: 0.05} |
|||
m_Children: [] |
|||
m_Father: {fileID: 4181027171868550} |
|||
m_RootOrder: 0 |
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
|||
--- !u!33 &33105698979402868 |
|||
MeshFilter: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1754213505959666} |
|||
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} |
|||
--- !u!23 &23914862008890870 |
|||
MeshRenderer: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1754213505959666} |
|||
m_Enabled: 1 |
|||
m_CastShadows: 1 |
|||
m_ReceiveShadows: 1 |
|||
m_DynamicOccludee: 1 |
|||
m_MotionVectors: 1 |
|||
m_LightProbeUsage: 1 |
|||
m_ReflectionProbeUsage: 1 |
|||
m_RenderingLayerMask: 4294967295 |
|||
m_RendererPriority: 0 |
|||
m_Materials: |
|||
- {fileID: 2100000, guid: 99e2cb67513004f3ab6ff053dd2a6dc6, type: 2} |
|||
m_StaticBatchInfo: |
|||
firstSubMesh: 0 |
|||
subMeshCount: 0 |
|||
m_StaticBatchRoot: {fileID: 0} |
|||
m_ProbeAnchor: {fileID: 0} |
|||
m_LightProbeVolumeOverride: {fileID: 0} |
|||
m_ScaleInLightmap: 1 |
|||
m_PreserveUVs: 0 |
|||
m_IgnoreNormalsForChartDetection: 0 |
|||
m_ImportantGI: 0 |
|||
m_StitchLightmapSeams: 0 |
|||
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 |
|||
--- !u!65 &65768120757988866 |
|||
BoxCollider: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1754213505959666} |
|||
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!1 &1934569588295450 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 4181027171868550} |
|||
m_Layer: 0 |
|||
m_Name: AR LWRP Placed Cube |
|||
m_TagString: Untagged |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!4 &4181027171868550 |
|||
Transform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1934569588295450} |
|||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
|||
m_LocalPosition: {x: 0, y: 0, z: 0} |
|||
m_LocalScale: {x: 1, y: 1, z: 1} |
|||
m_Children: |
|||
- {fileID: 4343436889174130} |
|||
m_Father: {fileID: 0} |
|||
m_RootOrder: 0 |
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
|
|||
fileFormatVersion: 2 |
|||
guid: 1ce7552d1af24499c9d1092090d6fb40 |
|||
NativeFormatImporter: |
|||
externalObjects: {} |
|||
mainObjectFileID: 100100000 |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!1 &1568414836858200 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 4381455002505794} |
|||
- component: {fileID: 114420653519937450} |
|||
- component: {fileID: 114505523171528268} |
|||
- component: {fileID: 64075061905826896} |
|||
- component: {fileID: 33940188020947210} |
|||
- component: {fileID: 23757564266038714} |
|||
- component: {fileID: 120517587746667212} |
|||
m_Layer: 0 |
|||
m_Name: AR LWRP Plane Debug Visualizer |
|||
m_TagString: Untagged |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!4 &4381455002505794 |
|||
Transform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1568414836858200} |
|||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
|||
m_LocalPosition: {x: 0, y: 0, z: 0} |
|||
m_LocalScale: {x: 1, y: 1, z: 1} |
|||
m_Children: [] |
|||
m_Father: {fileID: 0} |
|||
m_RootOrder: 0 |
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
|||
--- !u!114 &114420653519937450 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1568414836858200} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: 5f66da7470dce8f4d821d71dd2b1d4ac, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_DestroyOnRemoval: 1 |
|||
m_VertexChangedThreshold: 0.01 |
|||
--- !u!114 &114505523171528268 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1568414836858200} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: 3d180956a54db4646a1c6342921672ad, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
--- !u!64 &64075061905826896 |
|||
MeshCollider: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1568414836858200} |
|||
m_Material: {fileID: 0} |
|||
m_IsTrigger: 0 |
|||
m_Enabled: 1 |
|||
serializedVersion: 3 |
|||
m_Convex: 0 |
|||
m_CookingOptions: 14 |
|||
m_Mesh: {fileID: 0} |
|||
--- !u!33 &33940188020947210 |
|||
MeshFilter: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1568414836858200} |
|||
m_Mesh: {fileID: 0} |
|||
--- !u!23 &23757564266038714 |
|||
MeshRenderer: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1568414836858200} |
|||
m_Enabled: 1 |
|||
m_CastShadows: 1 |
|||
m_ReceiveShadows: 1 |
|||
m_DynamicOccludee: 1 |
|||
m_MotionVectors: 1 |
|||
m_LightProbeUsage: 1 |
|||
m_ReflectionProbeUsage: 1 |
|||
m_RenderingLayerMask: 4294967295 |
|||
m_RendererPriority: 0 |
|||
m_Materials: |
|||
- {fileID: 2100000, guid: ca8875ced1a06499e8ad6a66ad990598, type: 2} |
|||
m_StaticBatchInfo: |
|||
firstSubMesh: 0 |
|||
subMeshCount: 0 |
|||
m_StaticBatchRoot: {fileID: 0} |
|||
m_ProbeAnchor: {fileID: 0} |
|||
m_LightProbeVolumeOverride: {fileID: 0} |
|||
m_ScaleInLightmap: 1 |
|||
m_PreserveUVs: 0 |
|||
m_IgnoreNormalsForChartDetection: 0 |
|||
m_ImportantGI: 0 |
|||
m_StitchLightmapSeams: 0 |
|||
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 |
|||
--- !u!120 &120517587746667212 |
|||
LineRenderer: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1568414836858200} |
|||
m_Enabled: 1 |
|||
m_CastShadows: 0 |
|||
m_ReceiveShadows: 0 |
|||
m_DynamicOccludee: 1 |
|||
m_MotionVectors: 0 |
|||
m_LightProbeUsage: 0 |
|||
m_ReflectionProbeUsage: 0 |
|||
m_RenderingLayerMask: 4294967295 |
|||
m_RendererPriority: 0 |
|||
m_Materials: |
|||
- {fileID: 10306, 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_PreserveUVs: 0 |
|||
m_IgnoreNormalsForChartDetection: 0 |
|||
m_ImportantGI: 0 |
|||
m_StitchLightmapSeams: 0 |
|||
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_Positions: |
|||
- {x: 0, y: 0, z: 0} |
|||
- {x: 0, y: 0, z: 1} |
|||
m_Parameters: |
|||
serializedVersion: 3 |
|||
widthMultiplier: 0.005 |
|||
widthCurve: |
|||
serializedVersion: 2 |
|||
m_Curve: |
|||
- serializedVersion: 3 |
|||
time: 0 |
|||
value: 1 |
|||
inSlope: 0 |
|||
outSlope: 0 |
|||
tangentMode: 0 |
|||
weightedMode: 0 |
|||
inWeight: 0.33333334 |
|||
outWeight: 0.33333334 |
|||
m_PreInfinity: 2 |
|||
m_PostInfinity: 2 |
|||
m_RotationOrder: 4 |
|||
colorGradient: |
|||
serializedVersion: 2 |
|||
key0: {r: 0, g: 0, b: 0, a: 1} |
|||
key1: {r: 0, g: 0, b: 0, a: 1} |
|||
key2: {r: 0, g: 0, b: 0, a: 0} |
|||
key3: {r: 0, g: 0, b: 0, a: 0} |
|||
key4: {r: 0, g: 0, b: 0, a: 0} |
|||
key5: {r: 0, g: 0, b: 0, a: 0} |
|||
key6: {r: 0, g: 0, b: 0, a: 0} |
|||
key7: {r: 0, g: 0, b: 0, a: 0} |
|||
ctime0: 0 |
|||
ctime1: 65535 |
|||
ctime2: 0 |
|||
ctime3: 0 |
|||
ctime4: 0 |
|||
ctime5: 0 |
|||
ctime6: 0 |
|||
ctime7: 0 |
|||
atime0: 0 |
|||
atime1: 65535 |
|||
atime2: 0 |
|||
atime3: 0 |
|||
atime4: 0 |
|||
atime5: 0 |
|||
atime6: 0 |
|||
atime7: 0 |
|||
m_Mode: 0 |
|||
m_NumColorKeys: 2 |
|||
m_NumAlphaKeys: 2 |
|||
numCornerVertices: 4 |
|||
numCapVertices: 4 |
|||
alignment: 0 |
|||
textureMode: 0 |
|||
shadowBias: 0 |
|||
generateLightingData: 0 |
|||
m_UseWorldSpace: 0 |
|||
m_Loop: 1 |
|
|||
fileFormatVersion: 2 |
|||
guid: b588636d005074635b1c79eb606780fa |
|||
NativeFormatImporter: |
|||
externalObjects: {} |
|||
mainObjectFileID: 100100000 |
|||
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: bf2edee5c58d82540a51f03df9d42094, type: 3} |
|||
m_Name: LightweightRP |
|||
m_EditorClassIdentifier: |
|||
k_AssetVersion: 4 |
|||
m_RequireDepthTexture: 0 |
|||
m_RequireOpaqueTexture: 0 |
|||
m_OpaqueDownsampling: 1 |
|||
m_SupportsHDR: 0 |
|||
m_MSAA: 1 |
|||
m_RenderScale: 1 |
|||
m_MainLightRenderingMode: 1 |
|||
m_MainLightShadowsSupported: 1 |
|||
m_MainLightShadowmapResolution: 2048 |
|||
m_AdditionalLightsRenderingMode: 1 |
|||
m_AdditionalLightsPerObjectLimit: 4 |
|||
m_AdditionalLightShadowsSupported: 0 |
|||
m_AdditionalLightsShadowmapResolution: 512 |
|||
m_ShadowDistance: 50 |
|||
m_ShadowCascades: 2 |
|||
m_Cascade2Split: 0.25 |
|||
m_Cascade4Split: {x: 0.067, y: 0.2, z: 0.467} |
|||
m_ShadowDepthBias: 1 |
|||
m_ShadowNormalBias: 1 |
|||
m_SoftShadowsSupported: 0 |
|||
m_SupportsDynamicBatching: 1 |
|||
m_MixedLightingSupported: 1 |
|||
m_ShadowType: 1 |
|||
m_LocalShadowsSupported: 0 |
|||
m_LocalShadowsAtlasResolution: 256 |
|||
m_MaxPixelLights: 4 |
|||
m_ShadowAtlasResolution: 2048 |
|||
m_ResourcesAsset: {fileID: 11400000, guid: aac5a08c32552a14c89394b703f1978a, type: 2} |
|||
m_ShaderVariantLogLevel: 0 |
|
|||
fileFormatVersion: 2 |
|||
guid: b01a4952003554c0191ed57356e5830a |
|||
NativeFormatImporter: |
|||
externalObjects: {} |
|||
mainObjectFileID: 11400000 |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: a52b49b9ddc724c198fda9937a7fced0 |
|||
PrefabImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!1 &1780351997603834617 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 1780351997603834623} |
|||
- component: {fileID: 1780351997603834622} |
|||
m_Layer: 0 |
|||
m_Name: JointRenderer |
|||
m_TagString: Untagged |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!4 &1780351997603834623 |
|||
Transform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1780351997603834617} |
|||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
|||
m_LocalPosition: {x: 0, y: 0, z: 0} |
|||
m_LocalScale: {x: 1, y: 1, z: 1} |
|||
m_Children: [] |
|||
m_Father: {fileID: 0} |
|||
m_RootOrder: 0 |
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
|||
--- !u!120 &1780351997603834622 |
|||
LineRenderer: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1780351997603834617} |
|||
m_Enabled: 1 |
|||
m_CastShadows: 0 |
|||
m_ReceiveShadows: 0 |
|||
m_DynamicOccludee: 1 |
|||
m_MotionVectors: 0 |
|||
m_LightProbeUsage: 0 |
|||
m_ReflectionProbeUsage: 0 |
|||
m_RenderingLayerMask: 1 |
|||
m_RendererPriority: 0 |
|||
m_Materials: |
|||
- {fileID: 2100000, guid: 7c57bb7614d2746e4a2cc322b1174d39, type: 2} |
|||
m_StaticBatchInfo: |
|||
firstSubMesh: 0 |
|||
subMeshCount: 0 |
|||
m_StaticBatchRoot: {fileID: 0} |
|||
m_ProbeAnchor: {fileID: 0} |
|||
m_LightProbeVolumeOverride: {fileID: 0} |
|||
m_ScaleInLightmap: 1 |
|||
m_PreserveUVs: 0 |
|||
m_IgnoreNormalsForChartDetection: 0 |
|||
m_ImportantGI: 0 |
|||
m_StitchLightmapSeams: 0 |
|||
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_Positions: [] |
|||
m_Parameters: |
|||
serializedVersion: 3 |
|||
widthMultiplier: 1 |
|||
widthCurve: |
|||
serializedVersion: 2 |
|||
m_Curve: |
|||
- serializedVersion: 3 |
|||
time: 0.005493164 |
|||
value: 0.0050697327 |
|||
inSlope: 0 |
|||
outSlope: 0 |
|||
tangentMode: 0 |
|||
weightedMode: 0 |
|||
inWeight: 0.33333334 |
|||
outWeight: 0.33333334 |
|||
m_PreInfinity: 2 |
|||
m_PostInfinity: 2 |
|||
m_RotationOrder: 4 |
|||
colorGradient: |
|||
serializedVersion: 2 |
|||
key0: {r: 1, g: 1, b: 1, a: 1} |
|||
key1: {r: 1, g: 1, b: 1, a: 1} |
|||
key2: {r: 0, g: 0, b: 0, a: 0} |
|||
key3: {r: 0, g: 0, b: 0, a: 0} |
|||
key4: {r: 0, g: 0, b: 0, a: 0} |
|||
key5: {r: 0, g: 0, b: 0, a: 0} |
|||
key6: {r: 0, g: 0, b: 0, a: 0} |
|||
key7: {r: 0, g: 0, b: 0, a: 0} |
|||
ctime0: 0 |
|||
ctime1: 65535 |
|||
ctime2: 0 |
|||
ctime3: 0 |
|||
ctime4: 0 |
|||
ctime5: 0 |
|||
ctime6: 0 |
|||
ctime7: 0 |
|||
atime0: 0 |
|||
atime1: 65535 |
|||
atime2: 0 |
|||
atime3: 0 |
|||
atime4: 0 |
|||
atime5: 0 |
|||
atime6: 0 |
|||
atime7: 0 |
|||
m_Mode: 0 |
|||
m_NumColorKeys: 2 |
|||
m_NumAlphaKeys: 2 |
|||
numCornerVertices: 0 |
|||
numCapVertices: 0 |
|||
alignment: 0 |
|||
textureMode: 0 |
|||
shadowBias: 0.5 |
|||
generateLightingData: 0 |
|||
m_UseWorldSpace: 1 |
|||
m_Loop: 0 |
|
|||
fileFormatVersion: 2 |
|||
guid: f5b5c0be693bb45f9b7b9f28210c1c87 |
|||
ShaderImporter: |
|||
externalObjects: {} |
|||
defaultTextures: [] |
|||
nonModifiableTextures: [] |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%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: ARCoreBackgroundLWRPMaterial |
|||
m_Shader: {fileID: 4800000, guid: f5b5c0be693bb45f9b7b9f28210c1c87, type: 3} |
|||
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} |
|||
- _SpecGlossMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
m_Floats: |
|||
- _AlphaClip: 0 |
|||
- _Blend: 0 |
|||
- _BumpScale: 1 |
|||
- _Cull: 2 |
|||
- _Cutoff: 0.5 |
|||
- _DetailNormalMapScale: 1 |
|||
- _DstBlend: 0 |
|||
- _GlossMapScale: 1 |
|||
- _Glossiness: 0.5 |
|||
- _GlossyReflections: 1 |
|||
- _Metallic: 0 |
|||
- _OcclusionStrength: 1 |
|||
- _Parallax: 0.02 |
|||
- _ReceiveShadows: 1 |
|||
- _SmoothnessTextureChannel: 0 |
|||
- _SpecularHighlights: 1 |
|||
- _SrcBlend: 1 |
|||
- _Surface: 0 |
|||
- _UVSec: 0 |
|||
- _WorkflowMode: 1 |
|||
- _ZWrite: 1 |
|||
m_Colors: |
|||
- _Color: {r: 0.5, g: 0.5, b: 0.5, a: 1} |
|||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1} |
|||
- _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} |
|
|||
fileFormatVersion: 2 |
|||
guid: 5bd0883a437ba4ed8a4572cda9d2e23d |
|||
NativeFormatImporter: |
|||
externalObjects: {} |
|||
mainObjectFileID: 2100000 |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%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: ARKitLWRPMaterial |
|||
m_Shader: {fileID: 4800000, guid: 5c791e8fa990e481990e754655cd123d, type: 3} |
|||
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} |
|||
- _SpecGlossMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _textureCbCr: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _textureY: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
m_Floats: |
|||
- _AlphaClip: 0 |
|||
- _Blend: 0 |
|||
- _BumpScale: 1 |
|||
- _Cull: 2 |
|||
- _Cutoff: 0.5 |
|||
- _DetailNormalMapScale: 1 |
|||
- _DstBlend: 0 |
|||
- _GlossMapScale: 1 |
|||
- _Glossiness: 0.5 |
|||
- _GlossyReflections: 1 |
|||
- _Metallic: 0 |
|||
- _OcclusionStrength: 1 |
|||
- _Parallax: 0.02 |
|||
- _ReceiveShadows: 1 |
|||
- _SmoothnessTextureChannel: 0 |
|||
- _SpecularHighlights: 1 |
|||
- _SrcBlend: 1 |
|||
- _Surface: 0 |
|||
- _UVSec: 0 |
|||
- _WorkflowMode: 1 |
|||
- _ZWrite: 1 |
|||
m_Colors: |
|||
- _Color: {r: 0.5, g: 0.5, b: 0.5, a: 1} |
|||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1} |
|||
- _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} |
|
|||
fileFormatVersion: 2 |
|||
guid: 91c809f5df4d84941a85f4cd21a290f7 |
|||
NativeFormatImporter: |
|||
externalObjects: {} |
|||
mainObjectFileID: 2100000 |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 5c791e8fa990e481990e754655cd123d |
|||
ShaderImporter: |
|||
externalObjects: {} |
|||
defaultTextures: [] |
|||
nonModifiableTextures: [] |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 8ac2dfa07b5724f759d9f7fa54ba3713 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: f99128193f4d0421f95800f6ccd0c2c3 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 2a16b207c1243468a9f3d32431fa21b2 |
|||
AssemblyDefinitionImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 2310b94e2d8f5463ab592fa99eefbe6f |
|||
NativeFormatImporter: |
|||
externalObjects: {} |
|||
mainObjectFileID: 11400000 |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
Shader "Unlit/ARKitLWRP" |
|||
{ |
|||
Properties |
|||
{ |
|||
_textureY ("TextureY", 2D) = "white" {} |
|||
_textureCbCr ("TextureCbCr", 2D) = "black" {} |
|||
} |
|||
|
|||
SubShader |
|||
{ |
|||
Tags { "RenderType" = "Opaque" "RenderPipeline" = "LightweightPipeline"} |
|||
LOD 100 |
|||
|
|||
Pass |
|||
{ |
|||
Name "Default" |
|||
Tags { "LightMode" = "LightweightForward"} |
|||
|
|||
ZTest Always ZWrite Off |
|||
|
|||
HLSLPROGRAM |
|||
// Required to compile gles 2.0 with standard srp library |
|||
#pragma prefer_hlslcc gles |
|||
#pragma exclude_renderers d3d11_9x |
|||
#pragma vertex Vertex |
|||
#pragma fragment Fragment |
|||
|
|||
#include "Packages/com.unity.render-pipelines.lightweight/ShaderLibrary/Core.hlsl" |
|||
|
|||
float4x4 _UnityDisplayTransform; |
|||
|
|||
struct VertexInput |
|||
{ |
|||
float4 vertex : POSITION; |
|||
float2 uv : TEXCOORD0; |
|||
}; |
|||
|
|||
struct VertexOutput |
|||
{ |
|||
half4 pos : SV_POSITION; |
|||
half2 uv : TEXCOORD0; |
|||
}; |
|||
|
|||
|
|||
TEXTURE2D(_textureY); |
|||
SAMPLER(sampler_textureY); |
|||
TEXTURE2D(_textureCbCr); |
|||
SAMPLER(sampler_textureCbCr); |
|||
|
|||
VertexOutput Vertex(VertexInput i) |
|||
{ |
|||
VertexOutput o; |
|||
o.pos = TransformObjectToHClip(i.vertex.xyz); |
|||
o.uv.x = (_UnityDisplayTransform[0].x * i.uv.x + _UnityDisplayTransform[1].x * (i.uv.y) + _UnityDisplayTransform[2].x); |
|||
o.uv.y = (_UnityDisplayTransform[0].y * i.uv.x + _UnityDisplayTransform[1].y * (i.uv.y) + _UnityDisplayTransform[2].y); |
|||
return o; |
|||
} |
|||
|
|||
half4 Fragment(VertexOutput i) : SV_Target |
|||
{ |
|||
half y = SAMPLE_TEXTURE2D(_textureY, sampler_textureY, i.uv).r; |
|||
half4 ycbcr = half4(y, SAMPLE_TEXTURE2D(_textureCbCr, sampler_textureCbCr, i.uv).rg, 1.0); |
|||
|
|||
const half4x4 ycbcrToRGBTransform = half4x4( |
|||
half4(1.0, +0.0000, +1.4020, -0.7010), |
|||
half4(1.0, -0.3441, -0.7141, +0.5291), |
|||
half4(1.0, +1.7720, +0.0000, -0.8860), |
|||
half4(0.0, +0.0000, +0.0000, +1.0000) |
|||
); |
|||
|
|||
return mul(ycbcrToRGBTransform, ycbcr); |
|||
} |
|||
ENDHLSL |
|||
} |
|||
} |
|||
|
|||
} |
|
|||
using System; |
|||
using UnityEngine.Experimental.Rendering; |
|||
using UnityEngine.Experimental.Rendering.LightweightPipeline; |
|||
using UnityEngine.Rendering; |
|||
|
|||
namespace UnityEngine.XR.ARFoundation |
|||
{ |
|||
public class LWRPBackgroundRenderPass : ScriptableRenderPass |
|||
{ |
|||
Material m_BlitMaterial; |
|||
RenderTargetIdentifier m_DepthIdentifier; |
|||
RenderTargetIdentifier m_TargetIdentifier; |
|||
RenderTextureDescriptor m_Descriptor; |
|||
const string k_ARBlitTag = "ARBackground Blit Pass"; |
|||
|
|||
/// <summary>
|
|||
/// This render pass will need to be setup with the following parameters to be able to execute when called to do so.
|
|||
/// In this case, this method is called from GetPassToEnqueue in IBeforeRender interface.
|
|||
/// </summary>
|
|||
/// <param name="mat"> Material to be used to clear the screen. </param>
|
|||
/// <param name="ident"> RenderTargetIdentifier for the color buffer. </param>
|
|||
/// <param name="depthIdent"> RenderTargetIdentifier for the depth buffer.</param>
|
|||
/// <param name="descript"> RenderTextureDescriptor for the target RenderTexture. </param>
|
|||
/// <returns> True if the material set is not null. </returns>
|
|||
public bool Setup(Material mat, RenderTargetIdentifier ident, RenderTargetIdentifier depthIdent, RenderTextureDescriptor descript) |
|||
{ |
|||
m_BlitMaterial = mat; |
|||
m_TargetIdentifier = ident; |
|||
m_DepthIdentifier = depthIdent; |
|||
m_Descriptor = descript; |
|||
return m_BlitMaterial != null; |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Custom rendering for clearing the background with the pass-thru video for AR happens here. We use the parameters passed in via setup
|
|||
/// to create command buffer that clears the render target and blits to it using the clear material.
|
|||
/// </summary>
|
|||
/// <param name="renderer"> The ScriptableRenderer that is being used. </param>
|
|||
/// <param name="context"> The ScriptableRenderContext used to execute the command buffer that we create. </param>
|
|||
/// <param name="renderingData"> RenderingData (unused here). </param>
|
|||
/// <exception cref="ArgumentNullException"> Throw this exception if the renderer is null. </exception>
|
|||
public override void Execute(ScriptableRenderer renderer, ScriptableRenderContext context, ref RenderingData renderingData) |
|||
{ |
|||
if (renderer == null) |
|||
throw new ArgumentNullException("renderer"); |
|||
|
|||
var cmd = CommandBufferPool.Get(k_ARBlitTag); |
|||
|
|||
RenderBufferLoadAction colorLoadOp = RenderBufferLoadAction.DontCare; |
|||
RenderBufferStoreAction colorStoreOp = RenderBufferStoreAction.Store; |
|||
|
|||
RenderBufferLoadAction depthLoadOp = RenderBufferLoadAction.DontCare; |
|||
RenderBufferStoreAction depthStoreOp = RenderBufferStoreAction.Store; |
|||
|
|||
SetRenderTarget(cmd, m_TargetIdentifier, colorLoadOp, colorStoreOp, |
|||
m_DepthIdentifier, depthLoadOp, depthStoreOp, ClearFlag.All, Color.clear, m_Descriptor.dimension); |
|||
|
|||
cmd.Blit(null, m_TargetIdentifier, m_BlitMaterial); |
|||
context.ExecuteCommandBuffer(cmd); |
|||
CommandBufferPool.Release(cmd); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 566adfba2b318447fb941a2ea4f3f84f |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
|
|||
namespace UnityEngine.XR.ARFoundation |
|||
{ |
|||
|
|||
public class LWRPBackgroundRenderer : ARFoundationBackgroundRenderer |
|||
{ |
|||
CameraClearFlags m_SavedClearFlags; |
|||
LWRPBeforeCameraRender m_LWRPBeforeCameraRender; |
|||
|
|||
protected override bool EnableARBackgroundRendering() |
|||
{ |
|||
if (m_BackgroundMaterial == null) |
|||
return false; |
|||
|
|||
camera = m_Camera ? m_Camera : Camera.main; |
|||
|
|||
if (camera == null) |
|||
return false; |
|||
|
|||
// Clear flags
|
|||
m_SavedClearFlags = camera.clearFlags; |
|||
camera.clearFlags = CameraClearFlags.Depth; |
|||
|
|||
if (m_LWRPBeforeCameraRender == null) |
|||
{ |
|||
m_LWRPBeforeCameraRender = camera.gameObject.GetComponent<LWRPBeforeCameraRender>(); |
|||
} |
|||
|
|||
m_LWRPBeforeCameraRender.blitMaterial = m_BackgroundMaterial; |
|||
|
|||
return true; |
|||
|
|||
} |
|||
|
|||
|
|||
protected override void DisableARBackgroundRendering() |
|||
{ |
|||
if (m_BackgroundMaterial == null) |
|||
return; |
|||
|
|||
camera = m_Camera ? m_Camera : Camera.main; |
|||
if (camera == null) |
|||
return; |
|||
camera.clearFlags = m_SavedClearFlags; |
|||
|
|||
if (m_LWRPBeforeCameraRender != null) |
|||
{ |
|||
m_LWRPBeforeCameraRender.blitMaterial = null; |
|||
m_LWRPBeforeCameraRender = null; |
|||
} |
|||
|
|||
} |
|||
|
|||
} |
|||
|
|||
} |
|
|||
%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: 3974c4b6d5b67422c935da45b02d23f2, type: 3} |
|||
m_Name: LWRPBackgroundRendererAsset |
|||
m_EditorClassIdentifier: |
|||
m_MaterialsUsed: |
|||
- {fileID: 2100000, guid: 91c809f5df4d84941a85f4cd21a290f7, type: 2} |
|||
- {fileID: 2100000, guid: 5bd0883a437ba4ed8a4572cda9d2e23d, type: 2} |
|
|||
using UnityEngine.Experimental.Rendering; |
|||
using UnityEngine.Experimental.Rendering.LightweightPipeline; |
|||
|
|||
namespace UnityEngine.XR.ARFoundation |
|||
{ |
|||
public class LWRPBeforeCameraRender : MonoBehaviour, IBeforeRender |
|||
{ |
|||
const string k_ARBlitTag = "ARBackground Blit Pass"; |
|||
|
|||
public Material blitMaterial { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// Create, setup and return a ScriptableRenderPass that will blit the pass-thru video when this GameObject is rendered.
|
|||
/// </summary>
|
|||
/// <param name="baseDescriptor">RenderTextureDescriptor for this pass. </param>
|
|||
/// <param name="colorHandle">RenderTargetHandle for color buffer.</param>
|
|||
/// <param name="depthHandle">RenderTargetHandle for depth buffer.</param>
|
|||
/// <param name="clearFlag">ClearFlag used for rendering.</param>
|
|||
/// <returns></returns>
|
|||
public ScriptableRenderPass GetPassToEnqueue(RenderTextureDescriptor baseDescriptor, RenderTargetHandle colorHandle, |
|||
RenderTargetHandle depthHandle, ClearFlag clearFlag) |
|||
{ |
|||
var lwrpBackgroundRenderPass = new LWRPBackgroundRenderPass(); |
|||
lwrpBackgroundRenderPass.Setup(blitMaterial, colorHandle.Identifier(), depthHandle.Identifier(), |
|||
baseDescriptor); |
|||
return lwrpBackgroundRenderPass; |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 3974c4b6d5b67422c935da45b02d23f2 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
Shader "Unlit/ARCoreBackgroundLWRP" |
|||
{ |
|||
Properties |
|||
{ |
|||
_MainTex("Texture", 2D) = "white" {} |
|||
} |
|||
|
|||
// For GLES3 |
|||
SubShader |
|||
{ |
|||
Pass |
|||
{ |
|||
ZWrite Off |
|||
Cull Off |
|||
|
|||
GLSLPROGRAM |
|||
|
|||
#pragma only_renderers gles3 |
|||
|
|||
#ifdef SHADER_API_GLES3 |
|||
#extension GL_OES_EGL_image_external_essl3 : require |
|||
#endif |
|||
|
|||
uniform mat4 _UnityDisplayTransform; |
|||
|
|||
#ifdef VERTEX |
|||
varying vec2 textureCoord; |
|||
|
|||
void main() |
|||
{ |
|||
#ifdef SHADER_API_GLES3 |
|||
float flippedV = 1.0 - gl_MultiTexCoord0.y; |
|||
textureCoord.x = _UnityDisplayTransform[0].x * gl_MultiTexCoord0.x + _UnityDisplayTransform[1].x * flippedV + _UnityDisplayTransform[2].x; |
|||
textureCoord.y = _UnityDisplayTransform[0].y * gl_MultiTexCoord0.x + _UnityDisplayTransform[1].y * flippedV + _UnityDisplayTransform[2].y; |
|||
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex; |
|||
#endif |
|||
} |
|||
#endif |
|||
|
|||
#ifdef FRAGMENT |
|||
varying vec2 textureCoord; |
|||
uniform samplerExternalOES _MainTex; |
|||
|
|||
void main() |
|||
{ |
|||
#ifdef SHADER_API_GLES3 |
|||
gl_FragColor = vec4(texture(_MainTex, textureCoord).xyz, 1); |
|||
#endif |
|||
} |
|||
|
|||
#endif |
|||
ENDGLSL |
|||
} |
|||
} |
|||
|
|||
FallBack Off |
|||
} |
|
|||
using System; |
|||
using UnityEngine.Rendering; |
|||
using UnityEngine.XR.ARFoundation; |
|||
|
|||
namespace UnityEngine.XR.ARFoundation |
|||
{ |
|||
[CreateAssetMenu(fileName = "LWRPBackgroundRendererAsset", menuName = "XR/LWRPBackgroundRendererAsset")] |
|||
public class LWRPBackgroundRendererAsset : ARBackgroundRendererAsset |
|||
{ |
|||
/// <summary>
|
|||
/// we're going to reference all materials that we want to use so that they get built into the project
|
|||
/// </summary>
|
|||
[SerializeField] |
|||
Material[] m_MaterialsUsed; |
|||
|
|||
[SerializeField] |
|||
ARCameraManager m_CameraManager; |
|||
|
|||
static bool useRenderPipeline { get { return GraphicsSettings.renderPipelineAsset != null; } } |
|||
|
|||
public override ARFoundationBackgroundRenderer CreateARBackgroundRenderer() |
|||
{ |
|||
return useRenderPipeline ? new LWRPBackgroundRenderer() : new ARFoundationBackgroundRenderer(); |
|||
} |
|||
|
|||
public override void CreateHelperComponents(GameObject cameraGameObject) |
|||
{ |
|||
m_CameraManager = cameraGameObject.GetComponent<ARCameraManager>(); |
|||
Debug.Assert(m_CameraManager != null, "camera manager must be non-null"); |
|||
|
|||
if (useRenderPipeline) |
|||
{ |
|||
var lwrpBeforeCameraRender = cameraGameObject.GetComponent<LWRPBeforeCameraRender>(); |
|||
if (lwrpBeforeCameraRender == null) |
|||
{ |
|||
cameraGameObject.AddComponent<LWRPBeforeCameraRender>(); |
|||
} |
|||
} |
|||
} |
|||
|
|||
public override Material CreateCustomMaterial() |
|||
{ |
|||
if (m_CameraManager == null) |
|||
{ |
|||
Debug.Log("camera manager is null"); |
|||
return null; |
|||
} |
|||
|
|||
// Try to create a material from the plugin's provided shader.
|
|||
var shaderName = m_CameraManager.shaderName + "LWRP"; |
|||
Debug.LogFormat("Creating material for shader '{0}'", shaderName); |
|||
|
|||
var shader = Shader.Find(shaderName); |
|||
if (shader == null) |
|||
{ |
|||
throw new InvalidOperationException(string.Format( |
|||
"Could not find shader named \"{0}\" required for LWRP video overlay on camera subsystem named \"{1}\".", |
|||
shaderName, |
|||
m_CameraManager.descriptor.id)); |
|||
} |
|||
|
|||
return new Material(shader); |
|||
} |
|||
} |
|||
|
|||
} |
|
|||
{ |
|||
"name": "Unity.XR.ARFoundation.LWRPSupport", |
|||
"references": [ |
|||
"Unity.XR.ARFoundation", |
|||
"Unity.XR.ARSubsystems", |
|||
"Unity.RenderPipelines.Core.Runtime", |
|||
"Unity.RenderPipelines.Lightweight.Runtime" |
|||
], |
|||
"optionalUnityReferences": [], |
|||
"includePlatforms": [], |
|||
"excludePlatforms": [], |
|||
"allowUnsafeCode": false, |
|||
"overrideReferences": false, |
|||
"precompiledReferences": [], |
|||
"autoReferenced": true, |
|||
"defineConstraints": [] |
|||
} |
1001
Assets/Scenes/ARCollaborationData/ARCollaborationDataExample.unity
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
|
|||
fileFormatVersion: 2 |
|||
guid: 900e7bfe6122645fba71b90941afb9c5 |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
using System.Collections; |
|||
using System.Collections.Generic; |
|||
using System.IO; |
|||
using UnityEngine; |
|||
using UnityEngine.UI; |
|||
|
|||
[RequireComponent(typeof(TCPClient))] |
|||
[RequireComponent(typeof(TCPServer))] |
|||
public class ClientServerSelector : MonoBehaviour |
|||
{ |
|||
[SerializeField] |
|||
Button m_JoinButton; |
|||
|
|||
public Button joinButton |
|||
{ |
|||
get { return m_JoinButton; } |
|||
set { m_JoinButton = value; } |
|||
} |
|||
|
|||
[SerializeField] |
|||
Button m_HostButton; |
|||
|
|||
public Button hostButton |
|||
{ |
|||
get { return m_HostButton; } |
|||
set { m_HostButton = value; } |
|||
} |
|||
|
|||
[SerializeField] |
|||
InputField m_IPAddressField; |
|||
|
|||
public InputField ipAddressField |
|||
{ |
|||
get { return m_IPAddressField; } |
|||
set { m_IPAddressField = value; } |
|||
} |
|||
|
|||
public void Join() |
|||
{ |
|||
var client = GetComponent<TCPClient>(); |
|||
var ipAddress = m_IPAddressField.text; |
|||
try |
|||
{ |
|||
File.WriteAllText(GetIPAddressPath(), ipAddress); |
|||
} |
|||
catch (Exception e) |
|||
{ |
|||
Logger.Log($"Could not save IP address because {e.ToString()}"); |
|||
} |
|||
|
|||
client.serverIP = ipAddress; |
|||
client.enabled = true; |
|||
enabled = false; |
|||
} |
|||
|
|||
public void Host() |
|||
{ |
|||
GetComponent<TCPClient>().enabled = false; |
|||
GetComponent<TCPServer>().enabled = true; |
|||
enabled = false; |
|||
} |
|||
|
|||
string GetIPAddressPath() |
|||
{ |
|||
return Path.Combine(Application.persistentDataPath, "ipaddress.txt"); |
|||
} |
|||
|
|||
void OnEnable() |
|||
{ |
|||
if (File.Exists(GetIPAddressPath())) |
|||
{ |
|||
var storedIPAddress = File.ReadAllText(GetIPAddressPath()); |
|||
if (storedIPAddress != null) |
|||
{ |
|||
Logger.Log($"Found stored IP address {storedIPAddress}"); |
|||
m_IPAddressField.text = storedIPAddress; |
|||
} |
|||
else |
|||
{ |
|||
Logger.Log($"No IP address tored at {GetIPAddressPath()}"); |
|||
} |
|||
} |
|||
|
|||
if (m_JoinButton != null) |
|||
m_JoinButton.gameObject.SetActive(true); |
|||
|
|||
if (m_HostButton != null) |
|||
m_HostButton.gameObject.SetActive(true); |
|||
} |
|||
|
|||
void OnDisable() |
|||
{ |
|||
if (m_JoinButton != null) |
|||
m_JoinButton.gameObject.SetActive(false); |
|||
|
|||
if (m_HostButton != null) |
|||
m_HostButton.gameObject.SetActive(false); |
|||
|
|||
if (m_IPAddressField != null) |
|||
m_IPAddressField.gameObject.SetActive(false); |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: bbcf44277865e45d399575001e42f155 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
using System.Collections; |
|||
using System.Collections.Generic; |
|||
using System.Text; |
|||
using UnityEngine; |
|||
using UnityEngine.UI; |
|||
|
|||
public class CollaborationNetworkingIndicator : MonoBehaviour |
|||
{ |
|||
[SerializeField] |
|||
Image m_IncomingDataImage; |
|||
|
|||
public Image incomingDataImage |
|||
{ |
|||
get { return m_IncomingDataImage; } |
|||
set { m_IncomingDataImage = value; } |
|||
} |
|||
|
|||
[SerializeField] |
|||
Image m_OutgoingDataImage; |
|||
|
|||
public Image outgoingDataImage |
|||
{ |
|||
get { return m_OutgoingDataImage; } |
|||
set { m_OutgoingDataImage = value; } |
|||
} |
|||
|
|||
[SerializeField] |
|||
Image m_HasCollaborationDataImage; |
|||
|
|||
public Image hasCollaborationDataImage |
|||
{ |
|||
get { return m_HasCollaborationDataImage; } |
|||
set { m_HasCollaborationDataImage = value; } |
|||
} |
|||
|
|||
static bool s_IncomingDataReceived; |
|||
|
|||
static bool s_OutgoingDataSent; |
|||
|
|||
static bool s_HasCollaborationData; |
|||
|
|||
void Update() |
|||
{ |
|||
m_IncomingDataImage.color = s_IncomingDataReceived ? Color.green : Color.red; |
|||
m_OutgoingDataImage.color = s_OutgoingDataSent ? Color.green : Color.red; |
|||
m_HasCollaborationDataImage.color = s_HasCollaborationData ? Color.green : Color.red; |
|||
|
|||
s_IncomingDataReceived = false; |
|||
s_OutgoingDataSent = false; |
|||
s_HasCollaborationData = false; |
|||
} |
|||
|
|||
public static void NotifyIncomingDataReceived() |
|||
{ |
|||
s_IncomingDataReceived = true; |
|||
} |
|||
|
|||
public static void NotifyOutgoingDataSent() |
|||
{ |
|||
s_OutgoingDataSent = true; |
|||
} |
|||
|
|||
public static void NotifyHasCollaborationData() |
|||
{ |
|||
s_HasCollaborationData = true; |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: d1be5be8a43f540cca468deb4a0a0101 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System.Collections; |
|||
using System.Collections.Generic; |
|||
using UnityEngine; |
|||
using UnityEngine.UI; |
|||
using UnityEngine.XR.ARFoundation; |
|||
|
|||
/// <summary>
|
|||
/// When relocalizing with ARCollaborationData or ARWorldMaps, the tracking state
|
|||
/// should change to TrackingState.Limited until the device has successfully
|
|||
/// relocalized to the new data. If it remains TrackingState.Tracking, then
|
|||
/// it is not working.
|
|||
/// </summary>
|
|||
[RequireComponent(typeof(ARSession))] |
|||
public class DisplayTrackingState : MonoBehaviour |
|||
{ |
|||
[SerializeField] |
|||
Text m_Text; |
|||
|
|||
public Text text |
|||
{ |
|||
get { return m_Text; } |
|||
set { m_Text = value; } |
|||
} |
|||
|
|||
ARSession m_Session; |
|||
|
|||
void Start() |
|||
{ |
|||
m_Session = GetComponent<ARSession>(); |
|||
} |
|||
|
|||
void Update() |
|||
{ |
|||
if (text != null) |
|||
{ |
|||
text.text = $"Session ID = {m_Session.subsystem.sessionId}\n" + |
|||
$"Session state = {ARSession.state.ToString()}\n" + |
|||
$"Tracking state = {m_Session.subsystem.trackingState}"; |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: a5af10ee5346e4e829576a57d9a59cd3 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System.Collections; |
|||
using System.Collections.Generic; |
|||
using UnityEngine; |
|||
using UnityEngine.UI; |
|||
using UnityEngine.XR.ARFoundation; |
|||
|
|||
/// <summary>
|
|||
/// Displays information about each reference point including
|
|||
/// whether or not the reference point is local or remote.
|
|||
/// The reference point prefab is assumed to include a GameObject
|
|||
/// which can be colored to indicate which session created it.
|
|||
/// </summary>
|
|||
[RequireComponent(typeof(ARSessionOrigin))] |
|||
[RequireComponent(typeof(ARReferencePointManager))] |
|||
public class ReferencePointInfoManager : MonoBehaviour |
|||
{ |
|||
[SerializeField] |
|||
ARSession m_Session; |
|||
|
|||
public ARSession session |
|||
{ |
|||
get { return m_Session; } |
|||
set { m_Session = value; } |
|||
} |
|||
|
|||
void OnEnable() |
|||
{ |
|||
GetComponent<ARReferencePointManager>().referencePointsChanged += OnReferencePointsChanged; |
|||
} |
|||
|
|||
void OnDisable() |
|||
{ |
|||
GetComponent<ARReferencePointManager>().referencePointsChanged -= OnReferencePointsChanged; |
|||
} |
|||
|
|||
void OnReferencePointsChanged(ARReferencePointsChangedEventArgs eventArgs) |
|||
{ |
|||
foreach (var referencePoint in eventArgs.added) |
|||
{ |
|||
UpdateReferencePoint(referencePoint); |
|||
} |
|||
|
|||
foreach (var referencePoint in eventArgs.updated) |
|||
{ |
|||
UpdateReferencePoint(referencePoint); |
|||
} |
|||
} |
|||
|
|||
unsafe struct byte128 |
|||
{ |
|||
public fixed byte data[16]; |
|||
} |
|||
|
|||
void UpdateReferencePoint(ARReferencePoint referencePoint) |
|||
{ |
|||
var canvas = referencePoint.GetComponentInChildren<Canvas>(); |
|||
if (canvas == null) |
|||
return; |
|||
|
|||
canvas.worldCamera = GetComponent<ARSessionOrigin>().camera; |
|||
|
|||
var text = canvas.GetComponentInChildren<Text>(); |
|||
if (text == null) |
|||
return; |
|||
|
|||
var sessionId = referencePoint.sessionId; |
|||
if (sessionId.Equals(session.subsystem.sessionId)) |
|||
{ |
|||
text.text = $"Local"; |
|||
} |
|||
else |
|||
{ |
|||
text.text = $"Remote"; |
|||
} |
|||
|
|||
var cube = referencePoint.transform.Find("Scale/SessionId Indicator"); |
|||
if (cube != null) |
|||
{ |
|||
var renderer = cube.GetComponent<Renderer>(); |
|||
{ |
|||
// Generate a color from the sessionId
|
|||
Color color; |
|||
unsafe |
|||
{ |
|||
var bytes = *(byte128*)&sessionId; |
|||
color = new Color( |
|||
bytes.data[0] / 255f, |
|||
bytes.data[4] / 255f, |
|||
bytes.data[8] / 255f, |
|||
bytes.data[12] / 255f); |
|||
} |
|||
renderer.material.color = color; |
|||
} |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: d6a1e9f83a6cd403486e67390f5f486c |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!1 &1362899771367802 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 4940852310305428} |
|||
m_Layer: 0 |
|||
m_Name: ReferencePointWithDebugText |
|||
m_TagString: Untagged |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!4 &4940852310305428 |
|||
Transform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1362899771367802} |
|||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
|||
m_LocalPosition: {x: 0, y: 0, z: 0} |
|||
m_LocalScale: {x: 1, y: 1, z: 1} |
|||
m_Children: |
|||
- {fileID: 5592926836742763379} |
|||
- {fileID: 2926439546598349138} |
|||
m_Father: {fileID: 0} |
|||
m_RootOrder: 0 |
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
|||
--- !u!1 &1544274209718308 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 4209237128822544} |
|||
- component: {fileID: 33224036693064280} |
|||
- component: {fileID: 23670081559731906} |
|||
- component: {fileID: 65286711975546532} |
|||
m_Layer: 0 |
|||
m_Name: YAxis |
|||
m_TagString: Untagged |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!4 &4209237128822544 |
|||
Transform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1544274209718308} |
|||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} |
|||
m_LocalPosition: {x: 0, y: 0.5, z: 0} |
|||
m_LocalScale: {x: 0.1, y: 1, z: 0.1} |
|||
m_Children: [] |
|||
m_Father: {fileID: 5592926836742763379} |
|||
m_RootOrder: 1 |
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
|||
--- !u!33 &33224036693064280 |
|||
MeshFilter: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1544274209718308} |
|||
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} |
|||
--- !u!23 &23670081559731906 |
|||
MeshRenderer: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1544274209718308} |
|||
m_Enabled: 1 |
|||
m_CastShadows: 1 |
|||
m_ReceiveShadows: 1 |
|||
m_DynamicOccludee: 1 |
|||
m_MotionVectors: 1 |
|||
m_LightProbeUsage: 1 |
|||
m_ReflectionProbeUsage: 1 |
|||
m_RenderingLayerMask: 4294967295 |
|||
m_RendererPriority: 0 |
|||
m_Materials: |
|||
- {fileID: 2100000, guid: e62de97909a2840f786ce710f802cf2d, type: 2} |
|||
m_StaticBatchInfo: |
|||
firstSubMesh: 0 |
|||
subMeshCount: 0 |
|||
m_StaticBatchRoot: {fileID: 0} |
|||
m_ProbeAnchor: {fileID: 0} |
|||
m_LightProbeVolumeOverride: {fileID: 0} |
|||
m_ScaleInLightmap: 1 |
|||
m_PreserveUVs: 0 |
|||
m_IgnoreNormalsForChartDetection: 0 |
|||
m_ImportantGI: 0 |
|||
m_StitchLightmapSeams: 0 |
|||
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 |
|||
--- !u!65 &65286711975546532 |
|||
BoxCollider: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1544274209718308} |
|||
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!1 &1636217163257414 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 4011343239704628} |
|||
- component: {fileID: 33886554858103006} |
|||
- component: {fileID: 23292878307893794} |
|||
- component: {fileID: 65372193988663858} |
|||
m_Layer: 0 |
|||
m_Name: ZAxis |
|||
m_TagString: Untagged |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!4 &4011343239704628 |
|||
Transform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1636217163257414} |
|||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} |
|||
m_LocalPosition: {x: 0, y: 0, z: 0.5} |
|||
m_LocalScale: {x: 0.1, y: 0.1, z: 1} |
|||
m_Children: [] |
|||
m_Father: {fileID: 5592926836742763379} |
|||
m_RootOrder: 2 |
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
|||
--- !u!33 &33886554858103006 |
|||
MeshFilter: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1636217163257414} |
|||
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} |
|||
--- !u!23 &23292878307893794 |
|||
MeshRenderer: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1636217163257414} |
|||
m_Enabled: 1 |
|||
m_CastShadows: 1 |
|||
m_ReceiveShadows: 1 |
|||
m_DynamicOccludee: 1 |
|||
m_MotionVectors: 1 |
|||
m_LightProbeUsage: 1 |
|||
m_ReflectionProbeUsage: 1 |
|||
m_RenderingLayerMask: 4294967295 |
|||
m_RendererPriority: 0 |
|||
m_Materials: |
|||
- {fileID: 2100000, guid: d80c1a202911a4a37a3da59992876dfc, type: 2} |
|||
m_StaticBatchInfo: |
|||
firstSubMesh: 0 |
|||
subMeshCount: 0 |
|||
m_StaticBatchRoot: {fileID: 0} |
|||
m_ProbeAnchor: {fileID: 0} |
|||
m_LightProbeVolumeOverride: {fileID: 0} |
|||
m_ScaleInLightmap: 1 |
|||
m_PreserveUVs: 0 |
|||
m_IgnoreNormalsForChartDetection: 0 |
|||
m_ImportantGI: 0 |
|||
m_StitchLightmapSeams: 0 |
|||
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 |
|||
--- !u!65 &65372193988663858 |
|||
BoxCollider: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1636217163257414} |
|||
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!1 &1777781554239030 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 4793068442743758} |
|||
- component: {fileID: 33728291956804754} |
|||
- component: {fileID: 23056951466853612} |
|||
- component: {fileID: 65730419922972700} |
|||
m_Layer: 0 |
|||
m_Name: XAxis |
|||
m_TagString: Untagged |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!4 &4793068442743758 |
|||
Transform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1777781554239030} |
|||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} |
|||
m_LocalPosition: {x: 0.5, y: 0, z: 0} |
|||
m_LocalScale: {x: 1, y: 0.1, z: 0.1} |
|||
m_Children: [] |
|||
m_Father: {fileID: 5592926836742763379} |
|||
m_RootOrder: 0 |
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
|||
--- !u!33 &33728291956804754 |
|||
MeshFilter: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1777781554239030} |
|||
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} |
|||
--- !u!23 &23056951466853612 |
|||
MeshRenderer: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1777781554239030} |
|||
m_Enabled: 1 |
|||
m_CastShadows: 1 |
|||
m_ReceiveShadows: 1 |
|||
m_DynamicOccludee: 1 |
|||
m_MotionVectors: 1 |
|||
m_LightProbeUsage: 1 |
|||
m_ReflectionProbeUsage: 1 |
|||
m_RenderingLayerMask: 4294967295 |
|||
m_RendererPriority: 0 |
|||
m_Materials: |
|||
- {fileID: 2100000, guid: 1d85e66239f5b41eb87246c413157610, type: 2} |
|||
m_StaticBatchInfo: |
|||
firstSubMesh: 0 |
|||
subMeshCount: 0 |
|||
m_StaticBatchRoot: {fileID: 0} |
|||
m_ProbeAnchor: {fileID: 0} |
|||
m_LightProbeVolumeOverride: {fileID: 0} |
|||
m_ScaleInLightmap: 1 |
|||
m_PreserveUVs: 0 |
|||
m_IgnoreNormalsForChartDetection: 0 |
|||
m_ImportantGI: 0 |
|||
m_StitchLightmapSeams: 0 |
|||
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 |
|||
--- !u!65 &65730419922972700 |
|||
BoxCollider: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1777781554239030} |
|||
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!1 &632296245409194844 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 5592926836742763379} |
|||
m_Layer: 0 |
|||
m_Name: Scale |
|||
m_TagString: Untagged |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!4 &5592926836742763379 |
|||
Transform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 632296245409194844} |
|||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
|||
m_LocalPosition: {x: 0, y: 0, z: 0} |
|||
m_LocalScale: {x: 0.1, y: 0.1, z: 0.1} |
|||
m_Children: |
|||
- {fileID: 4793068442743758} |
|||
- {fileID: 4209237128822544} |
|||
- {fileID: 4011343239704628} |
|||
- {fileID: 4919992784813117573} |
|||
m_Father: {fileID: 4940852310305428} |
|||
m_RootOrder: 0 |
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
|||
--- !u!1 &652790603393003289 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 8626778999668101696} |
|||
- component: {fileID: 6275723017575759369} |
|||
- component: {fileID: 2853658769765301097} |
|||
m_Layer: 5 |
|||
m_Name: Text |
|||
m_TagString: Untagged |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!224 &8626778999668101696 |
|||
RectTransform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 652790603393003289} |
|||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
|||
m_LocalPosition: {x: 0, y: 0, z: 0} |
|||
m_LocalScale: {x: 1, y: 1, z: 1} |
|||
m_Children: [] |
|||
m_Father: {fileID: 2926439546598349138} |
|||
m_RootOrder: 0 |
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
|||
m_AnchorMin: {x: 0.5, y: 0.5} |
|||
m_AnchorMax: {x: 0.5, y: 0.5} |
|||
m_AnchoredPosition: {x: 0, y: -0.018} |
|||
m_SizeDelta: {x: 1, y: 1} |
|||
m_Pivot: {x: 0.5, y: 0.5} |
|||
--- !u!222 &6275723017575759369 |
|||
CanvasRenderer: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 652790603393003289} |
|||
m_CullTransparentMesh: 0 |
|||
--- !u!114 &2853658769765301097 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 652790603393003289} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_Material: {fileID: 0} |
|||
m_Color: {r: 1, g: 1, b: 1, a: 1} |
|||
m_RaycastTarget: 1 |
|||
m_OnCullStateChanged: |
|||
m_PersistentCalls: |
|||
m_Calls: [] |
|||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, |
|||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null |
|||
m_FontData: |
|||
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} |
|||
m_FontSize: 20 |
|||
m_FontStyle: 0 |
|||
m_BestFit: 0 |
|||
m_MinSize: 0 |
|||
m_MaxSize: 300 |
|||
m_Alignment: 4 |
|||
m_AlignByGeometry: 0 |
|||
m_RichText: 1 |
|||
m_HorizontalOverflow: 0 |
|||
m_VerticalOverflow: 0 |
|||
m_LineSpacing: 1 |
|||
m_Text: |
|||
--- !u!1 &8837306781102158538 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 2926439546598349138} |
|||
- component: {fileID: 7387694420605897239} |
|||
- component: {fileID: 6908992051379963341} |
|||
- component: {fileID: 447345472762372533} |
|||
m_Layer: 5 |
|||
m_Name: Canvas |
|||
m_TagString: Untagged |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!224 &2926439546598349138 |
|||
RectTransform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 8837306781102158538} |
|||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
|||
m_LocalPosition: {x: 0, y: 0, z: 0} |
|||
m_LocalScale: {x: 1, y: 1, z: 1} |
|||
m_Children: |
|||
- {fileID: 8626778999668101696} |
|||
m_Father: {fileID: 4940852310305428} |
|||
m_RootOrder: 1 |
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
|||
m_AnchorMin: {x: 0, y: 0} |
|||
m_AnchorMax: {x: 0, y: 0} |
|||
m_AnchoredPosition: {x: 0, y: 0.168} |
|||
m_SizeDelta: {x: 2, y: 2} |
|||
m_Pivot: {x: 0.5, y: 0.5} |
|||
--- !u!223 &7387694420605897239 |
|||
Canvas: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 8837306781102158538} |
|||
m_Enabled: 1 |
|||
serializedVersion: 3 |
|||
m_RenderMode: 2 |
|||
m_Camera: {fileID: 0} |
|||
m_PlaneDistance: 100 |
|||
m_PixelPerfect: 0 |
|||
m_ReceivesEvents: 1 |
|||
m_OverrideSorting: 0 |
|||
m_OverridePixelPerfect: 0 |
|||
m_SortingBucketNormalizedSize: 0 |
|||
m_AdditionalShaderChannelsFlag: 0 |
|||
m_SortingLayerID: 0 |
|||
m_SortingOrder: 0 |
|||
m_TargetDisplay: 0 |
|||
--- !u!114 &6908992051379963341 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 8837306781102158538} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_UiScaleMode: 0 |
|||
m_ReferencePixelsPerUnit: 100 |
|||
m_ScaleFactor: 1 |
|||
m_ReferenceResolution: {x: 800, y: 600} |
|||
m_ScreenMatchMode: 0 |
|||
m_MatchWidthOrHeight: 0 |
|||
m_PhysicalUnit: 3 |
|||
m_FallbackScreenDPI: 96 |
|||
m_DefaultSpriteDPI: 96 |
|||
m_DynamicPixelsPerUnit: 10000 |
|||
--- !u!114 &447345472762372533 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 8837306781102158538} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
m_IgnoreReversedGraphics: 1 |
|||
m_BlockingObjects: 0 |
|||
m_BlockingMask: |
|||
serializedVersion: 2 |
|||
m_Bits: 4294967295 |
|||
--- !u!1 &9089492096723985690 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 4919992784813117573} |
|||
- component: {fileID: 61621641649247610} |
|||
- component: {fileID: 169346888090131886} |
|||
- component: {fileID: 2560051407679676734} |
|||
m_Layer: 0 |
|||
m_Name: SessionId Indicator |
|||
m_TagString: Untagged |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!4 &4919992784813117573 |
|||
Transform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 9089492096723985690} |
|||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
|||
m_LocalPosition: {x: 0, y: 1.1, z: 0} |
|||
m_LocalScale: {x: 0.1, y: 0.1, z: 0.1} |
|||
m_Children: [] |
|||
m_Father: {fileID: 5592926836742763379} |
|||
m_RootOrder: 3 |
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
|||
--- !u!33 &61621641649247610 |
|||
MeshFilter: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 9089492096723985690} |
|||
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} |
|||
--- !u!23 &169346888090131886 |
|||
MeshRenderer: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 9089492096723985690} |
|||
m_Enabled: 1 |
|||
m_CastShadows: 1 |
|||
m_ReceiveShadows: 1 |
|||
m_DynamicOccludee: 1 |
|||
m_MotionVectors: 1 |
|||
m_LightProbeUsage: 1 |
|||
m_ReflectionProbeUsage: 1 |
|||
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_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 |
|||
--- !u!65 &2560051407679676734 |
|||
BoxCollider: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 9089492096723985690} |
|||
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} |
|
|||
fileFormatVersion: 2 |
|||
guid: 8fe3e998d2f7f4eb8ac84726705ca1fd |
|||
NativeFormatImporter: |
|||
externalObjects: {} |
|||
mainObjectFileID: 100100000 |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
using System.Collections; |
|||
using System.Collections.Generic; |
|||
using System.Net.Sockets; |
|||
using System.Text; |
|||
using System.Threading; |
|||
using UnityEngine; |
|||
using UnityEngine.UI; |
|||
using UnityEngine.XR.ARFoundation; |
|||
|
|||
[RequireComponent(typeof(ClientServerSelector))] |
|||
public class TCPClient : TCPConnection |
|||
{ |
|||
string m_ServerIP; |
|||
|
|||
public string serverIP |
|||
{ |
|||
get { return m_ServerIP; } |
|||
set |
|||
{ |
|||
if (enabled) |
|||
throw new InvalidOperationException("Cannot change server IP address while enabled."); |
|||
|
|||
m_ServerIP = value; |
|||
} |
|||
} |
|||
|
|||
public void Connect() |
|||
{ |
|||
Logger.Log($"Connecting to {serverIP} on port {port}"); |
|||
|
|||
try |
|||
{ |
|||
m_TcpClient = new TcpClient(serverIP, port); |
|||
Logger.Log("Connected!"); |
|||
} |
|||
catch (SocketException e) |
|||
{ |
|||
Logger.Log(e.Message); |
|||
enabled = false; |
|||
GetComponent<ClientServerSelector>().enabled = true; |
|||
} |
|||
} |
|||
|
|||
protected override void OnEnable() |
|||
{ |
|||
base.OnEnable(); |
|||
Connect(); |
|||
} |
|||
} |
部分文件因为文件数量过多而无法显示
撰写
预览
正在加载...
取消
保存
Reference in new issue