├── .gitignore ├── Assets ├── FaceDeformation.meta ├── FaceDeformation │ ├── Materials.meta │ ├── Materials │ │ ├── FaceMat.mat │ │ ├── FaceMat.mat.meta │ │ ├── FaceNoiseMat.mat │ │ ├── FaceNoiseMat.mat.meta │ │ ├── FaceSharpMat.mat │ │ ├── FaceSharpMat.mat.meta │ │ ├── FaceSmileMat.mat │ │ ├── FaceSmileMat.mat.meta │ │ ├── Textures.meta │ │ ├── Textures │ │ │ ├── FaceDisplacement.png │ │ │ ├── FaceDisplacement.png.meta │ │ │ ├── FaceHole.png │ │ │ ├── FaceHole.png.meta │ │ │ ├── FaceSharp.png │ │ │ ├── FaceSharp.png.meta │ │ │ ├── New Render Texture.renderTexture │ │ │ └── New Render Texture.renderTexture.meta │ │ ├── YCbCr2RGB.mat │ │ └── YCbCr2RGB.mat.meta │ ├── Mesh.meta │ ├── Mesh │ │ ├── Materials.meta │ │ ├── Materials │ │ │ ├── No Name.mat │ │ │ └── No Name.mat.meta │ │ ├── cylinder.fbx │ │ ├── cylinder.fbx.meta │ │ ├── sphere.fbx │ │ └── sphere.fbx.meta │ ├── Scenes.meta │ ├── Scenes │ │ ├── Sample.unity │ │ ├── Sample.unity.meta │ │ ├── _Copier.unity │ │ ├── _Copier.unity.meta │ │ ├── _Duplicator.unity │ │ ├── _Duplicator.unity.meta │ │ ├── _Particles.unity │ │ └── _Particles.unity.meta │ ├── Scripts.meta │ ├── Scripts │ │ ├── copier.meta │ │ ├── copier │ │ │ ├── Materials.meta │ │ │ ├── Materials │ │ │ │ ├── No Name.mat │ │ │ │ └── No Name.mat.meta │ │ │ ├── ProjMat.mat │ │ │ ├── ProjMat.mat.meta │ │ │ ├── ProjObj.cs │ │ │ ├── ProjObj.cs.meta │ │ │ ├── ProjObj.shader │ │ │ ├── ProjObj.shader.meta │ │ │ ├── ProjectionObjs.cs │ │ │ ├── ProjectionObjs.cs.meta │ │ │ ├── fuck.fbx │ │ │ └── fuck.fbx.meta │ │ ├── duplicator.meta │ │ ├── duplicator │ │ │ ├── FaceData.cs │ │ │ ├── FaceData.cs.meta │ │ │ ├── FaceDuplicator.cs │ │ │ └── FaceDuplicator.cs.meta │ │ ├── particles.meta │ │ ├── particles │ │ │ ├── CGINC.meta │ │ │ ├── CGINC │ │ │ │ ├── BillBoardCommon.cginc │ │ │ │ ├── BillBoardCommon.cginc.meta │ │ │ │ ├── ClassicNoise2D.cginc │ │ │ │ ├── ClassicNoise2D.cginc.meta │ │ │ │ ├── ClassicNoise3D.cginc │ │ │ │ ├── ClassicNoise3D.cginc.meta │ │ │ │ ├── ColorCollect.cginc │ │ │ │ ├── ColorCollect.cginc.meta │ │ │ │ ├── CoonsCurve.cginc │ │ │ │ ├── CoonsCurve.cginc.meta │ │ │ │ ├── NoiseMath.cginc │ │ │ │ ├── NoiseMath.cginc.meta │ │ │ │ ├── PostBlendCommon.cginc │ │ │ │ ├── PostBlendCommon.cginc.meta │ │ │ │ ├── Quaternion.cginc │ │ │ │ ├── Quaternion.cginc.meta │ │ │ │ ├── Random.cginc │ │ │ │ ├── Random.cginc.meta │ │ │ │ ├── SimplexNoise2D.cginc │ │ │ │ ├── SimplexNoise2D.cginc.meta │ │ │ │ ├── SimplexNoise3D.cginc │ │ │ │ ├── SimplexNoise3D.cginc.meta │ │ │ │ ├── SimplexNoise3Db.cginc │ │ │ │ ├── SimplexNoise3Db.cginc.meta │ │ │ │ ├── Transform.cginc │ │ │ │ └── Transform.cginc.meta │ │ │ ├── FaceDots.compute │ │ │ ├── FaceDots.compute.meta │ │ │ ├── FaceDots.cs │ │ │ ├── FaceDots.cs.meta │ │ │ ├── FaceDots.mat │ │ │ ├── FaceDots.mat.meta │ │ │ ├── FaceDots.shader │ │ │ ├── FaceDots.shader.meta │ │ │ ├── Utils.meta │ │ │ └── Utils │ │ │ │ ├── RandomPointOnMesh.cs │ │ │ │ └── RandomPointOnMesh.cs.meta │ │ ├── sample.meta │ │ └── sample │ │ │ ├── ExampleControl.cs │ │ │ ├── ExampleControl.cs.meta │ │ │ ├── FaceIndices.cs │ │ │ ├── FaceIndices.cs.meta │ │ │ ├── FaceMeshManager.cs │ │ │ ├── FaceMeshManager.cs.meta │ │ │ ├── YCbCrToRGB.cs │ │ │ └── YCbCrToRGB.cs.meta │ ├── Shaders.meta │ └── Shaders │ │ ├── FaceDeformation.shader │ │ ├── FaceDeformation.shader.meta │ │ ├── FaceDeformationNoise.shader │ │ ├── FaceDeformationNoise.shader.meta │ │ ├── FaceDeformationSharp.shader │ │ ├── FaceDeformationSharp.shader.meta │ │ ├── FaceDeformationSmile.shader │ │ ├── FaceDeformationSmile.shader.meta │ │ ├── YCbCrToRGB.shader │ │ ├── YCbCrToRGB.shader.meta │ │ ├── noise.meta │ │ └── noise │ │ ├── ClassicNoise2D.hlsl │ │ ├── ClassicNoise2D.hlsl.meta │ │ ├── ClassicNoise3D.hlsl │ │ ├── ClassicNoise3D.hlsl.meta │ │ ├── NoiseTest.shader │ │ ├── NoiseTest.shader.meta │ │ ├── SimplexNoise2D.hlsl │ │ ├── SimplexNoise2D.hlsl.meta │ │ ├── SimplexNoise3D.hlsl │ │ └── SimplexNoise3D.hlsl.meta ├── UnityARKitPlugin.meta └── UnityARKitPlugin │ ├── ARKitRemote.meta │ ├── ARKitRemote │ ├── ARKITREMOTE.txt │ ├── ARKITREMOTE.txt.meta │ ├── ARKitFaceTrackingRemoteConnection.cs │ ├── ARKitFaceTrackingRemoteConnection.cs.meta │ ├── ARKitRemoteConnection.cs │ ├── ARKitRemoteConnection.cs.meta │ ├── ARKitRemoteConnection.prefab │ ├── ARKitRemoteConnection.prefab.meta │ ├── ConnectToEditor.cs │ ├── ConnectToEditor.cs.meta │ ├── ConnectionMessageIds.cs │ ├── ConnectionMessageIds.cs.meta │ ├── EditorARFaceAnchor.cs │ ├── EditorARFaceAnchor.cs.meta │ ├── EditorARPlaneAnchor.cs │ ├── EditorARPlaneAnchor.cs.meta │ ├── EditorHitTest.cs │ ├── EditorHitTest.cs.meta │ ├── EditorTestScene.unity │ ├── EditorTestScene.unity.meta │ ├── ObjectSerializationExtension.cs │ ├── ObjectSerializationExtension.cs.meta │ ├── SerializableObjects.cs │ ├── SerializableObjects.cs.meta │ ├── UnityARKitRemote.unity │ ├── UnityARKitRemote.unity.meta │ ├── UnityRemoteVideo.cs │ └── UnityRemoteVideo.cs.meta │ ├── Examples.meta │ ├── Examples │ ├── ARKit1.5.meta │ ├── ARKit1.5 │ │ ├── UnityARImageAnchor.meta │ │ ├── UnityARImageAnchor │ │ │ ├── ARImagesSet_UnityLogo.asset │ │ │ ├── ARImagesSet_UnityLogo.asset.meta │ │ │ ├── GenerateImageAnchor.cs │ │ │ ├── GenerateImageAnchor.cs.meta │ │ │ ├── ReferenceImages.meta │ │ │ ├── ReferenceImages │ │ │ │ ├── unitylogoblackonwhite.png │ │ │ │ ├── unitylogoblackonwhite.png.meta │ │ │ │ ├── unitylogowhiteonblack.png │ │ │ │ └── unitylogowhiteonblack.png.meta │ │ │ ├── UnityARImageAnchor.unity │ │ │ ├── UnityARImageAnchor.unity.meta │ │ │ ├── UnityLogoReferenceImage.asset │ │ │ ├── UnityLogoReferenceImage.asset.meta │ │ │ ├── UnityLogoWhiteOnBlack.asset │ │ │ └── UnityLogoWhiteOnBlack.asset.meta │ │ ├── UnityARKitRelocalize.meta │ │ ├── UnityARKitRelocalize │ │ │ ├── RelocalizationControl.cs │ │ │ ├── RelocalizationControl.cs.meta │ │ │ ├── UnityARKitRelocalize.unity │ │ │ └── UnityARKitRelocalize.unity.meta │ │ ├── UnityARPlaneMesh.meta │ │ ├── UnityARPlaneMesh │ │ │ ├── ARKitPlaneMeshRender.cs │ │ │ ├── ARKitPlaneMeshRender.cs.meta │ │ │ ├── UnityARPlaneMesh.unity │ │ │ └── UnityARPlaneMesh.unity.meta │ │ ├── UnityARSetWorldOrigin.meta │ │ ├── UnityARSetWorldOrigin │ │ │ ├── SetWorldOriginControl.cs │ │ │ ├── SetWorldOriginControl.cs.meta │ │ │ ├── UnityARSetWorldOrigin.unity │ │ │ └── UnityARSetWorldOrigin.unity.meta │ │ ├── UnityARVideoFormats.meta │ │ └── UnityARVideoFormats │ │ │ ├── UnityARVideoFormats.unity │ │ │ ├── UnityARVideoFormats.unity.meta │ │ │ ├── VideoFormatButton.cs │ │ │ ├── VideoFormatButton.cs.meta │ │ │ ├── VideoFormatsExample.cs │ │ │ └── VideoFormatsExample.cs.meta │ ├── AddRemoveAnchorExample.meta │ ├── AddRemoveAnchorExample │ │ ├── AddRemoveAnchorScene.unity │ │ ├── AddRemoveAnchorScene.unity.meta │ │ ├── RandomCube.prefab │ │ ├── RandomCube.prefab.meta │ │ ├── UnityARUserAnchorExample.cs │ │ └── UnityARUserAnchorExample.cs.meta │ ├── Common.meta │ ├── Common │ │ ├── Materials.meta │ │ ├── Materials │ │ │ ├── 2000px-Checkerboard_pattern.svg.mat │ │ │ ├── 2000px-Checkerboard_pattern.svg.mat.meta │ │ │ ├── 2000px-Checkerboard_patternUV.svg.mat │ │ │ ├── 2000px-Checkerboard_patternUV.svg.mat.meta │ │ │ ├── ARKitPlaneMesh.mat │ │ │ ├── ARKitPlaneMesh.mat.meta │ │ │ ├── BallMaterial.mat │ │ │ ├── BallMaterial.mat.meta │ │ │ ├── MeshBorder.mat │ │ │ ├── MeshBorder.mat.meta │ │ │ ├── Plane Physic Material.physicMaterial │ │ │ ├── Plane Physic Material.physicMaterial.meta │ │ │ ├── PlayerMaterial.mat │ │ │ ├── PlayerMaterial.mat.meta │ │ │ ├── PointCloudMaterial.mat │ │ │ ├── PointCloudMaterial.mat.meta │ │ │ ├── PointCloudParticleMaterial.mat │ │ │ ├── PointCloudParticleMaterial.mat.meta │ │ │ ├── RTBack.renderTexture │ │ │ ├── RTBack.renderTexture.meta │ │ │ ├── RTBottom.renderTexture │ │ │ ├── RTBottom.renderTexture.meta │ │ │ ├── RTFront.renderTexture │ │ │ ├── RTFront.renderTexture.meta │ │ │ ├── RTLeft.renderTexture │ │ │ ├── RTLeft.renderTexture.meta │ │ │ ├── RTRight.renderTexture │ │ │ ├── RTRight.renderTexture.meta │ │ │ ├── RTTop.renderTexture │ │ │ ├── RTTop.renderTexture.meta │ │ │ ├── SphereMaterial.mat │ │ │ ├── SphereMaterial.mat.meta │ │ │ ├── XColor.mat │ │ │ ├── XColor.mat.meta │ │ │ ├── YColor.mat │ │ │ ├── YColor.mat.meta │ │ │ ├── ZColor.mat │ │ │ ├── ZColor.mat.meta │ │ │ ├── debugPlaneMaterial.mat │ │ │ ├── debugPlaneMaterial.mat.meta │ │ │ ├── occlusionPlaneMaterial.mat │ │ │ ├── occlusionPlaneMaterial.mat.meta │ │ │ ├── shadowPlaneMaterial.mat │ │ │ └── shadowPlaneMaterial.mat.meta │ │ ├── Models.meta │ │ ├── Models │ │ │ ├── Characters.meta │ │ │ └── Characters │ │ │ │ ├── Materials.meta │ │ │ │ ├── Materials │ │ │ │ ├── GunMaterial.mat │ │ │ │ └── GunMaterial.mat.meta │ │ │ │ ├── Player.fbx │ │ │ │ └── Player.fbx.meta │ │ ├── Prefabs.meta │ │ ├── Prefabs │ │ │ ├── ARKitPlaneGeometry.prefab │ │ │ ├── ARKitPlaneGeometry.prefab.meta │ │ │ ├── AxesPrefab.prefab │ │ │ ├── AxesPrefab.prefab.meta │ │ │ ├── BallPrefab.prefab │ │ │ ├── BallPrefab.prefab.meta │ │ │ ├── CollSphere.prefab │ │ │ ├── CollSphere.prefab.meta │ │ │ ├── ParticlePainterPrefab.prefab │ │ │ ├── ParticlePainterPrefab.prefab.meta │ │ │ ├── ParticlePrefab.prefab │ │ │ ├── ParticlePrefab.prefab.meta │ │ │ ├── PointCloudPrefab.prefab │ │ │ ├── PointCloudPrefab.prefab.meta │ │ │ ├── VideoFormatButton.prefab │ │ │ ├── VideoFormatButton.prefab.meta │ │ │ ├── collisionPlanePrefab.prefab │ │ │ ├── collisionPlanePrefab.prefab.meta │ │ │ ├── cube.prefab │ │ │ ├── cube.prefab.meta │ │ │ ├── debugPlanePrefab.prefab │ │ │ ├── debugPlanePrefab.prefab.meta │ │ │ ├── occlusionPlanePrefab.prefab │ │ │ ├── occlusionPlanePrefab.prefab.meta │ │ │ ├── shadowPlanePrefab.prefab │ │ │ └── shadowPlanePrefab.prefab.meta │ │ ├── Shaders.meta │ │ ├── Shaders │ │ │ ├── InstancedSurfaceShader.shader │ │ │ ├── InstancedSurfaceShader.shader.meta │ │ │ ├── MobileARShadow.shader │ │ │ ├── MobileARShadow.shader.meta │ │ │ ├── MobileOcclusion.shader │ │ │ └── MobileOcclusion.shader.meta │ │ ├── Textures.meta │ │ └── Textures │ │ │ ├── PlayerDiffuse.png │ │ │ ├── PlayerDiffuse.png.meta │ │ │ ├── PlayerNormals.png │ │ │ ├── PlayerNormals.png.meta │ │ │ ├── PlayerOcclusion.png │ │ │ ├── PlayerOcclusion.png.meta │ │ │ ├── PlayerSpecular.tif │ │ │ ├── PlayerSpecular.tif.meta │ │ │ ├── checker_large UV.gif │ │ │ ├── checker_large UV.gif.meta │ │ │ ├── debugPlaneTile.png │ │ │ ├── debugPlaneTile.png.meta │ │ │ ├── unitylogo.png │ │ │ └── unitylogo.png.meta │ ├── FaceTracking.meta │ ├── FaceTracking │ │ ├── ARCameraTracker.cs │ │ ├── ARCameraTracker.cs.meta │ │ ├── BlendshapeDriver.cs │ │ ├── BlendshapeDriver.cs.meta │ │ ├── BlendshapePrinter.cs │ │ ├── BlendshapePrinter.cs.meta │ │ ├── FaceAnchorScene.unity │ │ ├── FaceAnchorScene.unity.meta │ │ ├── FaceBlendshapeScene.unity │ │ ├── FaceBlendshapeScene.unity.meta │ │ ├── FaceBlendshapeSloth.unity │ │ ├── FaceBlendshapeSloth.unity.meta │ │ ├── FaceDirectionalLightEstimate.unity │ │ ├── FaceDirectionalLightEstimate.unity.meta │ │ ├── FaceMeshScene.unity │ │ ├── FaceMeshScene.unity.meta │ │ ├── SlothCharacter.meta │ │ ├── SlothCharacter │ │ │ ├── Materials.meta │ │ │ ├── Materials │ │ │ │ ├── sloth_all_1001_AlbedoTransparency.mat │ │ │ │ └── sloth_all_1001_AlbedoTransparency.mat.meta │ │ │ ├── Textures.meta │ │ │ ├── Textures │ │ │ │ ├── sloth_all_1001_AlbedoTransparency.png │ │ │ │ ├── sloth_all_1001_AlbedoTransparency.png.meta │ │ │ │ ├── sloth_all_1001_MetallicSmoothness.png │ │ │ │ ├── sloth_all_1001_MetallicSmoothness.png.meta │ │ │ │ ├── sloth_all_1001_Normal.png │ │ │ │ └── sloth_all_1001_Normal.png.meta │ │ │ ├── sloth_head_blendshapes5.fbx │ │ │ └── sloth_head_blendshapes5.fbx.meta │ │ ├── UnityARFaceAnchorManager.cs │ │ ├── UnityARFaceAnchorManager.cs.meta │ │ ├── UnityARFaceMeshManager.cs │ │ └── UnityARFaceMeshManager.cs.meta │ ├── FocusSquare.meta │ ├── FocusSquare │ │ ├── FocusSquare.cs │ │ ├── FocusSquare.cs.meta │ │ ├── FocusSquareFinding.controller │ │ ├── FocusSquareFinding.controller.meta │ │ ├── FocusSquareFinding.mat │ │ ├── FocusSquareFinding.mat.meta │ │ ├── FocusSquareFinding.prefab │ │ ├── FocusSquareFinding.prefab.meta │ │ ├── FocusSquareFocused.prefab │ │ ├── FocusSquareFocused.prefab.meta │ │ ├── FocusSquareFound.mat │ │ ├── FocusSquareFound.mat.meta │ │ ├── FocusSquareScene.unity │ │ ├── FocusSquareScene.unity.meta │ │ ├── focuspulse.anim │ │ ├── focuspulse.anim.meta │ │ ├── focussquare.png │ │ ├── focussquare.png.meta │ │ ├── focussquarefound.png │ │ └── focussquarefound.png.meta │ ├── UnityARBallz.meta │ ├── UnityARBallz │ │ ├── BallMaker.cs │ │ ├── BallMaker.cs.meta │ │ ├── BallMover.cs │ │ ├── BallMover.cs.meta │ │ ├── Ballz.cs │ │ ├── Ballz.cs.meta │ │ ├── ModeSwitcher.cs │ │ ├── ModeSwitcher.cs.meta │ │ ├── UnityARBallz.unity │ │ └── UnityARBallz.unity.meta │ ├── UnityARKitScene.meta │ ├── UnityARKitScene │ │ ├── UnityARKitScene.unity │ │ └── UnityARKitScene.unity.meta │ ├── UnityAROcclusion.meta │ ├── UnityAROcclusion │ │ ├── UnityAROcclusion.unity │ │ └── UnityAROcclusion.unity.meta │ ├── UnityARShadows.meta │ ├── UnityARShadows │ │ ├── UnityARShadows.unity │ │ └── UnityARShadows.unity.meta │ ├── UnityParticlePainter.meta │ └── UnityParticlePainter │ │ ├── HSVPicker.meta │ │ ├── HSVPicker │ │ ├── Editor.meta │ │ ├── Editor │ │ │ ├── BoxSliderEditor.cs │ │ │ └── BoxSliderEditor.cs.meta │ │ ├── Enums.meta │ │ ├── Enums │ │ │ ├── ColorValues.cs │ │ │ └── ColorValues.cs.meta │ │ ├── Events.meta │ │ ├── Events │ │ │ ├── ColorChangedEvent.cs │ │ │ ├── ColorChangedEvent.cs.meta │ │ │ ├── HSVChangedEvent.cs │ │ │ └── HSVChangedEvent.cs.meta │ │ ├── Other.meta │ │ ├── Other │ │ │ ├── ColorPickerTester.cs │ │ │ ├── ColorPickerTester.cs.meta │ │ │ ├── TiltWindow.cs │ │ │ └── TiltWindow.cs.meta │ │ ├── Picker 2.0.prefab │ │ ├── Picker 2.0.prefab.meta │ │ ├── PickerTest.unity │ │ ├── PickerTest.unity.meta │ │ ├── UI.meta │ │ ├── UI │ │ │ ├── ColorImage.cs │ │ │ ├── ColorImage.cs.meta │ │ │ ├── ColorLabel.cs │ │ │ ├── ColorLabel.cs.meta │ │ │ ├── ColorPicker.cs │ │ │ ├── ColorPicker.cs.meta │ │ │ ├── ColorPresets.cs │ │ │ ├── ColorPresets.cs.meta │ │ │ ├── ColorSlider.cs │ │ │ ├── ColorSlider.cs.meta │ │ │ ├── ColorSliderImage.cs │ │ │ ├── ColorSliderImage.cs.meta │ │ │ ├── HexColorField.cs │ │ │ ├── HexColorField.cs.meta │ │ │ ├── SVBoxSlider.cs │ │ │ └── SVBoxSlider.cs.meta │ │ ├── UtilityScripts.meta │ │ └── UtilityScripts │ │ │ ├── BoxSlider.cs │ │ │ ├── BoxSlider.cs.meta │ │ │ ├── HSVUtil.cs │ │ │ └── HSVUtil.cs.meta │ │ ├── ParticlePainter.cs │ │ ├── ParticlePainter.cs.meta │ │ ├── UnityParticlePainter.unity │ │ └── UnityParticlePainter.unity.meta │ ├── Plugins.meta │ ├── Plugins │ ├── iOS.meta │ └── iOS │ │ ├── UnityARKit.meta │ │ └── UnityARKit │ │ ├── ARReferenceImage.cs │ │ ├── ARReferenceImage.cs.meta │ │ ├── ARReferenceImagesSet.cs │ │ ├── ARReferenceImagesSet.cs.meta │ │ ├── Editor.meta │ │ ├── Editor │ │ ├── ARResourcesJSON.cs │ │ ├── ARResourcesJSON.cs.meta │ │ ├── UnityARBuildPostprocessor.cs │ │ └── UnityARBuildPostprocessor.cs.meta │ │ ├── Helpers.meta │ │ ├── Helpers │ │ ├── AR3DOFCameraManager.cs │ │ ├── AR3DOFCameraManager.cs.meta │ │ ├── ARPlaneAnchorGameObject.cs │ │ ├── ARPlaneAnchorGameObject.cs.meta │ │ ├── DontDestroyOnLoad.cs │ │ ├── DontDestroyOnLoad.cs.meta │ │ ├── LinkedListDictionary.cs │ │ ├── LinkedListDictionary.cs.meta │ │ ├── PointCloudParticleExample.cs │ │ ├── PointCloudParticleExample.cs.meta │ │ ├── UnityARAmbient.cs │ │ ├── UnityARAmbient.cs.meta │ │ ├── UnityARAnchorManager.cs │ │ ├── UnityARAnchorManager.cs.meta │ │ ├── UnityARCameraManager.cs │ │ ├── UnityARCameraManager.cs.meta │ │ ├── UnityARCameraNearFar.cs │ │ ├── UnityARCameraNearFar.cs.meta │ │ ├── UnityARGeneratePlane.cs │ │ ├── UnityARGeneratePlane.cs.meta │ │ ├── UnityARHitTestExample.cs │ │ ├── UnityARHitTestExample.cs.meta │ │ ├── UnityARKitControl.cs │ │ ├── UnityARKitControl.cs.meta │ │ ├── UnityARKitLightManager.cs │ │ ├── UnityARKitLightManager.cs.meta │ │ ├── UnityARMatrixOps.cs │ │ ├── UnityARMatrixOps.cs.meta │ │ ├── UnityARUserAnchorComponent.cs │ │ ├── UnityARUserAnchorComponent.cs.meta │ │ ├── UnityARUtility.cs │ │ ├── UnityARUtility.cs.meta │ │ ├── UnityARVideo.cs │ │ ├── UnityARVideo.cs.meta │ │ ├── UnityPointCloudExample.cs │ │ └── UnityPointCloudExample.cs.meta │ │ ├── Materials.meta │ │ ├── Materials │ │ ├── YUVMaterial.mat │ │ ├── YUVMaterial.mat.meta │ │ ├── YUVMaterialLinear.mat │ │ └── YUVMaterialLinear.mat.meta │ │ ├── NativeInterface.meta │ │ ├── NativeInterface │ │ ├── ARAnchor.cs │ │ ├── ARAnchor.cs.meta │ │ ├── ARCamera.cs │ │ ├── ARCamera.cs.meta │ │ ├── ARErrorCode.cs │ │ ├── ARErrorCode.cs.meta │ │ ├── ARFaceAnchor.cs │ │ ├── ARFaceAnchor.cs.meta │ │ ├── ARFrame.cs │ │ ├── ARFrame.cs.meta │ │ ├── ARHitTestResult.cs │ │ ├── ARHitTestResult.cs.meta │ │ ├── ARHitTestResultType.cs │ │ ├── ARHitTestResultType.cs.meta │ │ ├── ARImageAnchor.cs │ │ ├── ARImageAnchor.cs.meta │ │ ├── ARLightEstimate.cs │ │ ├── ARLightEstimate.cs.meta │ │ ├── ARPlaneAnchor.cs │ │ ├── ARPlaneAnchor.cs.meta │ │ ├── ARPlaneAnchorAlignment.cs │ │ ├── ARPlaneAnchorAlignment.cs.meta │ │ ├── ARPoint.cs │ │ ├── ARPoint.cs.meta │ │ ├── ARRect.cs │ │ ├── ARRect.cs.meta │ │ ├── ARSessionNative.mm │ │ ├── ARSessionNative.mm.meta │ │ ├── ARSize.cs │ │ ├── ARSize.cs.meta │ │ ├── ARTextureHandles.cs │ │ ├── ARTextureHandles.cs.meta │ │ ├── ARTrackingQuality.cs │ │ ├── ARTrackingQuality.cs.meta │ │ ├── ARTrackingState.cs │ │ ├── ARTrackingState.cs.meta │ │ ├── ARTrackingStateReason.cs │ │ ├── ARTrackingStateReason.cs.meta │ │ ├── ARUserAnchor.cs │ │ ├── ARUserAnchor.cs.meta │ │ ├── ARVideoFormat.cs │ │ ├── ARVideoFormat.cs.meta │ │ ├── UnityARSessionNativeInterface.cs │ │ └── UnityARSessionNativeInterface.cs.meta │ │ ├── Shaders.meta │ │ └── Shaders │ │ ├── YUVShader.shader │ │ ├── YUVShader.shader.meta │ │ ├── YUVShaderLinear.shader │ │ └── YUVShaderLinear.shader.meta │ ├── Resources.meta │ ├── Resources │ ├── UnityARKitPlugin.meta │ └── UnityARKitPlugin │ │ ├── ARKitSettings.asset │ │ └── ARKitSettings.asset.meta │ ├── UnityARKitPluginSettings.cs │ └── UnityARKitPluginSettings.cs.meta ├── Images ├── 01.gif ├── 02.gif ├── 03.gif ├── 04.gif ├── 05.gif └── particle.gif ├── LICENSE ├── Packages └── manifest.json ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NavMeshLayers.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset └── UnityConnectSettings.asset ├── README.md └── particle.gif /Assets/FaceDeformation.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 238ad03552f024893a78abfb0b5c8487 3 | folderAsset: yes 4 | timeCreated: 1533722469 5 | licenseType: Pro 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0cb497108507c498886df5643ebe7283 3 | folderAsset: yes 4 | timeCreated: 1533722480 5 | licenseType: Pro 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Materials/FaceMat.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c44b8f56b94434a2fbf2c29d51c9eb30 3 | timeCreated: 1534177065 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 2100000 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Materials/FaceNoiseMat.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 78a9fab05cd8043878710189bfdf9d26 3 | timeCreated: 1534177065 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 2100000 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Materials/FaceSharpMat.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 859d05ae62ad748b7a02ff463889205d 3 | timeCreated: 1534177065 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 2100000 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Materials/FaceSmileMat.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c0bf9b111b6ed4a3caf97226e8e56298 3 | timeCreated: 1534177065 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 2100000 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Materials/Textures.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 93e52f9b00ddf4601b75576c1c1daea5 3 | folderAsset: yes 4 | timeCreated: 1534309826 5 | licenseType: Pro 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Materials/Textures/FaceDisplacement.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitasenjudesign/UnityARFaceDeformation/00a9a438e71b7f2742f83341582e709e2796f79d/Assets/FaceDeformation/Materials/Textures/FaceDisplacement.png -------------------------------------------------------------------------------- /Assets/FaceDeformation/Materials/Textures/FaceHole.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitasenjudesign/UnityARFaceDeformation/00a9a438e71b7f2742f83341582e709e2796f79d/Assets/FaceDeformation/Materials/Textures/FaceHole.png -------------------------------------------------------------------------------- /Assets/FaceDeformation/Materials/Textures/FaceSharp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitasenjudesign/UnityARFaceDeformation/00a9a438e71b7f2742f83341582e709e2796f79d/Assets/FaceDeformation/Materials/Textures/FaceSharp.png -------------------------------------------------------------------------------- /Assets/FaceDeformation/Materials/Textures/New Render Texture.renderTexture: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!84 &8400000 4 | RenderTexture: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: New Render Texture 9 | m_ImageContentsHash: 10 | serializedVersion: 2 11 | Hash: 00000000000000000000000000000000 12 | m_Width: 1218 13 | m_Height: 562 14 | m_AntiAliasing: 1 15 | m_DepthFormat: 2 16 | m_ColorFormat: 0 17 | m_MipMap: 0 18 | m_GenerateMips: 1 19 | m_SRGB: 0 20 | m_TextureSettings: 21 | serializedVersion: 2 22 | m_FilterMode: 1 23 | m_Aniso: 0 24 | m_MipBias: 0 25 | m_WrapU: 1 26 | m_WrapV: 1 27 | m_WrapW: 1 28 | m_Dimension: 2 29 | m_VolumeDepth: 1 30 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Materials/Textures/New Render Texture.renderTexture.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ed161974934aa498d8800f845d1a4082 3 | timeCreated: 1534174601 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 8400000 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Materials/YCbCr2RGB.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6c7ce5cee4ded4017a0bd132271012e8 3 | timeCreated: 1534175402 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 2100000 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Mesh.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 84732562c8dec4c38aa0bfac45acf54a 3 | folderAsset: yes 4 | timeCreated: 1537578833 5 | licenseType: Pro 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Mesh/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 002bbe197d1274c3587542b061c56b57 3 | folderAsset: yes 4 | timeCreated: 1537578926 5 | licenseType: Pro 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Mesh/Materials/No Name.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 310f9f0c108304e598ccd8d84d357afe 3 | timeCreated: 1537578926 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 2100000 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Mesh/cylinder.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitasenjudesign/UnityARFaceDeformation/00a9a438e71b7f2742f83341582e709e2796f79d/Assets/FaceDeformation/Mesh/cylinder.fbx -------------------------------------------------------------------------------- /Assets/FaceDeformation/Mesh/sphere.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitasenjudesign/UnityARFaceDeformation/00a9a438e71b7f2742f83341582e709e2796f79d/Assets/FaceDeformation/Mesh/sphere.fbx -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 366e93d92e19c4991a3dd7fc02ba708c 3 | folderAsset: yes 4 | timeCreated: 1533722506 5 | licenseType: Pro 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scenes/Sample.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 25bcb77176e574694bf29061ea86236e 3 | timeCreated: 1505775273 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scenes/_Copier.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 82469db0a3eda4f019d6095625264cde 3 | timeCreated: 1538193679 4 | licenseType: Pro 5 | DefaultImporter: 6 | externalObjects: {} 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scenes/_Duplicator.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 54c2ada3fce4c42fb9e54410d26e496a 3 | timeCreated: 1505775273 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scenes/_Particles.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1edd05cf36e86438484e0399b24a722e 3 | timeCreated: 1538193679 4 | licenseType: Pro 5 | DefaultImporter: 6 | externalObjects: {} 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8431a7ec4e7174cb78e283cad9ecf0b9 3 | folderAsset: yes 4 | timeCreated: 1533722490 5 | licenseType: Pro 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/copier.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0dfdb31c40d96493a96257114d99b1c5 3 | folderAsset: yes 4 | timeCreated: 1538193661 5 | licenseType: Pro 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/copier/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d5411e56614bb4cf889e664f83da8d0f 3 | folderAsset: yes 4 | timeCreated: 1538199005 5 | licenseType: Pro 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/copier/Materials/No Name.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3c584c6197faa49ebbb3add5cfe49338 3 | timeCreated: 1538199005 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 2100000 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/copier/ProjMat.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c4ba15a219471443eb2b68410b21f5d8 3 | timeCreated: 1537706603 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 2100000 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/copier/ProjObj.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5d33de5cee544482bb5806a9dc6d2f72 3 | timeCreated: 1538194270 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/copier/ProjObj.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0beca4a1c34ef466699f2fb6e267793a 3 | timeCreated: 1538194274 4 | licenseType: Pro 5 | ShaderImporter: 6 | externalObjects: {} 7 | defaultTextures: [] 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/copier/ProjectionObjs.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e4b39e55a8386487f8dd36839266e847 3 | timeCreated: 1538194270 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/copier/fuck.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitasenjudesign/UnityARFaceDeformation/00a9a438e71b7f2742f83341582e709e2796f79d/Assets/FaceDeformation/Scripts/copier/fuck.fbx -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/duplicator.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b13e2fd0e3af94ca49a6b4d7992b9569 3 | folderAsset: yes 4 | timeCreated: 1534756270 5 | licenseType: Pro 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/duplicator/FaceData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e090715d1f22447ecb646b4e0f89dde9 3 | timeCreated: 1534756650 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/duplicator/FaceDuplicator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cbb79285ec60b4d98a2e08ea09b8db8a 3 | timeCreated: 1534756639 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/particles.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b40d9a9956b4e40ad827af6f9374ae6b 3 | folderAsset: yes 4 | timeCreated: 1538304132 5 | licenseType: Pro 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/particles/CGINC.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 94ae468677d044a6b8492588b9ffb593 3 | folderAsset: yes 4 | timeCreated: 1538304238 5 | licenseType: Pro 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/particles/CGINC/BillBoardCommon.cginc: -------------------------------------------------------------------------------- 1 | // Upgrade NOTE: replaced '_Object2World' with 'unity_ObjectToWorld' 2 | 3 | #ifndef BILLBOARD_INCLUDED 4 | #define BILLBOARD_INCLUDED 5 | 6 | float4 vPosBillboard(float4 pos, float2 uv, float size){ 7 | float4 center = pos; 8 | center.xy -= uv-0.5; 9 | half4 vPos = mul(UNITY_MATRIX_MV, center); 10 | vPos.xy += (uv-0.5)*size; 11 | return vPos; 12 | } 13 | 14 | float4 wPosOnePoleBillboard(float4 pos, float2 uv, float size){ 15 | float4 center = pos; 16 | center.xy -= uv-0.5; 17 | center = mul(unity_ObjectToWorld, center); 18 | 19 | float3 forward = normalize(_WorldSpaceCameraPos - center.xyz); 20 | float3 up = UNITY_MATRIX_V[1].xyz; 21 | float3 right = normalize(cross(forward, up)); 22 | up = normalize(cross(right, forward)); 23 | 24 | float3 wPos = center.xyz + ((uv.x-0.5) * right + (uv.y-0.5) * up)*size; 25 | return float4(wPos,1.0); 26 | } 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/particles/CGINC/BillBoardCommon.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: db7abd1f3de1c4877b35159b2060c8d8 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/particles/CGINC/ClassicNoise2D.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5731d4b607525477bb38464b1701940e 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/particles/CGINC/ClassicNoise3D.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dc0c2b664937f483b913ce2d7b39dc7c 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/particles/CGINC/ColorCollect.cginc: -------------------------------------------------------------------------------- 1 | #ifndef COLOR_COLLECT 2 | #define COLOR_COLLECT 3 | 4 | float3 rgb2hsv(float3 c) 5 | { 6 | float4 K = float4(0.0, -1.0 / 3.0, 2.0 / 3.0, -1.0); 7 | float4 p = lerp(float4(c.bg, K.wz), float4(c.gb, K.xy), step(c.b, c.g)); 8 | float4 q = lerp(float4(p.xyw, c.r), float4(c.r, p.yzx), step(p.x, c.r)); 9 | 10 | float d = q.x - min(q.w, q.y); 11 | float e = 1.0e-10; 12 | return float3(abs(q.z + (q.w - q.y) / (6.0 * d + e)), d / (q.x + e), q.x); 13 | } 14 | float3 hsv2rgb(float3 c) 15 | { 16 | float4 K = float4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0); 17 | float3 p = abs(frac(c.xxx + K.xyz) * 6.0 - K.www); 18 | return lerp(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y) * c.z; 19 | } 20 | 21 | //s:sourceColor, b:blendColor 22 | #define blendOverlay(s,b) (b < 0.5) ? (2.0 * s * b) : (1.0 - 2.0 * (1.0 - s) * (1.0 - b)) 23 | #define blendScreen(s,b) 1.0 - ((1.0 - s) * (1.0 - b)) 24 | 25 | #endif // COLOR_COLLECT 26 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/particles/CGINC/ColorCollect.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 214cb905c4e58416e96e37e695ef1efe 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/particles/CGINC/CoonsCurve.cginc: -------------------------------------------------------------------------------- 1 | #ifndef COONSCURVE_INCLUDED 2 | #define COONSCURVE_INCLUDED 3 | 4 | float3 coons(float t, float3 p0, float3 p1, float3 v0, float3 v1) 5 | { 6 | float3 a = 2*p0 - 2*p1 + v0 + v1; 7 | float3 b = -3*p0 + 3*p1 - 2*v0 - v1; 8 | 9 | float t2 = t*t; 10 | float t3 = t2*t; 11 | 12 | return a*t3 + b*t2 + v0*t + p0; 13 | } 14 | 15 | float2 coons(float t, float2 p0, float2 p1, float2 v0, float2 v1) 16 | { 17 | float2 a = 2*p0 - 2*p1 + v0 + v1; 18 | float2 b = -3*p0 + 3*p1 - 2*v0 - v1; 19 | 20 | float t2 = t*t; 21 | float t3 = t2*t; 22 | 23 | return a*t3 + b*t2 + v0*t + p0; 24 | } 25 | 26 | float coons(float t, float p0, float p1, float v0, float v1) 27 | { 28 | float a = 2*p0 - 2*p1 + v0 + v1; 29 | float b = -3*p0 + 3*p1 - 2*v0 - v1; 30 | 31 | float t2 = t*t; 32 | float t3 = t2*t; 33 | 34 | return a*t3 + b*t2 + v0*t + p0; 35 | } 36 | 37 | #endif -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/particles/CGINC/CoonsCurve.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c7ef4999583ab4beebe4c10f9c3605c9 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/particles/CGINC/NoiseMath.cginc: -------------------------------------------------------------------------------- 1 |  2 | // Ramp関数 3 | float Ramp(float r) 4 | { 5 | if (r >= 1.0) 6 | { 7 | return 1.0; 8 | } 9 | else if (r <= -1.0) 10 | { 11 | return -1.0; 12 | } 13 | else 14 | { 15 | // ((15.0 / 8.0) * r) - ((10.0 / 8.0) * (r * r * r)) + ((3.0 / 8.0) * (r * r * r * r * r)) 16 | return (1.875 * r) - (1.25 * (r * r * r)) + (0.375 * (r * r * r * r * r)); 17 | } 18 | } 19 | 20 | float Fade(float t) 21 | { 22 | return t * t * t * (t * (t * 6.0 - 15.0) + 10.0); 23 | } 24 | 25 | float Lerp(float t, float a, float b) 26 | { 27 | return a + t * (b - a); 28 | } 29 | 30 | float Grad(int hash, float x, float y, float z) 31 | { 32 | int h = hash & 15; 33 | float u = (h < 8) ? x : y; 34 | float v = (h < 4) ? y : (h == 12 || h == 14) ? x : z; 35 | return ((h & 1) == 0 ? u : -u) + ((h & 2) == 0 ? v : -v); 36 | } 37 | 38 | float Rand(float3 co) 39 | { 40 | return frac(sin(dot(co.xyz, float3(12.9898, 78.233, 56.787))) * 43758.5453); 41 | } -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/particles/CGINC/NoiseMath.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 43a6283d58afc4a3198487077e622d1c 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/particles/CGINC/PostBlendCommon.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 11cb02ca3cf7b4a5d976209a7be20332 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/particles/CGINC/Quaternion.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 16982f8b3f52b451791e4ed7a0a505b8 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/particles/CGINC/Random.cginc: -------------------------------------------------------------------------------- 1 | #ifndef RANDOM_INCLUDED 2 | #define RANDOM_INCLUDED 3 | 4 | float rand( float2 co ){ 5 | return frac(sin(dot(co.xy, float2(12.9898, 78.233))) * 43758.5453); 6 | } 7 | 8 | float3 rand3( float2 seed ){ 9 | float t = sin(seed.x + seed.y * 1e3); 10 | return float3(frac(t*1e4), frac(t*1e6), frac(t*1e5)); 11 | } 12 | 13 | #endif // RANDOM_INCLUDED 14 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/particles/CGINC/Random.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 58a6df997fc024b0a9f76839f9e35f28 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/particles/CGINC/SimplexNoise2D.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 13c03da1586494d94bd8fa9c35869dcc 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/particles/CGINC/SimplexNoise3D.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7d2e6abbc894d494cb35b994062a57ad 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/particles/CGINC/SimplexNoise3Db.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: db5b659d7956a440a9608128370ba0e0 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/particles/CGINC/Transform.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cf4f0e65fe3bb42099dc50e651807eab 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/particles/FaceDots.compute.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ec9cc9df40d384cb18127a1788f29e5b 3 | timeCreated: 1538304241 4 | licenseType: Pro 5 | ComputeShaderImporter: 6 | externalObjects: {} 7 | currentAPIMask: 65536 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/particles/FaceDots.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d0b2faf18b1a24323a2f1783effe2ff3 3 | timeCreated: 1538304238 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/particles/FaceDots.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 877c76755564e44ca8959a82be429308 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/particles/FaceDots.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5357016876a96433786ed0322782e51a 3 | timeCreated: 1538304240 4 | licenseType: Pro 5 | ShaderImporter: 6 | externalObjects: {} 7 | defaultTextures: [] 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/particles/Utils.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f5ec1a2663a974734b14e83e83b83b1d 3 | folderAsset: yes 4 | timeCreated: 1538304279 5 | licenseType: Pro 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/particles/Utils/RandomPointOnMesh.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | namespace Utils { 5 | 6 | public class RandomPointOnMesh { 7 | 8 | public static Vector3 Sample (Mesh mesh) { 9 | int[] triangles = mesh.triangles; 10 | int index = Mathf.FloorToInt(Random.value * ((triangles.Length) / 3)); 11 | Vector3 v0 = mesh.vertices[triangles[index * 3 + 0]]; 12 | Vector3 v1 = mesh.vertices[triangles[index * 3 + 1]]; 13 | Vector3 v2 = mesh.vertices[triangles[index * 3 + 2]]; 14 | return Vector3.Lerp(v0, Vector3.Lerp(v1, v2, Random.value), Random.value); 15 | } 16 | 17 | } 18 | 19 | } -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/particles/Utils/RandomPointOnMesh.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cbfe6f60a289a4c3c8af809af958ca78 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/sample.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1298bf49b4aca4dd891ce30aabf266c3 3 | folderAsset: yes 4 | timeCreated: 1534756258 5 | licenseType: Pro 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/sample/ExampleControl.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEngine.XR.iOS; 5 | 6 | public class ExampleControl : MonoBehaviour { 7 | 8 | [SerializeField] private Material[] _materials; 9 | [SerializeField] private Vector3[] _positions; 10 | [SerializeField] private Vector3[] _scales; 11 | [SerializeField] private FaceMeshManager _meshManager; 12 | 13 | [SerializeField] private GameObject _target; 14 | 15 | private int _count = 0; 16 | 17 | void Update(){ 18 | 19 | if(Input.GetKeyDown(KeyCode.Space)){ 20 | 21 | _count++; 22 | 23 | _count = _count%_materials.Length; 24 | _meshManager.SetFaceMat(_materials[_count]); 25 | 26 | _target.transform.localPosition = _positions[_count]; 27 | _target.transform.localScale = _scales[_count]; 28 | 29 | } 30 | 31 | } 32 | 33 | 34 | } -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/sample/ExampleControl.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3eb536f7842a546908a7f3bdc86179f0 3 | timeCreated: 1534308806 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/sample/FaceIndices.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e5319c8190f81475e8394d2543445da5 3 | timeCreated: 1533732123 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/sample/FaceMeshManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d5a8658a2446c434cb667d8e9fb7f39f 3 | timeCreated: 1533737678 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/sample/YCbCrToRGB.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEngine.XR.iOS; 5 | 6 | public class YCbCrToRGB : MonoBehaviour { 7 | 8 | [SerializeField] private RenderTexture _rgbTexture; 9 | [SerializeField] private UnityARVideo _unityArVideo; 10 | 11 | [SerializeField] private Shader _yCbCrShader; 12 | 13 | private Material _mat; 14 | 15 | //[SerializeField] private Material _faceMat; 16 | 17 | void Start(){ 18 | //Material material = new 19 | 20 | //Graphics.Blit(); 21 | //var m = new Material() 22 | _mat = new Material(_yCbCrShader); 23 | //blit wo kaku 24 | } 25 | 26 | void Update(){ 27 | 28 | _mat.SetMatrix("_DisplayTransform", _unityArVideo._displayTransform); 29 | _mat.SetTexture("_textureY", _unityArVideo._videoTextureY); 30 | _mat.SetTexture("_textureCbCr", _unityArVideo._videoTextureCbCr); 31 | 32 | Graphics.Blit(null,_rgbTexture,_mat); 33 | 34 | //_faceMat.SetMatrix("_DisplayTransform", _unityArVideo._displayTransform); 35 | //_faceMat.SetTexture("_MainTex",_rgbTexture ); 36 | } 37 | 38 | } -------------------------------------------------------------------------------- /Assets/FaceDeformation/Scripts/sample/YCbCrToRGB.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b1c399c89d52448f3a541640eb981411 3 | timeCreated: 1533731820 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Shaders.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 34cd3b04951b24ea6b7d8d61dde4c701 3 | folderAsset: yes 4 | timeCreated: 1534308806 5 | licenseType: Pro 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Shaders/FaceDeformation.shader: -------------------------------------------------------------------------------- 1 | 2 | Shader "Face/FaceDeformation" 3 | { 4 | Properties 5 | { 6 | _MainTex ("Texture", 2D) = "white" {} 7 | } 8 | 9 | SubShader 10 | { 11 | Pass 12 | { 13 | 14 | CGPROGRAM 15 | #pragma vertex vert 16 | #pragma fragment frag 17 | #include "UnityCG.cginc" 18 | 19 | struct appdata_t 20 | { 21 | float4 vertex : POSITION; 22 | float4 color : COLOR; 23 | float2 texcoord : TEXCOORD0; 24 | }; 25 | 26 | struct v2f 27 | { 28 | float4 vertex : POSITION; 29 | float4 color : COLOR; 30 | float2 texcoord : TEXCOORD0; 31 | float2 screenpos : TEXCOORD1; 32 | }; 33 | 34 | sampler2D _MainTex; 35 | float4x4 _displayMatrix; 36 | float4x4 _faceMatrix; 37 | 38 | v2f vert(appdata_t IN) 39 | { 40 | v2f OUT; 41 | 42 | OUT.vertex = UnityObjectToClipPos(IN.vertex); 43 | OUT.texcoord = IN.texcoord; 44 | OUT.color = IN.color; 45 | 46 | //移動ができなくなる 47 | //float4 facePosWorld = mul(UNITY_MATRIX_M, IN.vertex); 48 | //float4 pos = mul( UNITY_MATRIX_VP, facePosWorld ); 49 | 50 | float4 faceWorldPos = mul(_faceMatrix,IN.vertex); 51 | float4 faceProjPos = mul( UNITY_MATRIX_VP, faceWorldPos ); 52 | float4 faceScreenPos = ComputeScreenPos(faceProjPos); 53 | float2 uv = faceScreenPos.xy/faceScreenPos.w; 54 | 55 | OUT.screenpos = uv; 56 | return OUT; 57 | } 58 | 59 | // fragment shader 60 | fixed4 frag(v2f IN) : COLOR 61 | { 62 | 63 | float2 xy = IN.screenpos.xy; 64 | half4 c = tex2D(_MainTex, xy);// * IN.color; 65 | return c; 66 | 67 | } 68 | ENDCG 69 | } 70 | } 71 | 72 | 73 | } 74 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Shaders/FaceDeformation.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 41b24ff7b999140c0bb38477cc157d2f 3 | timeCreated: 1534176657 4 | licenseType: Pro 5 | ShaderImporter: 6 | externalObjects: {} 7 | defaultTextures: [] 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Shaders/FaceDeformationNoise.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 30b3713828e6340c8ac0d7b72f78473a 3 | timeCreated: 1534253546 4 | licenseType: Pro 5 | ShaderImporter: 6 | externalObjects: {} 7 | defaultTextures: [] 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Shaders/FaceDeformationSharp.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 65581dd86261f4e4c8e591659462ba25 3 | timeCreated: 1534257801 4 | licenseType: Pro 5 | ShaderImporter: 6 | externalObjects: {} 7 | defaultTextures: [] 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Shaders/FaceDeformationSmile.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 37c16026b003f43128f9616982ddb6ae 3 | timeCreated: 1534257801 4 | licenseType: Pro 5 | ShaderImporter: 6 | externalObjects: {} 7 | defaultTextures: [] 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Shaders/YCbCrToRGB.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 049a024bd5f4047648662d37e32bb951 3 | timeCreated: 1533735711 4 | licenseType: Pro 5 | ShaderImporter: 6 | externalObjects: {} 7 | defaultTextures: [] 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Shaders/noise.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5c476198e7f89442cb6cb532c1eb051a 3 | folderAsset: yes 4 | timeCreated: 1534177017 5 | licenseType: Pro 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Shaders/noise/ClassicNoise2D.hlsl.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 90c6f4b41c93e4e039ae05ae77a6304e 3 | timeCreated: 1519176685 4 | licenseType: Pro 5 | ShaderImporter: 6 | externalObjects: {} 7 | defaultTextures: [] 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Shaders/noise/ClassicNoise3D.hlsl.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e534b0b9402804691966b62b5af33b26 3 | timeCreated: 1519176685 4 | licenseType: Pro 5 | ShaderImporter: 6 | externalObjects: {} 7 | defaultTextures: [] 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Shaders/noise/NoiseTest.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aa7b49aee0aac4013822cfd6faf7f2ab 3 | timeCreated: 1519176685 4 | licenseType: Pro 5 | ShaderImporter: 6 | externalObjects: {} 7 | defaultTextures: [] 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Shaders/noise/SimplexNoise2D.hlsl.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 61c71b66357384dbda80dad4bdf41d78 3 | timeCreated: 1519176685 4 | licenseType: Pro 5 | ShaderImporter: 6 | externalObjects: {} 7 | defaultTextures: [] 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/FaceDeformation/Shaders/noise/SimplexNoise3D.hlsl.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7292aef6bb2e049bba8b4a343d3a460f 3 | timeCreated: 1519176685 4 | licenseType: Pro 5 | ShaderImporter: 6 | externalObjects: {} 7 | defaultTextures: [] 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: df38125cf15df453a98ce2d798a5e954 3 | folderAsset: yes 4 | timeCreated: 1501101795 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/ARKitRemote.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4d1259656ef6245079ba6548af0ab42e 3 | folderAsset: yes 4 | timeCreated: 1498669549 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/ARKitRemote/ARKITREMOTE.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e70a61590ae124a8194c71c31e1af531 3 | timeCreated: 1500609185 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/ARKitRemote/ARKitFaceTrackingRemoteConnection.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cdd3e34e30492409ea4e7aa626b21aa0 3 | timeCreated: 1513104962 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/ARKitRemote/ARKitRemoteConnection.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 004464ca939eb4ec1a1b492fb8ebfd12 3 | timeCreated: 1500571041 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/ARKitRemote/ARKitRemoteConnection.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8ce7d6271a01a4274a00066492aed04a 3 | timeCreated: 1500571318 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 100100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/ARKitRemote/ConnectToEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4b70a2d547e0544c983e2dec3bf61d46 3 | timeCreated: 1497387236 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/ARKitRemote/ConnectionMessageIds.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnityEngine.XR.iOS 4 | { 5 | public static class ConnectionMessageIds 6 | { 7 | public static Guid fromEditorARKitSessionMsgId { get { return new Guid("523bb5dd-163b-4e5b-9271-d18a50e8897e"); } } 8 | public static Guid updateCameraFrameMsgId { get { return new Guid("6d8c39bf-279a-46cf-91f4-9827a44443af"); } } 9 | public static Guid addPlaneAnchorMsgeId { get { return new Guid("a435cdb9-fa85-4d3c-9d3f-57fa85f62da3"); } } 10 | public static Guid updatePlaneAnchorMsgeId { get { return new Guid("84d5ad8d-e7f9-432c-ae5d-40717790a12f"); } } 11 | public static Guid removePlaneAnchorMsgeId { get { return new Guid("b07750a2-8825-4e86-9483-0b22b07df800"); } } 12 | public static Guid screenCaptureYMsgId { get { return new Guid("25c3d26f-72c5-4f3e-9a1f-c8c9b859453b"); } } 13 | public static Guid screenCaptureUVMsgId { get { return new Guid("d7f4d3cd-2d12-4ab7-b755-932fe7ab744d"); } } 14 | public static Guid addFaceAnchorMsgeId { get { return new Guid("7d7531e9-28b8-40b3-9afd-b6e7baa8e630"); } } 15 | public static Guid updateFaceAnchorMsgeId { get { return new Guid("80880c6e-d3f5-449a-9c8b-55c95b188563"); } } 16 | public static Guid removeFaceAnchorMsgeId { get { return new Guid("ba429c59-067e-4548-ab01-d7129f060872"); } } 17 | }; 18 | 19 | public static class SubMessageIds 20 | { 21 | public static Guid editorInitARKit { get { return new Guid("2e5d7c45-daef-474d-bf55-1f02f0a10b69"); } } 22 | public static Guid editorInitARKitFaceTracking { get { return new Guid("3e86ccf6-93c6-4b07-b78f-0a60f6ed4a7a"); } } 23 | }; 24 | } -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/ARKitRemote/ConnectionMessageIds.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a8aba40a0fa3e49b4a51b657765f5bf6 3 | timeCreated: 1498693329 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/ARKitRemote/EditorARFaceAnchor.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using System.Text; 5 | using UnityEngine.XR.iOS.Utils; 6 | 7 | 8 | namespace UnityEngine.XR.iOS 9 | { 10 | #if UNITY_EDITOR || !UNITY_IOS 11 | public class ARFaceGeometry 12 | { 13 | private serializableFaceGeometry sFaceGeometry; 14 | 15 | public ARFaceGeometry (serializableFaceGeometry ufg) 16 | { 17 | sFaceGeometry = ufg; 18 | } 19 | 20 | public int vertexCount { get { return sFaceGeometry.Vertices.Length; } } 21 | public int triangleCount { get { return sFaceGeometry.TriangleIndices.Length; } } 22 | public int textureCoordinateCount { get { return sFaceGeometry.TexCoords.Length; } } 23 | 24 | public Vector3 [] vertices { get { return sFaceGeometry.Vertices; } } 25 | 26 | public Vector2 [] textureCoordinates { get { return sFaceGeometry.TexCoords; } } 27 | 28 | public int [] triangleIndices { get { return sFaceGeometry.TriangleIndices; } } 29 | 30 | } 31 | 32 | public class ARFaceAnchor 33 | { 34 | serializableUnityARFaceAnchor m_sfa; 35 | 36 | public ARFaceAnchor(serializableUnityARFaceAnchor sfa) 37 | { 38 | m_sfa = sfa; 39 | } 40 | 41 | public string identifierStr { get { return Encoding.UTF8.GetString (m_sfa.identifierStr); } } 42 | 43 | public Matrix4x4 transform { get { return m_sfa.worldTransform; } } 44 | 45 | public ARFaceGeometry faceGeometry { get { return new ARFaceGeometry (m_sfa.faceGeometry); } } 46 | 47 | public Dictionary blendShapes { get { return m_sfa.arBlendShapes; } } 48 | 49 | public bool isTracked { get { return m_sfa.isTracked; } } 50 | 51 | } 52 | #endif 53 | } 54 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/ARKitRemote/EditorARFaceAnchor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d1aa34d80d3e0455ca018dfec2ad806d 3 | timeCreated: 1513192743 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/ARKitRemote/EditorARPlaneAnchor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d7917239de65543aabc5363138de68b8 3 | timeCreated: 1517369156 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/ARKitRemote/EditorHitTest.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | namespace UnityEngine.XR.iOS 6 | { 7 | 8 | public class EditorHitTest : MonoBehaviour { 9 | 10 | public Transform m_HitTransform; 11 | public float maxRayDistance = 30.0f; 12 | public LayerMask collisionLayerMask; 13 | 14 | #if UNITY_EDITOR //we will only use this script on the editor side, though there is nothing that would prevent it from working on device 15 | void Update () { 16 | if (Input.GetMouseButtonDown (0)) { 17 | Ray ray = Camera.main.ScreenPointToRay (Input.mousePosition); 18 | RaycastHit hit; 19 | 20 | //we'll try to hit one of the plane collider gameobjects that were generated by the plugin 21 | //effectively similar to calling HitTest with ARHitTestResultType.ARHitTestResultTypeExistingPlaneUsingExtent 22 | if (Physics.Raycast (ray, out hit, maxRayDistance, collisionLayerMask)) { 23 | //we're going to get the position from the contact point 24 | m_HitTransform.position = hit.point; 25 | Debug.Log (string.Format ("x:{0:0.######} y:{1:0.######} z:{2:0.######}", m_HitTransform.position.x, m_HitTransform.position.y, m_HitTransform.position.z)); 26 | 27 | //and the rotation from the transform of the plane collider 28 | m_HitTransform.rotation = hit.transform.rotation; 29 | } 30 | } 31 | } 32 | #endif 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/ARKitRemote/EditorHitTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6e5621b71c5c74d94ac88603287035e2 3 | timeCreated: 1504320319 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/ARKitRemote/EditorTestScene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e1efc0006a07a4fc8ab373ea6249a832 3 | timeCreated: 1497484703 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/ARKitRemote/ObjectSerializationExtension.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System.Runtime.Serialization.Formatters.Binary; 4 | using System.IO; 5 | 6 | namespace UnityEngine.XR.iOS.Utils 7 | { 8 | //Extension class to provide serialize / deserialize methods to object. 9 | //src: http://stackoverflow.com/questions/1446547/how-to-convert-an-object-to-a-byte-array-in-c-sharp 10 | //NOTE: You need add [Serializable] attribute in your class to enable serialization 11 | public static class ObjectSerializationExtension 12 | { 13 | 14 | public static byte[] SerializeToByteArray(this object obj) 15 | { 16 | if (obj == null) 17 | { 18 | return null; 19 | } 20 | var bf = new BinaryFormatter(); 21 | using (var ms = new MemoryStream()) 22 | { 23 | bf.Serialize(ms, obj); 24 | return ms.ToArray(); 25 | } 26 | } 27 | 28 | public static T Deserialize(this byte[] byteArray) where T : class 29 | { 30 | if (byteArray == null) 31 | { 32 | return null; 33 | } 34 | using (var memStream = new MemoryStream()) 35 | { 36 | var binForm = new BinaryFormatter(); 37 | memStream.Write(byteArray, 0, byteArray.Length); 38 | memStream.Seek(0, SeekOrigin.Begin); 39 | var obj = (T)binForm.Deserialize(memStream); 40 | return obj; 41 | } 42 | } 43 | } 44 | } -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/ARKitRemote/ObjectSerializationExtension.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 93eca58af117741f3be69b00a1cc4077 3 | timeCreated: 1498702127 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/ARKitRemote/SerializableObjects.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 80135f02c883b43c582626d2cd4d0190 3 | timeCreated: 1498702704 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/ARKitRemote/UnityARKitRemote.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3ed73c0c9d4b76a418a0541c0cefd3ac 3 | timeCreated: 1498647556 4 | licenseType: Pro 5 | DefaultImporter: 6 | externalObjects: {} 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/ARKitRemote/UnityRemoteVideo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cdf0c6a69131b44f5bdb35de994fcea1 3 | timeCreated: 1499380179 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a143135f16d634fa9ba945abac98f63c 3 | folderAsset: yes 4 | timeCreated: 1496972798 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/ARKit1.5.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a01e87b51a8094ac78a016f24aa36126 3 | folderAsset: yes 4 | timeCreated: 1517350660 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/ARKit1.5/UnityARImageAnchor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 22fdc45d7403c4fa4b40da55963ffcf1 3 | folderAsset: yes 4 | timeCreated: 1517621849 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/ARKit1.5/UnityARImageAnchor/ARImagesSet_UnityLogo.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_GameObject: {fileID: 0} 9 | m_Enabled: 1 10 | m_EditorHideFlags: 0 11 | m_Script: {fileID: 11500000, guid: 1c37f7746917f4760aa00e7ff7fd81dc, type: 3} 12 | m_Name: ARImagesSet_UnityLogo 13 | m_EditorClassIdentifier: 14 | resourceGroupName: AR Rezources 15 | referenceImages: 16 | - {fileID: 11400000, guid: 9d6cedfb4c48647ca9007fb8cb8aa6b0, type: 2} 17 | - {fileID: 11400000, guid: fa9c5deee83494083beea0977b5302c2, type: 2} 18 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/ARKit1.5/UnityARImageAnchor/ARImagesSet_UnityLogo.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 99f631f78c5d14f8cb9cc4e02da07eee 3 | timeCreated: 1518054548 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 11400000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/ARKit1.5/UnityARImageAnchor/GenerateImageAnchor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4b2be1c5634b84e8080b2a2491eca344 3 | timeCreated: 1517621953 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/ARKit1.5/UnityARImageAnchor/ReferenceImages.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cfa39a9dbef344f5393dc1f3a82e9d79 3 | folderAsset: yes 4 | timeCreated: 1517947942 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/ARKit1.5/UnityARImageAnchor/ReferenceImages/unitylogoblackonwhite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitasenjudesign/UnityARFaceDeformation/00a9a438e71b7f2742f83341582e709e2796f79d/Assets/UnityARKitPlugin/Examples/ARKit1.5/UnityARImageAnchor/ReferenceImages/unitylogoblackonwhite.png -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/ARKit1.5/UnityARImageAnchor/ReferenceImages/unitylogowhiteonblack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitasenjudesign/UnityARFaceDeformation/00a9a438e71b7f2742f83341582e709e2796f79d/Assets/UnityARKitPlugin/Examples/ARKit1.5/UnityARImageAnchor/ReferenceImages/unitylogowhiteonblack.png -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/ARKit1.5/UnityARImageAnchor/UnityARImageAnchor.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: befc06ba4fe0046439ef5dac5a33c0e7 3 | timeCreated: 1517621937 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/ARKit1.5/UnityARImageAnchor/UnityLogoReferenceImage.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_GameObject: {fileID: 0} 9 | m_Enabled: 1 10 | m_EditorHideFlags: 0 11 | m_Script: {fileID: 11500000, guid: 0414577f9c6b244e696949154859a4af, type: 3} 12 | m_Name: UnityLogoReferenceImage 13 | m_EditorClassIdentifier: 14 | imageName: unitylogoreferenceimage 15 | imageTexture: {fileID: 2800000, guid: 7623d0c49e25a41139b08b7d6f89d95c, type: 3} 16 | physicalSize: 0.06 17 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/ARKit1.5/UnityARImageAnchor/UnityLogoReferenceImage.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fa9c5deee83494083beea0977b5302c2 3 | timeCreated: 1520468043 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 11400000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/ARKit1.5/UnityARImageAnchor/UnityLogoWhiteOnBlack.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_GameObject: {fileID: 0} 9 | m_Enabled: 1 10 | m_EditorHideFlags: 0 11 | m_Script: {fileID: 11500000, guid: 0414577f9c6b244e696949154859a4af, type: 3} 12 | m_Name: UnityLogoWhiteOnBlack 13 | m_EditorClassIdentifier: 14 | imageName: unitywhiteonblack 15 | imageTexture: {fileID: 2800000, guid: 6555c379d9fde4526acf041ad664b57d, type: 3} 16 | physicalSize: 0.06 17 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/ARKit1.5/UnityARImageAnchor/UnityLogoWhiteOnBlack.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9d6cedfb4c48647ca9007fb8cb8aa6b0 3 | timeCreated: 1518054500 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 11400000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/ARKit1.5/UnityARKitRelocalize.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bfeeb4a56cb7c4f9d8964859ba274911 3 | folderAsset: yes 4 | timeCreated: 1517350675 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/ARKit1.5/UnityARKitRelocalize/RelocalizationControl.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEngine.UI; 5 | using UnityEngine.XR.iOS; 6 | 7 | public class RelocalizationControl : MonoBehaviour { 8 | 9 | public Text buttonText; 10 | public Text trackingStateText; 11 | public Text trackingReasonText; 12 | 13 | // Use this for initialization 14 | void Start () { 15 | UnityARSessionNativeInterface.ARSessionShouldAttemptRelocalization = false; 16 | UpdateText (); 17 | 18 | UnityARSessionNativeInterface.ARSessionTrackingChangedEvent += TrackingChanged; 19 | } 20 | 21 | // Update is called once per frame 22 | void Update () { 23 | 24 | } 25 | 26 | void TrackingChanged(UnityARCamera cam) 27 | { 28 | trackingStateText.text = cam.trackingState.ToString (); 29 | trackingReasonText.text = cam.trackingReason.ToString (); 30 | } 31 | 32 | void OnDestroy() 33 | { 34 | UnityARSessionNativeInterface.ARSessionTrackingChangedEvent -= TrackingChanged; 35 | } 36 | 37 | void UpdateText() 38 | { 39 | buttonText.text = UnityARSessionNativeInterface.ARSessionShouldAttemptRelocalization ? "SHOULD RELOCALIZE" : "NO RELOCALIZE"; 40 | } 41 | 42 | public void ToggleRelocalization() 43 | { 44 | UnityARSessionNativeInterface.ARSessionShouldAttemptRelocalization = !UnityARSessionNativeInterface.ARSessionShouldAttemptRelocalization; 45 | UpdateText (); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/ARKit1.5/UnityARKitRelocalize/RelocalizationControl.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eac3ceb65349d46409ef81d356324ffb 3 | timeCreated: 1517350960 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/ARKit1.5/UnityARKitRelocalize/UnityARKitRelocalize.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d44ef812aa5c94b71884c70a9518c644 3 | timeCreated: 1517350701 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/ARKit1.5/UnityARPlaneMesh.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c21c1506d16bb4a12b0779f54965b0ef 3 | folderAsset: yes 4 | timeCreated: 1517429400 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/ARKit1.5/UnityARPlaneMesh/ARKitPlaneMeshRender.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e8e41ddf2dd3348c18a8734d14dbb2ba 3 | timeCreated: 1517429452 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/ARKit1.5/UnityARPlaneMesh/UnityARPlaneMesh.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 80858f7f97efd46c1ae3ee51a3134eef 3 | timeCreated: 1517431928 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/ARKit1.5/UnityARSetWorldOrigin.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7926aaa6453dd4c7f8a6c1490bf4c261 3 | folderAsset: yes 4 | timeCreated: 1518205629 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/ARKit1.5/UnityARSetWorldOrigin/SetWorldOriginControl.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEngine.UI; 5 | using UnityEngine.XR.iOS; 6 | 7 | public class SetWorldOriginControl : MonoBehaviour { 8 | 9 | public Camera arCamera; 10 | public Text positionText; 11 | public Text rotationText; 12 | 13 | 14 | // Update is called once per frame 15 | void Update () { 16 | positionText.text = "Camera position=" + arCamera.transform.position.ToString (); 17 | rotationText.text = "Camera rotation=" + arCamera.transform.rotation.ToString (); 18 | } 19 | 20 | public void SetWorldOrigin() 21 | { 22 | UnityARSessionNativeInterface.GetARSessionNativeInterface().SetWorldOrigin (arCamera.transform); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/ARKit1.5/UnityARSetWorldOrigin/SetWorldOriginControl.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9617a86a116b6451da2a58f5828678d7 3 | timeCreated: 1518205921 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/ARKit1.5/UnityARSetWorldOrigin/UnityARSetWorldOrigin.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3a34cd3250ee14e1c802e3b4aed373c8 3 | timeCreated: 1518205870 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/ARKit1.5/UnityARVideoFormats.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8426060d697694fdd83c1305e3d42641 3 | folderAsset: yes 4 | timeCreated: 1518223278 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/ARKit1.5/UnityARVideoFormats/UnityARVideoFormats.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a88a66a31e1c640bb8f6592ac0e4ee7f 3 | timeCreated: 1518290295 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/ARKit1.5/UnityARVideoFormats/VideoFormatButton.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEngine.UI; 5 | using UnityEngine.XR.iOS; 6 | 7 | public class VideoFormatButton : MonoBehaviour { 8 | 9 | public Text videoFormatDescription; 10 | private UnityARVideoFormat arVideoFormat; 11 | 12 | public delegate void VideoFormatButtonPressed(UnityARVideoFormat videoFormat); 13 | public static event VideoFormatButtonPressed FormatButtonPressedEvent; 14 | 15 | public void Populate(UnityARVideoFormat videoFormat) 16 | { 17 | arVideoFormat = videoFormat; 18 | videoFormatDescription.text = "VideoFormat Resolution: " + videoFormat.imageResolutionWidth + "x" + videoFormat.imageResolutionHeight + " FPS: " + videoFormat.framesPerSecond; 19 | } 20 | 21 | public void ButtonPressed() 22 | { 23 | if (FormatButtonPressedEvent != null) { 24 | FormatButtonPressedEvent.Invoke (arVideoFormat); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/ARKit1.5/UnityARVideoFormats/VideoFormatButton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2dc7312ca3b1549c6b07084d70ec4345 3 | timeCreated: 1518290389 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/ARKit1.5/UnityARVideoFormats/VideoFormatsExample.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f8733413e47b0493a8897e36a496df50 3 | timeCreated: 1518224302 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/AddRemoveAnchorExample.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0a88daffac7ad42debbc62feb726fe89 3 | folderAsset: yes 4 | timeCreated: 1499364808 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/AddRemoveAnchorExample/AddRemoveAnchorScene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c59061d8b0a364aa58f20007a956f23a 3 | timeCreated: 1499365892 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/AddRemoveAnchorExample/RandomCube.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2c5f8d679f3e64a40a967471f4fa7030 3 | timeCreated: 1499371804 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 100100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/AddRemoveAnchorExample/UnityARUserAnchorExample.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 677b99d7d687d4052a5c5e8006696910 3 | timeCreated: 1499374237 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 99a3c390b086e41bcae2b94fee5d253a 3 | folderAsset: yes 4 | timeCreated: 1503626045 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 80ed123283a674013aef17bc2c431e8b 3 | folderAsset: yes 4 | timeCreated: 1503626045 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Materials/2000px-Checkerboard_pattern.svg.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 48f9ec19142bd7e4c9f2441ab5799cca 3 | timeCreated: 1489779706 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Materials/2000px-Checkerboard_patternUV.svg.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 66fbc43c67b564bb4a4c2c2dcd6c1970 3 | timeCreated: 1489779706 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Materials/ARKitPlaneMesh.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 04845b76859034d95b1487d887525145 3 | timeCreated: 1517432121 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Materials/BallMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f5e394a942fae453583e8e6009ee49a1 3 | timeCreated: 1496972319 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Materials/MeshBorder.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 78f2880d33df84ede869907822bbb8c4 3 | timeCreated: 1517447583 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Materials/Plane Physic Material.physicMaterial: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!134 &13400000 4 | PhysicMaterial: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: Plane Physic Material 9 | dynamicFriction: 0.5 10 | staticFriction: 0.5 11 | bounciness: 0.1 12 | frictionCombine: 0 13 | bounceCombine: 0 14 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Materials/Plane Physic Material.physicMaterial.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: beba2f308446f43da8e82c54f30f93b5 3 | timeCreated: 1496984011 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 13400000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Materials/PlayerMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3ea44298aa419344dbdcf87dd1a50533 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Materials/PointCloudMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3a044f7471feb4bd4be40dcec09eae05 3 | timeCreated: 1493918099 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Materials/PointCloudParticleMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f7cffc03fadd142ea81401e16399833e 3 | timeCreated: 1493918099 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Materials/RTBack.renderTexture: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!84 &8400000 4 | RenderTexture: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: RTBack 9 | m_ImageContentsHash: 10 | serializedVersion: 2 11 | Hash: 00000000000000000000000000000000 12 | m_Width: 256 13 | m_Height: 256 14 | m_AntiAliasing: 1 15 | m_DepthFormat: 2 16 | m_ColorFormat: 0 17 | m_MipMap: 0 18 | m_GenerateMips: 1 19 | m_SRGB: 0 20 | m_TextureSettings: 21 | m_FilterMode: 1 22 | m_Aniso: 0 23 | m_MipBias: 0 24 | m_WrapMode: 1 25 | m_Dimension: 2 26 | m_VolumeDepth: 1 27 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Materials/RTBack.renderTexture.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8bf5451fa758d4c7cb976751e582bdc5 3 | timeCreated: 1509125000 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 8400000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Materials/RTBottom.renderTexture: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!84 &8400000 4 | RenderTexture: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: RTBottom 9 | m_ImageContentsHash: 10 | serializedVersion: 2 11 | Hash: 00000000000000000000000000000000 12 | m_Width: 256 13 | m_Height: 256 14 | m_AntiAliasing: 1 15 | m_DepthFormat: 2 16 | m_ColorFormat: 0 17 | m_MipMap: 0 18 | m_GenerateMips: 1 19 | m_SRGB: 0 20 | m_TextureSettings: 21 | m_FilterMode: 1 22 | m_Aniso: 0 23 | m_MipBias: 0 24 | m_WrapMode: 1 25 | m_Dimension: 2 26 | m_VolumeDepth: 1 27 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Materials/RTBottom.renderTexture.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f547bf7e1be7a4cd794d316baa8f21fb 3 | timeCreated: 1509125000 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 8400000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Materials/RTFront.renderTexture: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!84 &8400000 4 | RenderTexture: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: RTFront 9 | m_ImageContentsHash: 10 | serializedVersion: 2 11 | Hash: 00000000000000000000000000000000 12 | m_Width: 256 13 | m_Height: 256 14 | m_AntiAliasing: 1 15 | m_DepthFormat: 2 16 | m_ColorFormat: 0 17 | m_MipMap: 0 18 | m_GenerateMips: 1 19 | m_SRGB: 0 20 | m_TextureSettings: 21 | m_FilterMode: 1 22 | m_Aniso: 0 23 | m_MipBias: 0 24 | m_WrapMode: 1 25 | m_Dimension: 2 26 | m_VolumeDepth: 1 27 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Materials/RTFront.renderTexture.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e4a4722373175490a93a7956b23953ec 3 | timeCreated: 1509125000 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 8400000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Materials/RTLeft.renderTexture: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!84 &8400000 4 | RenderTexture: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: RTLeft 9 | m_ImageContentsHash: 10 | serializedVersion: 2 11 | Hash: 00000000000000000000000000000000 12 | m_Width: 256 13 | m_Height: 256 14 | m_AntiAliasing: 1 15 | m_DepthFormat: 2 16 | m_ColorFormat: 0 17 | m_MipMap: 0 18 | m_GenerateMips: 1 19 | m_SRGB: 0 20 | m_TextureSettings: 21 | m_FilterMode: 1 22 | m_Aniso: 0 23 | m_MipBias: 0 24 | m_WrapMode: 1 25 | m_Dimension: 2 26 | m_VolumeDepth: 1 27 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Materials/RTLeft.renderTexture.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a9121db1a6b1c443fb39767c96cb1ed3 3 | timeCreated: 1509125000 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 8400000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Materials/RTRight.renderTexture: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!84 &8400000 4 | RenderTexture: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: RTRight 9 | m_ImageContentsHash: 10 | serializedVersion: 2 11 | Hash: 00000000000000000000000000000000 12 | m_Width: 256 13 | m_Height: 256 14 | m_AntiAliasing: 1 15 | m_DepthFormat: 2 16 | m_ColorFormat: 0 17 | m_MipMap: 0 18 | m_GenerateMips: 1 19 | m_SRGB: 0 20 | m_TextureSettings: 21 | m_FilterMode: 1 22 | m_Aniso: 0 23 | m_MipBias: 0 24 | m_WrapMode: 1 25 | m_Dimension: 2 26 | m_VolumeDepth: 1 27 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Materials/RTRight.renderTexture.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a9492362d6426443583dcad13f6515da 3 | timeCreated: 1509125000 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 8400000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Materials/RTTop.renderTexture: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!84 &8400000 4 | RenderTexture: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: RTTop 9 | m_ImageContentsHash: 10 | serializedVersion: 2 11 | Hash: 00000000000000000000000000000000 12 | m_Width: 256 13 | m_Height: 256 14 | m_AntiAliasing: 1 15 | m_DepthFormat: 2 16 | m_ColorFormat: 0 17 | m_MipMap: 0 18 | m_GenerateMips: 1 19 | m_SRGB: 0 20 | m_TextureSettings: 21 | m_FilterMode: 1 22 | m_Aniso: 0 23 | m_MipBias: 0 24 | m_WrapMode: 1 25 | m_Dimension: 2 26 | m_VolumeDepth: 1 27 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Materials/RTTop.renderTexture.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4bf99f420eecb4d14841917a1a5830fe 3 | timeCreated: 1509125000 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 8400000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Materials/SphereMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: df83d7f64be1a4ef7b2c936b6de3c7a0 3 | timeCreated: 1509045622 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Materials/XColor.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aaae8be92ba59487a9946818d7a2017f 3 | timeCreated: 1493855225 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Materials/YColor.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8fa2e9e7c08844dd4a8d581610839228 3 | timeCreated: 1493855225 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Materials/ZColor.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d55ccb0db00e54a1696c1e96094d706d 3 | timeCreated: 1493855225 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Materials/debugPlaneMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b36939cf153274ec29fbf2f10d0a49d7 3 | timeCreated: 1492715747 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Materials/occlusionPlaneMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 25eeebe0578974575aac9f24b4ede717 3 | timeCreated: 1497288096 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Materials/shadowPlaneMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 16f11da3beeaf498f8526286a295a38e 3 | timeCreated: 1497288096 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Models.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a7bb5a53dd8ac49759db6bf17162dd20 3 | folderAsset: yes 4 | timeCreated: 1503626045 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Models/Characters.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a2db6ed60f35771478d3b31828b24fe8 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Models/Characters/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9e9efecd428e54b9aabf3e5fc4fbc526 3 | folderAsset: yes 4 | timeCreated: 1501101803 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Models/Characters/Materials/GunMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fb5e14eb1d53543c2a0f0fb4f0bedcd8 3 | timeCreated: 1501101803 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Models/Characters/Player.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitasenjudesign/UnityARFaceDeformation/00a9a438e71b7f2742f83341582e709e2796f79d/Assets/UnityARKitPlugin/Examples/Common/Models/Characters/Player.fbx -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6c232e85bbf134253ab599b8e50e5913 3 | folderAsset: yes 4 | timeCreated: 1503626045 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Prefabs/ARKitPlaneGeometry.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 24a8c4888599c4670ba129e2f2345e92 3 | timeCreated: 1517432446 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 100100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Prefabs/AxesPrefab.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8855f6e449b9d4d3fae7f0a1a5ff9c2f 3 | timeCreated: 1505951457 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 100100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Prefabs/BallPrefab.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e11b49885a57845e3b22a6355928ed72 3 | timeCreated: 1496972639 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 100100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Prefabs/CollSphere.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 772733b9aeeb7481ea21ab0986f34715 3 | timeCreated: 1496987653 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 100100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Prefabs/ParticlePainterPrefab.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 200646a121c9c46f69245ca2c1b789ee 3 | timeCreated: 1494016471 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 100100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Prefabs/ParticlePrefab.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 87db9decf4b3e4cb8bf3eea22ccd37f5 3 | timeCreated: 1494009634 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 100100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Prefabs/PointCloudPrefab.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 02d2a544d8d594d30b790e76398d0873 3 | timeCreated: 1493917937 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 100100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Prefabs/VideoFormatButton.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 95c6bff2dfc164406901450885b965af 3 | timeCreated: 1518224083 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 100100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Prefabs/collisionPlanePrefab.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 813dd14a7826b4795823dd39ac4cc050 3 | timeCreated: 1492718811 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 100100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Prefabs/cube.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9c8a1fc58df6b4d8c8c68e2883659c8a 3 | timeCreated: 1520468628 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 100100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Prefabs/debugPlanePrefab.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f879aaf3eeb0c467eb22cbaf08dc97a4 3 | timeCreated: 1492718811 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 100100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Prefabs/occlusionPlanePrefab.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9eb96f002ffce4560879b18f2e0502e5 3 | timeCreated: 1497394239 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 100100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Prefabs/shadowPlanePrefab.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 696855730620a483c9ae4c242e312b28 3 | timeCreated: 1497394239 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 100100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Shaders.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 74f51f2576219447b8322610cbd17b01 3 | folderAsset: yes 4 | timeCreated: 1503626045 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Shaders/InstancedSurfaceShader.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aef340cb91e534f40870ff658a7aecee 3 | timeCreated: 1496974206 4 | licenseType: Pro 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Shaders/MobileARShadow.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: abcf973b8dc974208a882fe4b8c6b73f 3 | timeCreated: 1497394336 4 | licenseType: Pro 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Shaders/MobileOcclusion.shader: -------------------------------------------------------------------------------- 1 | Shader "Custom/MobileOcclusion" 2 | { 3 | SubShader { 4 | Pass { 5 | // Render the Occlusion shader before all 6 | // opaque geometry to prime the depth buffer. 7 | Tags { "Queue"="Geometry" } 8 | 9 | ZWrite On 10 | ZTest LEqual 11 | ColorMask 0 12 | 13 | CGPROGRAM 14 | #pragma vertex vert 15 | #pragma fragment frag 16 | 17 | #include "UnityCG.cginc" 18 | 19 | struct appdata 20 | { 21 | float4 vertex : POSITION; 22 | }; 23 | 24 | struct v2f 25 | { 26 | float4 position : SV_POSITION; 27 | }; 28 | 29 | v2f vert (appdata input) 30 | { 31 | v2f output; 32 | 33 | output.position = UnityObjectToClipPos(input.vertex); 34 | return output; 35 | } 36 | 37 | fixed4 frag (v2f input) : SV_Target 38 | { 39 | return fixed4(0.5, 0.3, 0.0, 1.0); 40 | } 41 | ENDCG 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Shaders/MobileOcclusion.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1e5df5a56a7624e0981993663cf33154 3 | timeCreated: 1498679026 4 | licenseType: Pro 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Textures.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 52d64d946d6be4c8aa622c3f5e6bf042 3 | folderAsset: yes 4 | timeCreated: 1503626045 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Textures/PlayerDiffuse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitasenjudesign/UnityARFaceDeformation/00a9a438e71b7f2742f83341582e709e2796f79d/Assets/UnityARKitPlugin/Examples/Common/Textures/PlayerDiffuse.png -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Textures/PlayerDiffuse.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a3cc890ba79fb47449fb51893aa9b363 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 1024 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 0 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 0 46 | textureType: -1 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Textures/PlayerNormals.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitasenjudesign/UnityARFaceDeformation/00a9a438e71b7f2742f83341582e709e2796f79d/Assets/UnityARKitPlugin/Examples/Common/Textures/PlayerNormals.png -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Textures/PlayerNormals.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d98be175031405b4fb3f6a5f459a22e4 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 1 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 1 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 1024 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 0 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 0 46 | textureType: 1 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Textures/PlayerOcclusion.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitasenjudesign/UnityARFaceDeformation/00a9a438e71b7f2742f83341582e709e2796f79d/Assets/UnityARKitPlugin/Examples/Common/Textures/PlayerOcclusion.png -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Textures/PlayerOcclusion.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ae2af98f5c9f0243806bfb6ccbbdd19 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 1024 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 0 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 0 46 | textureType: -1 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Textures/PlayerSpecular.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitasenjudesign/UnityARFaceDeformation/00a9a438e71b7f2742f83341582e709e2796f79d/Assets/UnityARKitPlugin/Examples/Common/Textures/PlayerSpecular.tif -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Textures/PlayerSpecular.tif.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bc9b1c6383841ea4f9e532a49c651ff6 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 2048 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 0 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 0 46 | textureType: -1 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Textures/checker_large UV.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitasenjudesign/UnityARFaceDeformation/00a9a438e71b7f2742f83341582e709e2796f79d/Assets/UnityARKitPlugin/Examples/Common/Textures/checker_large UV.gif -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Textures/debugPlaneTile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitasenjudesign/UnityARFaceDeformation/00a9a438e71b7f2742f83341582e709e2796f79d/Assets/UnityARKitPlugin/Examples/Common/Textures/debugPlaneTile.png -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/Common/Textures/unitylogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitasenjudesign/UnityARFaceDeformation/00a9a438e71b7f2742f83341582e709e2796f79d/Assets/UnityARKitPlugin/Examples/Common/Textures/unitylogo.png -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/FaceTracking.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 669335d2fe29243de91f7a0d430b31f9 3 | folderAsset: yes 4 | timeCreated: 1505775209 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/FaceTracking/ARCameraTracker.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEngine.XR.iOS; 5 | 6 | public class ARCameraTracker : MonoBehaviour { 7 | 8 | [SerializeField] 9 | private Camera trackedCamera; 10 | 11 | private bool sessionStarted = false; 12 | 13 | // Use this for initialization 14 | void Start () { 15 | UnityARSessionNativeInterface.ARFrameUpdatedEvent += FirstFrameUpdate; 16 | } 17 | 18 | void OnDestroy() 19 | { 20 | } 21 | 22 | void FirstFrameUpdate(UnityARCamera cam) 23 | { 24 | sessionStarted = true; 25 | UnityARSessionNativeInterface.ARFrameUpdatedEvent -= FirstFrameUpdate; 26 | } 27 | 28 | // Update is called once per frame 29 | void Update () { 30 | if (trackedCamera != null && sessionStarted) { 31 | Matrix4x4 cameraPose = UnityARSessionNativeInterface.GetARSessionNativeInterface ().GetCameraPose (); 32 | trackedCamera.transform.localPosition = UnityARMatrixOps.GetPosition (cameraPose); 33 | trackedCamera.transform.localRotation = UnityARMatrixOps.GetRotation (cameraPose); 34 | 35 | trackedCamera.projectionMatrix = UnityARSessionNativeInterface.GetARSessionNativeInterface ().GetCameraProjection (); 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/FaceTracking/ARCameraTracker.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 961e52c3648614224b2a9dffa3055c07 3 | timeCreated: 1505866337 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/FaceTracking/BlendshapeDriver.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEngine.XR.iOS; 5 | 6 | public class BlendshapeDriver : MonoBehaviour { 7 | 8 | SkinnedMeshRenderer skinnedMeshRenderer; 9 | Dictionary currentBlendShapes; 10 | 11 | // Use this for initialization 12 | void Start () { 13 | skinnedMeshRenderer = GetComponent (); 14 | 15 | if (skinnedMeshRenderer) { 16 | UnityARSessionNativeInterface.ARFaceAnchorAddedEvent += FaceAdded; 17 | UnityARSessionNativeInterface.ARFaceAnchorUpdatedEvent += FaceUpdated; 18 | } 19 | } 20 | 21 | void FaceAdded (ARFaceAnchor anchorData) 22 | { 23 | currentBlendShapes = anchorData.blendShapes; 24 | } 25 | 26 | void FaceUpdated (ARFaceAnchor anchorData) 27 | { 28 | currentBlendShapes = anchorData.blendShapes; 29 | } 30 | 31 | 32 | // Update is called once per frame 33 | void Update () { 34 | 35 | if (currentBlendShapes != null) { 36 | foreach(KeyValuePair kvp in currentBlendShapes) 37 | { 38 | int blendShapeIndex = skinnedMeshRenderer.sharedMesh.GetBlendShapeIndex ("blendShape2." + kvp.Key); 39 | if (blendShapeIndex >= 0 ) { 40 | skinnedMeshRenderer.SetBlendShapeWeight (blendShapeIndex, kvp.Value * 100.0f); 41 | } 42 | } 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/FaceTracking/BlendshapeDriver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b4b0f477e0af343a89cdf372c8f19c89 3 | timeCreated: 1510188584 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/FaceTracking/BlendshapePrinter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bc6438cd254de46d9aab501d3d1660b4 3 | timeCreated: 1506122750 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/FaceTracking/FaceAnchorScene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 46e299c2ec1244fbaa1b9b14e2ab198a 3 | timeCreated: 1505775273 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/FaceTracking/FaceBlendshapeScene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 74c2619dd419d4704bba49146f77161d 3 | timeCreated: 1505775273 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/FaceTracking/FaceBlendshapeSloth.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b9bc483a4023d4829a88ddc3adff3caf 3 | timeCreated: 1510188488 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/FaceTracking/FaceDirectionalLightEstimate.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 360fd35caee4f4e069485021a27c0b06 3 | timeCreated: 1507762821 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/FaceTracking/FaceMeshScene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e95b28d2a95b34b868e407dc86a3e6d2 3 | timeCreated: 1505775273 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/FaceTracking/SlothCharacter.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9e6346a0e785540a49eaae82317b2dfd 3 | folderAsset: yes 4 | timeCreated: 1510601314 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/FaceTracking/SlothCharacter/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 82967c9358aa34ec6a0f6e29750c642a 3 | folderAsset: yes 4 | timeCreated: 1511933011 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/FaceTracking/SlothCharacter/Materials/sloth_all_1001_AlbedoTransparency.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0eafc0c8e166e4cd2b0f64b71fda0c45 3 | timeCreated: 1511933011 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/FaceTracking/SlothCharacter/Textures.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a488c610893e64a3289258a99af35e31 3 | folderAsset: yes 4 | timeCreated: 1510204871 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/FaceTracking/SlothCharacter/Textures/sloth_all_1001_AlbedoTransparency.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitasenjudesign/UnityARFaceDeformation/00a9a438e71b7f2742f83341582e709e2796f79d/Assets/UnityARKitPlugin/Examples/FaceTracking/SlothCharacter/Textures/sloth_all_1001_AlbedoTransparency.png -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/FaceTracking/SlothCharacter/Textures/sloth_all_1001_MetallicSmoothness.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitasenjudesign/UnityARFaceDeformation/00a9a438e71b7f2742f83341582e709e2796f79d/Assets/UnityARKitPlugin/Examples/FaceTracking/SlothCharacter/Textures/sloth_all_1001_MetallicSmoothness.png -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/FaceTracking/SlothCharacter/Textures/sloth_all_1001_Normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitasenjudesign/UnityARFaceDeformation/00a9a438e71b7f2742f83341582e709e2796f79d/Assets/UnityARKitPlugin/Examples/FaceTracking/SlothCharacter/Textures/sloth_all_1001_Normal.png -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/FaceTracking/SlothCharacter/sloth_head_blendshapes5.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitasenjudesign/UnityARFaceDeformation/00a9a438e71b7f2742f83341582e709e2796f79d/Assets/UnityARKitPlugin/Examples/FaceTracking/SlothCharacter/sloth_head_blendshapes5.fbx -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/FaceTracking/UnityARFaceAnchorManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fbb9909788bbd469bbce3102485cc0d9 3 | timeCreated: 1505951702 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/FaceTracking/UnityARFaceMeshManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: baec72e2006ae48df9dcbf0eb13377f9 3 | timeCreated: 1505951702 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/FocusSquare.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: af68919dbd7264d6584857ed14b907e6 3 | folderAsset: yes 4 | timeCreated: 1504390677 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/FocusSquare/FocusSquare.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 534fd29b1b9f645a28cf2f3deeaeda50 3 | timeCreated: 1504390678 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/FocusSquare/FocusSquareFinding.controller.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cca9b37da3e7e458fba02babd2ee71b9 3 | timeCreated: 1504634087 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 9100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/FocusSquare/FocusSquareFinding.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bdec2f90bd7304fd7859a64780a6947e 3 | timeCreated: 1504393627 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 0 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/FocusSquare/FocusSquareFinding.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 455b404c52d7d4188bf02f3682baa204 3 | timeCreated: 1504390680 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 0 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/FocusSquare/FocusSquareFocused.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ad2f8ea2bac7e4117ad509404bab9f73 3 | timeCreated: 1504390680 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 0 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/FocusSquare/FocusSquareFound.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5dc9e0ae01c204ce7b7517c8d59713e6 3 | timeCreated: 1504393627 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 0 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/FocusSquare/FocusSquareScene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3c9ef824a7b95400bade362484e9b6af 3 | timeCreated: 1504393453 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/FocusSquare/focuspulse.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 30f10be4bda0f4d1bb27b0f1ef492dcc 3 | timeCreated: 1504634087 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 7400000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/FocusSquare/focussquare.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitasenjudesign/UnityARFaceDeformation/00a9a438e71b7f2742f83341582e709e2796f79d/Assets/UnityARKitPlugin/Examples/FocusSquare/focussquare.png -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/FocusSquare/focussquarefound.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitasenjudesign/UnityARFaceDeformation/00a9a438e71b7f2742f83341582e709e2796f79d/Assets/UnityARKitPlugin/Examples/FocusSquare/focussquarefound.png -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityARBallz.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2082e391775a848b3922eee55f9e6de2 3 | folderAsset: yes 4 | timeCreated: 1503604404 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityARBallz/BallMaker.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e8d14a82591ec4fcabb481f075ffeb53 3 | timeCreated: 1496972819 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityARBallz/BallMover.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d7f6cc13442cf445295719af5da92de8 3 | timeCreated: 1496974880 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityARBallz/Ballz.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class Ballz : MonoBehaviour { 6 | 7 | public float yDistanceThreshold; 8 | 9 | private float startingY; 10 | 11 | // Use this for initialization 12 | void Start () { 13 | startingY = transform.position.y; 14 | } 15 | 16 | // Update is called once per frame 17 | void Update () { 18 | 19 | if (Mathf.Abs (startingY - transform.position.y) > yDistanceThreshold) { 20 | Destroy (gameObject); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityARBallz/Ballz.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2a2b4127da4fa4302b8db592636b3d55 3 | timeCreated: 1496967378 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityARBallz/ModeSwitcher.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class ModeSwitcher : MonoBehaviour { 6 | 7 | public GameObject ballMake; 8 | public GameObject ballMove; 9 | 10 | private int appMode = 0; 11 | // Use this for initialization 12 | void Start () { 13 | 14 | } 15 | 16 | // Update is called once per frame 17 | void Update () { 18 | 19 | } 20 | 21 | void EnableBallCreation(bool enable) 22 | { 23 | ballMake.SetActive (enable); 24 | ballMove.SetActive (!enable); 25 | 26 | } 27 | 28 | void OnGUI() 29 | { 30 | string modeString = appMode == 0 ? "MAKE" : "BREAK"; 31 | if (GUI.Button(new Rect(Screen.width -150.0f, 0.0f, 150.0f, 100.0f), modeString)) 32 | { 33 | appMode = (appMode + 1) % 2; 34 | EnableBallCreation (appMode == 0); 35 | } 36 | 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityARBallz/ModeSwitcher.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b892a4b0455dd4e378c69c09e1d48df4 3 | timeCreated: 1496987845 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityARBallz/UnityARBallz.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 75972bcfc855b486593ec2ec68da0b81 3 | timeCreated: 1496964608 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityARKitScene.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 81c8e3240e6624a1c9c093d35f99d1cf 3 | folderAsset: yes 4 | timeCreated: 1503626045 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityARKitScene/UnityARKitScene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c159f2591a9b5c843b0a0442451f78f8 3 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityAROcclusion.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ec50d8f0023aa44bc8abca2884b2c337 3 | folderAsset: yes 4 | timeCreated: 1503626045 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityAROcclusion/UnityAROcclusion.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7f026c59fb9d6489ab924c6e0e119760 3 | timeCreated: 1497467387 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityARShadows.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2c5a49210742e49f6b01cc06377465be 3 | folderAsset: yes 4 | timeCreated: 1503626042 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityARShadows/UnityARShadows.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 14d17ec7304f440b48e6b953ba7a5895 3 | timeCreated: 1497467387 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e746d1dc46f384723a49592cf820da3a 3 | folderAsset: yes 4 | timeCreated: 1503626042 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/HSVPicker.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 42ca15f1893ea4df79823e4a752e0032 3 | folderAsset: yes 4 | timeCreated: 1494022978 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/HSVPicker/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2a9e9df3c14e9034eb587348635c8f09 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/HSVPicker/Editor/BoxSliderEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8701e045b26e51f4eb345f2ccb3c13f5 3 | timeCreated: 1426804458 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/HSVPicker/Enums.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5d3904d3d18ddd544820bd8518990fee 3 | folderAsset: yes 4 | timeCreated: 1442586617 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/HSVPicker/Enums/ColorValues.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | public enum ColorValues 4 | { 5 | R, 6 | G, 7 | B, 8 | A, 9 | 10 | Hue, 11 | Saturation, 12 | Value 13 | } 14 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/HSVPicker/Enums/ColorValues.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 859a1720e083e504cb68917f781e87c7 3 | timeCreated: 1442586608 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/HSVPicker/Events.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6bb0d49c64210014e9a24ed9345928c2 3 | folderAsset: yes 4 | timeCreated: 1442747310 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/HSVPicker/Events/ColorChangedEvent.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System; 3 | using UnityEngine.Events; 4 | 5 | [Serializable] 6 | public class ColorChangedEvent : UnityEvent 7 | { 8 | 9 | } -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/HSVPicker/Events/ColorChangedEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ff46fbecea7739f4690e4285c88f53c5 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/HSVPicker/Events/HSVChangedEvent.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.Events; 3 | 4 | public class HSVChangedEvent : UnityEvent 5 | { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/HSVPicker/Events/HSVChangedEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3d95ce8fba3dbbf4eb14411412169b88 3 | timeCreated: 1442747317 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/HSVPicker/Other.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 304681ea793fc054aa8ed2beab28d0b1 3 | folderAsset: yes 4 | timeCreated: 1442751317 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/HSVPicker/Other/ColorPickerTester.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class ColorPickerTester : MonoBehaviour 5 | { 6 | 7 | public new Renderer renderer; 8 | public ColorPicker picker; 9 | 10 | // Use this for initialization 11 | void Start () 12 | { 13 | picker.onValueChanged.AddListener(color => 14 | { 15 | renderer.material.color = color; 16 | }); 17 | renderer.material.color = picker.CurrentColor; 18 | } 19 | 20 | // Update is called once per frame 21 | void Update () { 22 | 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/HSVPicker/Other/ColorPickerTester.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 06851a815227e5044b0e3c1bf9b3a282 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/HSVPicker/Other/TiltWindow.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | public class TiltWindow : MonoBehaviour 4 | { 5 | public Vector2 range = new Vector2(5f, 3f); 6 | 7 | Transform mTrans; 8 | Quaternion mStart; 9 | Vector2 mRot = Vector2.zero; 10 | 11 | void Start () 12 | { 13 | mTrans = transform; 14 | mStart = mTrans.localRotation; 15 | } 16 | 17 | void Update () 18 | { 19 | Vector3 pos = Input.mousePosition; 20 | 21 | float halfWidth = Screen.width * 0.5f; 22 | float halfHeight = Screen.height * 0.5f; 23 | float x = Mathf.Clamp((pos.x - halfWidth) / halfWidth, -1f, 1f); 24 | float y = Mathf.Clamp((pos.y - halfHeight) / halfHeight, -1f, 1f); 25 | mRot = Vector2.Lerp(mRot, new Vector2(x, y), Time.deltaTime * 5f); 26 | 27 | mTrans.localRotation = mStart * Quaternion.Euler(-mRot.y * range.y, mRot.x * range.x, 0f); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/HSVPicker/Other/TiltWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f2aa04a3e088320429a06194a3483daa 3 | timeCreated: 1426051352 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/HSVPicker/Picker 2.0.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 916ee089a0d7b63419075f91e1c657ec 3 | timeCreated: 1442747914 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/HSVPicker/PickerTest.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ce46c07f0028e314ab7767577ab5e7a6 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/HSVPicker/UI.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2b5fe4e314cbd9944bcaa93e814e9bd5 3 | folderAsset: yes 4 | timeCreated: 1442586536 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/HSVPicker/UI/ColorImage.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.UI; 3 | using System.Collections; 4 | 5 | [RequireComponent(typeof(Image))] 6 | public class ColorImage : MonoBehaviour 7 | { 8 | public ColorPicker picker; 9 | 10 | private Image image; 11 | 12 | private void Awake() 13 | { 14 | image = GetComponent(); 15 | picker.onValueChanged.AddListener(ColorChanged); 16 | } 17 | 18 | private void OnDestroy() 19 | { 20 | picker.onValueChanged.RemoveListener(ColorChanged); 21 | } 22 | 23 | private void ColorChanged(Color newColor) 24 | { 25 | image.color = newColor; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/HSVPicker/UI/ColorImage.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6bca58eb07ad66b498a2f158bcb13225 3 | timeCreated: 1442675622 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/HSVPicker/UI/ColorLabel.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6b10e832a32d2d14facd8a3f489ee8d6 3 | timeCreated: 1442587803 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/HSVPicker/UI/ColorPicker.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8262e4a8322117f4da079921eaa72834 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/HSVPicker/UI/ColorPresets.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.UI; 3 | 4 | public class ColorPresets : MonoBehaviour 5 | { 6 | public ColorPicker picker; 7 | public GameObject[] presets; 8 | public Image createPresetImage; 9 | 10 | void Awake() 11 | { 12 | // picker.onHSVChanged.AddListener(HSVChanged); 13 | picker.onValueChanged.AddListener(ColorChanged); 14 | } 15 | 16 | public void CreatePresetButton() 17 | { 18 | for (var i = 0; i < presets.Length; i++) 19 | { 20 | if (!presets[i].activeSelf) 21 | { 22 | presets[i].SetActive(true); 23 | presets[i].GetComponent().color = picker.CurrentColor; 24 | break; 25 | } 26 | } 27 | } 28 | 29 | public void PresetSelect(Image sender) 30 | { 31 | picker.CurrentColor = sender.color; 32 | } 33 | 34 | // Not working, it seems ConvertHsvToRgb() is broken. It doesn't work when fed 35 | // input h, s, v as shown below. 36 | // private void HSVChanged(float h, float s, float v) 37 | // { 38 | // createPresetImage.color = HSVUtil.ConvertHsvToRgb(h, s, v, 1); 39 | // } 40 | private void ColorChanged(Color color) 41 | { 42 | createPresetImage.color = color; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/HSVPicker/UI/ColorPresets.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0923373e76e77402c9c53a2f1250ad3e 3 | timeCreated: 1456875791 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/HSVPicker/UI/ColorSlider.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c600592efa0cf25479655321bf4fb08a 3 | timeCreated: 1442586558 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/HSVPicker/UI/ColorSliderImage.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7ca76dd9ad6eb204c9b0481aece34497 3 | timeCreated: 1442682013 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/HSVPicker/UI/HexColorField.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d85c534b3c1560544b09d0996dfeba84 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/HSVPicker/UI/SVBoxSlider.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1e4240873631f724496efec97d7151b3 3 | timeCreated: 1442650713 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/HSVPicker/UtilityScripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2b33138f525222146865861432dbe845 3 | folderAsset: yes 4 | timeCreated: 1426051345 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/HSVPicker/UtilityScripts/BoxSlider.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 37c44bc94a9a7f241b5b552f3ff89458 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/HSVPicker/UtilityScripts/HSVUtil.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4f3189246d7fc204faba7a1e9c08e0af 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/ParticlePainter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a3a20b380ef854b22b8541736614c00e 3 | timeCreated: 1494016368 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Examples/UnityParticlePainter/UnityParticlePainter.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0327f0aa0142146c291df8203b848257 3 | timeCreated: 1494021616 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 05a89afb32ff4cd48a0278f931aa903b 3 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 20ca1a77fe0cf4e049dac6d2a8afd62e 3 | folderAsset: yes 4 | timeCreated: 1492036260 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b8fd2eea89786441a84b5c25c1d48982 3 | folderAsset: yes 4 | timeCreated: 1492103332 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/ARReferenceImage.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | [CreateAssetMenu(fileName = "ARReferenceImage" , menuName = "UnityARKitPlugin/ARReferenceImage", order = 2)] 6 | public class ARReferenceImage : ScriptableObject { 7 | 8 | public string imageName; 9 | public Texture2D imageTexture; 10 | public float physicalSize; 11 | 12 | } 13 | 14 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/ARReferenceImage.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0414577f9c6b244e696949154859a4af 3 | timeCreated: 1517880235 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/ARReferenceImagesSet.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | [CreateAssetMenu(fileName = "ARReferenceImagesSet" , menuName = "UnityARKitPlugin/ARReferenceImagesSet", order = 3)] 6 | public class ARReferenceImagesSet : ScriptableObject { 7 | 8 | public string resourceGroupName; 9 | public ARReferenceImage [] referenceImages; 10 | 11 | } -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/ARReferenceImagesSet.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1c37f7746917f4760aa00e7ff7fd81dc 3 | timeCreated: 1518054368 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 085eeda524261654b88f97ea61b33090 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Editor/ARResourcesJSON.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using System; 5 | 6 | namespace UnityEngine.XR.iOS 7 | { 8 | [Serializable] 9 | public class ARResourceGroupInfo 10 | { 11 | public int version; 12 | public string author; 13 | } 14 | 15 | [Serializable] 16 | public class ARResourceGroupResource 17 | { 18 | public string filename; 19 | } 20 | 21 | [Serializable] 22 | public class ARResourceGroupContents 23 | { 24 | public ARResourceGroupInfo info; 25 | public ARResourceGroupResource [] resources; 26 | } 27 | 28 | [Serializable] 29 | public class ARResourceInfo 30 | { 31 | public int version; 32 | public string author; 33 | } 34 | 35 | [Serializable] 36 | public class ARResourceProperties 37 | { 38 | public float width; 39 | } 40 | 41 | [Serializable] 42 | public class ARResourceImage 43 | { 44 | public string idiom; 45 | public string filename; 46 | } 47 | 48 | [Serializable] 49 | public class ARResourceContents 50 | { 51 | public ARResourceImage [] images; 52 | public ARResourceInfo info; 53 | public ARResourceProperties properties; 54 | } 55 | } -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Editor/ARResourcesJSON.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c96ff67f78bac414e844358bb0f999fb 3 | timeCreated: 1518029034 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Editor/UnityARBuildPostprocessor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a56f8b807c15f4cf3a44275a5e5f89f3 3 | timeCreated: 1492795428 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Helpers.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1e4b720fdfe6441c280f3288bdb93c0d 3 | folderAsset: yes 4 | timeCreated: 1503626042 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Helpers/AR3DOFCameraManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0ff614c6973544218b2c1e3036b8de0a 3 | timeCreated: 1494626284 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Helpers/ARPlaneAnchorGameObject.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnityEngine.XR.iOS 4 | { 5 | public class ARPlaneAnchorGameObject 6 | { 7 | public GameObject gameObject; 8 | public ARPlaneAnchor planeAnchor; 9 | } 10 | } 11 | 12 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Helpers/ARPlaneAnchorGameObject.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6a07258b16ace4bf1a395aa0a80f2135 3 | timeCreated: 1493059957 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Helpers/DontDestroyOnLoad.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class DontDestroyOnLoad : MonoBehaviour { 6 | 7 | // Use this for initialization 8 | void Start () { 9 | DontDestroyOnLoad (gameObject); 10 | } 11 | 12 | // Update is called once per frame 13 | void Update () { 14 | 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Helpers/DontDestroyOnLoad.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 562a9fe49bfc2418099790a804f22711 3 | timeCreated: 1493408595 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Helpers/LinkedListDictionary.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 356fa3989471245169edcc5abb89e6d7 3 | timeCreated: 1502403391 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Helpers/PointCloudParticleExample.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ec20d460fbb7e4f92b4d84a10da98cd9 3 | timeCreated: 1494006942 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Helpers/UnityARAmbient.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.InteropServices; 2 | using UnityEngine.XR.iOS; 3 | 4 | namespace UnityEngine.XR.iOS 5 | { 6 | public class UnityARAmbient : MonoBehaviour 7 | { 8 | 9 | private Light l; 10 | 11 | public void Start() 12 | { 13 | l = GetComponent(); 14 | UnityARSessionNativeInterface.ARFrameUpdatedEvent += UpdateLightEstimation; 15 | } 16 | 17 | void UpdateLightEstimation(UnityARCamera camera) 18 | { 19 | if (camera.lightData.arLightingType == LightDataType.LightEstimate) { 20 | // Convert ARKit intensity to Unity intensity 21 | // ARKit ambient intensity ranges 0-2000 22 | // Unity ambient intensity ranges 0-8 (for over-bright lights) 23 | float newai = camera.lightData.arLightEstimate.ambientIntensity; 24 | l.intensity = newai / 1000.0f; 25 | 26 | //Unity Light has functionality to filter the light color to correct temperature 27 | //https://docs.unity3d.com/ScriptReference/Light-colorTemperature.html 28 | l.colorTemperature = camera.lightData.arLightEstimate.ambientColorTemperature; 29 | } 30 | } 31 | 32 | void OnDestroy() { 33 | UnityARSessionNativeInterface.ARFrameUpdatedEvent -= UpdateLightEstimation; 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Helpers/UnityARAmbient.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5587c957048494a2f96db36e0995449e 3 | timeCreated: 1492805300 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Helpers/UnityARAnchorManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 00b197bb73412448e9a5e14be146aaeb 3 | timeCreated: 1492557010 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Helpers/UnityARCameraManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 462d46d2423bb4f738d2497a397b1590 3 | timeCreated: 1493058653 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Helpers/UnityARCameraNearFar.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEngine.XR.iOS; 5 | 6 | [RequireComponent(typeof(Camera))] 7 | public class UnityARCameraNearFar : MonoBehaviour { 8 | 9 | private Camera attachedCamera; 10 | private float currentNearZ; 11 | private float currentFarZ; 12 | 13 | // Use this for initialization 14 | void Start () { 15 | attachedCamera = GetComponent (); 16 | UpdateCameraClipPlanes (); 17 | } 18 | 19 | void UpdateCameraClipPlanes() 20 | { 21 | currentNearZ = attachedCamera.nearClipPlane; 22 | currentFarZ = attachedCamera.farClipPlane; 23 | UnityARSessionNativeInterface.GetARSessionNativeInterface ().SetCameraClipPlanes (currentNearZ, currentFarZ); 24 | } 25 | 26 | // Update is called once per frame 27 | void Update () { 28 | if (currentNearZ != attachedCamera.nearClipPlane || currentFarZ != attachedCamera.farClipPlane) { 29 | UpdateCameraClipPlanes (); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Helpers/UnityARCameraNearFar.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ce437cef046e841aabd6070890e79d41 3 | timeCreated: 1496930896 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Helpers/UnityARGeneratePlane.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace UnityEngine.XR.iOS 5 | { 6 | public class UnityARGeneratePlane : MonoBehaviour 7 | { 8 | public GameObject planePrefab; 9 | private UnityARAnchorManager unityARAnchorManager; 10 | 11 | // Use this for initialization 12 | void Start () { 13 | unityARAnchorManager = new UnityARAnchorManager(); 14 | UnityARUtility.InitializePlanePrefab (planePrefab); 15 | } 16 | 17 | void OnDestroy() 18 | { 19 | unityARAnchorManager.Destroy (); 20 | } 21 | 22 | void OnGUI() 23 | { 24 | IEnumerable arpags = unityARAnchorManager.GetCurrentPlaneAnchors (); 25 | foreach(var planeAnchor in arpags) 26 | { 27 | //ARPlaneAnchor ap = planeAnchor; 28 | //GUI.Box (new Rect (100, 100, 800, 60), string.Format ("Center: x:{0}, y:{1}, z:{2}", ap.center.x, ap.center.y, ap.center.z)); 29 | //GUI.Box(new Rect(100, 200, 800, 60), string.Format ("Extent: x:{0}, y:{1}, z:{2}", ap.extent.x, ap.extent.y, ap.extent.z)); 30 | } 31 | } 32 | } 33 | } 34 | 35 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Helpers/UnityARGeneratePlane.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 31cac8edf84834043ac167deaeba16a9 3 | timeCreated: 1493058396 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Helpers/UnityARHitTestExample.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6941ec02ead994c9b848d640887441f1 3 | timeCreated: 1492806244 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Helpers/UnityARKitControl.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4977b930c0f8843c8b8a101ba5bf3c8f 3 | timeCreated: 1493240142 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Helpers/UnityARKitLightManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d0b95baf0d5f840f4bd22de86c996c08 3 | timeCreated: 1506357597 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Helpers/UnityARMatrixOps.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 37808a86538754725a15d36128fd2afc 3 | timeCreated: 1492800582 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Helpers/UnityARUserAnchorComponent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using UnityEngine; 5 | using UnityEngine.XR.iOS; 6 | 7 | namespace UnityEngine.XR.iOS 8 | { 9 | public class UnityARUserAnchorComponent : MonoBehaviour { 10 | 11 | private string m_AnchorId; 12 | 13 | public string AnchorId { get { return m_AnchorId; } } 14 | 15 | void Awake() 16 | { 17 | UnityARSessionNativeInterface.ARUserAnchorUpdatedEvent += GameObjectAnchorUpdated; 18 | UnityARSessionNativeInterface.ARUserAnchorRemovedEvent += AnchorRemoved; 19 | this.m_AnchorId = UnityARSessionNativeInterface.GetARSessionNativeInterface ().AddUserAnchorFromGameObject(this.gameObject).identifierStr; 20 | } 21 | void Start () { 22 | 23 | } 24 | 25 | public void AnchorRemoved(ARUserAnchor anchor) 26 | { 27 | if (anchor.identifier.Equals(m_AnchorId)) 28 | { 29 | Destroy(this.gameObject); 30 | } 31 | } 32 | 33 | void OnDestroy() { 34 | UnityARSessionNativeInterface.ARUserAnchorUpdatedEvent -= GameObjectAnchorUpdated; 35 | UnityARSessionNativeInterface.ARUserAnchorRemovedEvent -= AnchorRemoved; 36 | UnityARSessionNativeInterface.GetARSessionNativeInterface ().RemoveUserAnchor(this.m_AnchorId); 37 | } 38 | 39 | private void GameObjectAnchorUpdated(ARUserAnchor anchor) 40 | { 41 | 42 | } 43 | } 44 | } -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Helpers/UnityARUserAnchorComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4d24244ceb54d42ca92481ba81c45056 3 | timeCreated: 1499372973 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Helpers/UnityARUtility.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9736aad5d8518481ab7e8d1d0b0e6e36 3 | timeCreated: 1492800582 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Helpers/UnityARVideo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b58ecea7a196242dd879c814ac05084c 3 | timeCreated: 1492796577 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Helpers/UnityPointCloudExample.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | using UnityEngine.XR.iOS; 4 | using System.Collections; 5 | using System.Collections.Generic; 6 | using System.Runtime.InteropServices; 7 | 8 | public class UnityPointCloudExample : MonoBehaviour 9 | { 10 | public uint numPointsToShow = 100; 11 | public GameObject PointCloudPrefab = null; 12 | private List pointCloudObjects; 13 | private Vector3[] m_PointCloudData; 14 | 15 | public void Start() 16 | { 17 | UnityARSessionNativeInterface.ARFrameUpdatedEvent += ARFrameUpdated; 18 | if (PointCloudPrefab != null) 19 | { 20 | pointCloudObjects = new List (); 21 | for (int i =0; i < numPointsToShow; i++) 22 | { 23 | pointCloudObjects.Add (Instantiate (PointCloudPrefab)); 24 | } 25 | } 26 | } 27 | 28 | public void ARFrameUpdated(UnityARCamera camera) 29 | { 30 | m_PointCloudData = camera.pointCloudData; 31 | } 32 | 33 | public void Update() 34 | { 35 | if (PointCloudPrefab != null && m_PointCloudData != null) 36 | { 37 | for (int count = 0; count < Math.Min (m_PointCloudData.Length, numPointsToShow); count++) 38 | { 39 | Vector4 vert = m_PointCloudData [count]; 40 | GameObject point = pointCloudObjects [count]; 41 | point.transform.position = new Vector3(vert.x, vert.y, vert.z); 42 | } 43 | } 44 | } 45 | } -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Helpers/UnityPointCloudExample.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c5ab0fdfbf2334e8dbbcdda6ceada7e3 3 | timeCreated: 1493835634 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b97b0ebd5e0d84160a0b477bf246c1e1 3 | folderAsset: yes 4 | timeCreated: 1492792741 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Materials/YUVMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f1d9352050a75486f878ab19fa578f16 3 | timeCreated: 1492641356 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Materials/YUVMaterialLinear.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2081057c5ab9b4b20a1a1c4efdace299 3 | timeCreated: 1492641356 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6930a53974b964a77bb66c8a01551eaa 3 | folderAsset: yes 4 | timeCreated: 1492795798 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARAnchor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnityEngine.XR.iOS 4 | { 5 | public struct ARAnchor 6 | { 7 | public string identifier; 8 | 9 | /** 10 | The transformation matrix that defines the anchor's rotation, translation and scale in world coordinates. 11 | */ 12 | public Matrix4x4 transform; 13 | } 14 | } 15 | 16 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARAnchor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 79ff8feee38c24e158252a971d93a42a 3 | timeCreated: 1492118050 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARCamera.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | namespace UnityEngine.XR.iOS 6 | { 7 | public struct ARCamera 8 | { 9 | /** 10 | The transformation matrix that defines the camera's rotation and translation in world coordinates. 11 | */ 12 | 13 | public Matrix4x4 worldTransform; 14 | 15 | /** 16 | The camera's orientation defined as Euler angles. 17 | 18 | @dicussion The order of components in this vector matches the axes of rotation: 19 | 1. Pitch (the x component) is the rotation about the node's x-axis (in radians) 20 | 2. Yaw (the y component) is the rotation about the node's y-axis (in radians) 21 | 3. Roll (the z component) is the rotation about the node's z-axis (in radians) 22 | ARKit applies these rotations in the reverse order of the components: 23 | 1. first roll 24 | 2. then yaw 25 | 3. then pitch 26 | */ 27 | 28 | public Vector3 eulerAngles; 29 | 30 | public ARTrackingQuality trackingQuality; 31 | 32 | /** 33 | The camera intrinsics. 34 | @discussion The matrix has the following contents: 35 | fx 0 px 36 | 0 fy py 37 | 0 0 1 38 | fx and fy are the focal length in pixels. 39 | px and py are the coordinates of the principal point in pixels. 40 | The origin is at the center of the upper-left pixel. 41 | */ 42 | 43 | public Vector3 intrinsics_row1; 44 | public Vector3 intrinsics_row2; 45 | public Vector3 intrinsics_row3; 46 | 47 | public ARSize imageResolution; 48 | 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARCamera.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f7914788e42e54a09ac79ed2629dfb48 3 | timeCreated: 1492103364 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARErrorCode.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnityEngine.XR.iOS 4 | { 5 | public enum ARErrorCode : long 6 | { 7 | /** Unsupported session configuration. */ 8 | ARErrorCodeUnsupportedConfiguration = 100, 9 | 10 | /** A sensor required to run the session is not available. */ 11 | ARErrorCodeSensorUnavailable = 101, 12 | 13 | /** A sensor failed to provide the required input. */ 14 | ARErrorCodeSensorFailed = 102, 15 | 16 | /** World tracking has encountered a fatal error. */ 17 | ARErrorCodeWorldTrackingFailed = 200, 18 | 19 | } 20 | } 21 | 22 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARErrorCode.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 094318df5b9084291abdf9a768914ab7 3 | timeCreated: 1492118622 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARFaceAnchor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6bd5d00d33612415b85197cd523a21e6 3 | timeCreated: 1505528974 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARFrame.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnityEngine.XR.iOS 4 | { 5 | public struct ARFrame 6 | { 7 | /** 8 | A timestamp identifying the frame. 9 | */ 10 | public double timestamp; 11 | 12 | /** 13 | The frame's captured image. 14 | */ 15 | public IntPtr capturedImage; 16 | 17 | /** 18 | The camera used to capture the frame's image. 19 | @discussion The camera provides the device's position and orientation as well as camera parameters. 20 | */ 21 | public ARCamera camera; 22 | 23 | /** 24 | A list of anchors in the scene. 25 | */ 26 | //List anchors; 27 | 28 | /** 29 | A light estimate representing the light in the scene. 30 | @discussion Returns nil if there is no light estimation. 31 | */ 32 | ARLightEstimate lightEstimate; 33 | 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARFrame.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b8b915b5e16c84740b940efc7a7e2821 3 | timeCreated: 1492118050 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARHitTestResult.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnityEngine.XR.iOS 4 | { 5 | public struct ARHitTestResult 6 | { 7 | /** 8 | The type of the hit-test result. 9 | */ 10 | public ARHitTestResultType type; 11 | 12 | /** 13 | The distance from the camera to the intersection in meters. 14 | */ 15 | public double distance; 16 | 17 | /** 18 | The transformation matrix that defines the intersection's rotation, translation and scale 19 | relative to the anchor or nearest feature point. 20 | */ 21 | public Matrix4x4 localTransform; 22 | 23 | /** 24 | The transformation matrix that defines the intersection's rotation, translation and scale 25 | relative to the world. 26 | */ 27 | public Matrix4x4 worldTransform; 28 | 29 | /** 30 | The anchor that the hit-test intersected. 31 | */ 32 | public string anchorIdentifier; 33 | 34 | /** 35 | True if the test represents a valid hit test. Data is undefined otherwise. 36 | */ 37 | public bool isValid; 38 | } 39 | } 40 | 41 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARHitTestResult.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 048b3fa7b70bb49689905314375cd7c3 3 | timeCreated: 1492121726 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARHitTestResultType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnityEngine.XR.iOS 4 | { 5 | [Flags] 6 | public enum ARHitTestResultType : long 7 | { 8 | /** Result type from intersecting the nearest feature point. */ 9 | ARHitTestResultTypeFeaturePoint = (1 << 0), 10 | 11 | /** A real-world planar surface detected by the search (without a corresponding anchor), whose orientation is perpendicular to gravity. */ 12 | ARHitTestResultTypeEstimatedHorizontalPlane = (1 << 1), 13 | 14 | /** A real-world planar surface detected by the search, whose orientation is parallel to gravity. */ 15 | ARHitTestResultTypeEstimatedVerticalPlane = (1 << 2), 16 | 17 | /** Result type from intersecting with an existing plane anchor. */ 18 | ARHitTestResultTypeExistingPlane = (1 << 3), 19 | 20 | /** Result type from intersecting with an existing plane anchor, taking into account the plane's extent. */ 21 | ARHitTestResultTypeExistingPlaneUsingExtent = ( 1 << 4), 22 | 23 | /** A plane anchor already in the scene (detected with the planeDetection option), respecting the plane's estimated size and shape. **/ 24 | ARHitTestResultTypeExistingPlaneUsingGeometry = (1 << 5) 25 | 26 | } 27 | } 28 | 29 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARHitTestResultType.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1d70fc085339c436b848c46340250a29 3 | timeCreated: 1492121726 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARImageAnchor.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using System; 5 | using System.Runtime.InteropServices; 6 | 7 | 8 | namespace UnityEngine.XR.iOS 9 | { 10 | 11 | public struct UnityARImageAnchorData 12 | { 13 | 14 | public IntPtr ptrIdentifier; 15 | 16 | /** 17 | The transformation matrix that defines the anchor's rotation, translation and scale in world coordinates. 18 | */ 19 | public UnityARMatrix4x4 transform; 20 | 21 | public IntPtr referenceImageNamePtr; 22 | 23 | public float referenceImagePhysicalSize; 24 | 25 | 26 | }; 27 | 28 | 29 | 30 | public class ARImageAnchor { 31 | 32 | private UnityARImageAnchorData imageAnchorData; 33 | 34 | public ARImageAnchor (UnityARImageAnchorData uiad) 35 | { 36 | imageAnchorData = uiad; 37 | } 38 | 39 | 40 | public string identifier { get { return Marshal.PtrToStringAuto(imageAnchorData.ptrIdentifier); } } 41 | 42 | public Matrix4x4 transform { 43 | get { 44 | Matrix4x4 matrix = new Matrix4x4 (); 45 | matrix.SetColumn (0, imageAnchorData.transform.column0); 46 | matrix.SetColumn (1, imageAnchorData.transform.column1); 47 | matrix.SetColumn (2, imageAnchorData.transform.column2); 48 | matrix.SetColumn (3, imageAnchorData.transform.column3); 49 | return matrix; 50 | } 51 | } 52 | 53 | public string referenceImageName { get { return Marshal.PtrToStringAuto(imageAnchorData.referenceImageNamePtr); } } 54 | 55 | public float referenceImagePhysicalSize { get { return imageAnchorData.referenceImagePhysicalSize; } } 56 | } 57 | 58 | } -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARImageAnchor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 888a393eca1cb4822ab6eb99ddaa0e9e 3 | timeCreated: 1517602605 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARLightEstimate.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c1f2e6c89195544de943f77cd419d81d 3 | timeCreated: 1492118050 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARPlaneAnchor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4a7917e69c7bc43ad8879cc6d58266fc 3 | timeCreated: 1492119200 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARPlaneAnchorAlignment.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnityEngine.XR.iOS 4 | { 5 | public enum ARPlaneAnchorAlignment : long 6 | { 7 | /** A plane that is horizontal with respect to gravity. */ 8 | ARPlaneAnchorAlignmentHorizontal, 9 | 10 | /** A plane that is parallel with respect to gravity. */ 11 | ARPlaneAnchorAlignmentVertical 12 | } 13 | } 14 | 15 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARPlaneAnchorAlignment.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f8d5557085c2d4e3e8ac43f5694ea8c8 3 | timeCreated: 1492119200 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARPoint.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnityEngine.XR.iOS 4 | { 5 | public struct ARPoint 6 | { 7 | public double x; 8 | public double y; 9 | } 10 | } 11 | 12 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARPoint.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 91d28e0ba93314b2298e88a73bf448d3 3 | timeCreated: 1492119200 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARRect.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnityEngine.XR.iOS 4 | { 5 | public struct ARRect 6 | { 7 | public ARPoint origin; 8 | public ARSize size; 9 | } 10 | } 11 | 12 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARRect.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1b78ac1873b934b6497aa4404b460655 3 | timeCreated: 1492120116 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARSessionNative.mm.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9ecd21425b31a46ef9abc90a0516e9a1 3 | timeCreated: 1492108287 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 0 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | iPhone: iOS 28 | second: 29 | enabled: 1 30 | settings: {} 31 | userData: 32 | assetBundleName: 33 | assetBundleVariant: 34 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARSize.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnityEngine.XR.iOS 4 | { 5 | public struct ARSize 6 | { 7 | public double width; 8 | public double height; 9 | } 10 | } 11 | 12 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARSize.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c72e6d3d39c0b495ba3d40c3cbd3a8ca 3 | timeCreated: 1492114222 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARTextureHandles.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnityEngine.XR.iOS 4 | { 5 | public struct ARTextureHandles 6 | { 7 | // Native (Metal) texture handles for the device camera buffer 8 | public IntPtr textureY; 9 | public IntPtr textureCbCr; 10 | } 11 | } 12 | 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARTextureHandles.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 223ca11cf486046fe9c3740ee69b7a27 3 | timeCreated: 1493064086 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARTrackingQuality.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnityEngine.XR.iOS 4 | { 5 | public enum ARTrackingQuality : long 6 | { 7 | /** The tracking quality is not available. */ 8 | ARTrackingQualityNotAvailable, 9 | 10 | /** The tracking quality is limited, relying only on the device's motion. */ 11 | ARTrackingQualityLimited, 12 | 13 | /** The tracking quality is poor. */ 14 | ARTrackingQualityPoor, 15 | 16 | /** The tracking quality is good. */ 17 | ARTrackingQualityGood 18 | 19 | } 20 | } 21 | 22 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARTrackingQuality.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 70419166c9be04782bc37a66aa7ead0a 3 | timeCreated: 1492114222 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARTrackingState.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnityEngine.XR.iOS 4 | { 5 | public enum ARTrackingState 6 | { 7 | /** Tracking is not available. */ 8 | ARTrackingStateNotAvailable, 9 | 10 | /** Tracking is limited. See tracking reason for details. */ 11 | ARTrackingStateLimited, 12 | 13 | /** Tracking is Normal. */ 14 | ARTrackingStateNormal, 15 | } 16 | } 17 | 18 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARTrackingState.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3c8e21e94c4944a7eb5202db41d4bce0 3 | timeCreated: 1493767524 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARTrackingStateReason.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnityEngine.XR.iOS 4 | { 5 | public enum ARTrackingStateReason 6 | { 7 | /** Tracking is not limited. */ 8 | ARTrackingStateReasonNone, 9 | 10 | /** Tracking is limited due to initialization in progress. */ 11 | ARTrackingStateReasonInitializing, 12 | 13 | /** Tracking is limited due to a excessive motion of the camera. */ 14 | ARTrackingStateReasonExcessiveMotion, 15 | 16 | /** Tracking is limited due to a lack of features visible to the camera. */ 17 | ARTrackingStateReasonInsufficientFeatures, 18 | 19 | /** Tracking is limited due to a relocalization in progress. */ 20 | ARTrackingStateReasonRelocalizing, 21 | } 22 | } 23 | 24 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARTrackingStateReason.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b76c532f89f25411ca5c1d82cd7a5367 3 | timeCreated: 1493767524 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARUserAnchor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnityEngine.XR.iOS 4 | { 5 | public struct ARUserAnchor 6 | { 7 | 8 | public string identifier; 9 | 10 | /** 11 | The transformation matrix that defines the anchor's rotation, translation and scale in world coordinates. 12 | */ 13 | public Matrix4x4 transform; 14 | } 15 | } 16 | 17 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARUserAnchor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e8271a80f6d6245a4bf920bbe514bbc0 3 | timeCreated: 1500325731 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARVideoFormat.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using System; 5 | using System.Runtime.InteropServices; 6 | using AOT; 7 | 8 | 9 | namespace UnityEngine.XR.iOS 10 | { 11 | 12 | public struct UnityARVideoFormat { 13 | public IntPtr videoFormatPtr; 14 | public float imageResolutionWidth; 15 | public float imageResolutionHeight; 16 | public int framesPerSecond; 17 | 18 | #if UNITY_EDITOR 19 | private static void EnumerateVideoFormats(VideoFormatEnumerator videoFormatEnumerator) { 20 | } 21 | #else 22 | [DllImport("__Internal")] 23 | private static extern void EnumerateVideoFormats(VideoFormatEnumerator videoFormatEnumerator); 24 | #endif 25 | 26 | static List videoFormatsList; 27 | 28 | public static List SupportedVideoFormats() 29 | { 30 | videoFormatsList = new List (); 31 | EnumerateVideoFormats (AddToVFList); 32 | 33 | return videoFormatsList; 34 | } 35 | 36 | [MonoPInvokeCallback(typeof(VideoFormatEnumerator))] 37 | private static void AddToVFList(UnityARVideoFormat newFormat) 38 | { 39 | Debug.Log ("New Format returned"); 40 | videoFormatsList.Add (newFormat); 41 | } 42 | 43 | } 44 | 45 | public delegate void VideoFormatEnumerator(UnityARVideoFormat videoFormat); 46 | 47 | 48 | } -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/ARVideoFormat.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d63d797765c124eb59e9ed66561bd129 3 | timeCreated: 1518217135 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/NativeInterface/UnityARSessionNativeInterface.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 43900ad1460304627a359bed956a451d 3 | timeCreated: 1492795428 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Shaders.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f9e3cccf742844401a584fdd294d0607 3 | folderAsset: yes 4 | timeCreated: 1492634328 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Shaders/YUVShader.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ef7b8eec959eb4f1e9fa97bc86273848 3 | timeCreated: 1492634375 4 | licenseType: Pro 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Plugins/iOS/UnityARKit/Shaders/YUVShaderLinear.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 57c2c07a0719d4fafab7a4f8a84d1767 3 | timeCreated: 1492634375 4 | licenseType: Pro 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f6107a01f65b74c0093cf65fc9e9cfcc 3 | folderAsset: yes 4 | timeCreated: 1511229652 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Resources/UnityARKitPlugin.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3872f00b440b04ca98de82d0fca32d68 3 | folderAsset: yes 4 | timeCreated: 1511229680 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Resources/UnityARKitPlugin/ARKitSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_GameObject: {fileID: 0} 9 | m_Enabled: 1 10 | m_EditorHideFlags: 0 11 | m_Script: {fileID: 11500000, guid: efa163296ae7840cb80b9e3beb5f0857, type: 3} 12 | m_Name: ARKitSettings 13 | m_EditorClassIdentifier: 14 | m_ARKitUsesFacetracking: 1 15 | AppRequiresARKit: 1 16 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/Resources/UnityARKitPlugin/ARKitSettings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: feb5449e416a346aaa320dd0a0188ade 3 | timeCreated: 1511224908 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 11400000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/UnityARKitPluginSettings.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | /// 6 | /// Holds settings that are used to configure the Unity ARKit Plugin. 7 | /// 8 | [CreateAssetMenu(fileName = "ARKitSettings", menuName = "UnityARKitPlugin/Settings", order = 1)] 9 | public class UnityARKitPluginSettings : ScriptableObject { 10 | 11 | /// 12 | /// Toggles whether Facetracking for iPhone X (and later) is used. If enabled, provide a Privacy Policy for submission to AppStore. 13 | /// 14 | [Tooltip("Toggles whether Facetracking for iPhone X (and later) is used. If enabled, provide a Privacy Policy for submission to AppStore.")] 15 | public bool m_ARKitUsesFacetracking = false; 16 | 17 | /// 18 | /// Toggles whether ARKit is required for this app: will make app only downloadable by devices with ARKit support if enabled. 19 | /// 20 | [Tooltip("Toggles whether ARKit is required for this app: will make app only downloadable by devices with ARKit support if enabled.")] 21 | public bool AppRequiresARKit = false; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /Assets/UnityARKitPlugin/UnityARKitPluginSettings.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: efa163296ae7840cb80b9e3beb5f0857 3 | timeCreated: 1511215177 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Images/01.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitasenjudesign/UnityARFaceDeformation/00a9a438e71b7f2742f83341582e709e2796f79d/Images/01.gif -------------------------------------------------------------------------------- /Images/02.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitasenjudesign/UnityARFaceDeformation/00a9a438e71b7f2742f83341582e709e2796f79d/Images/02.gif -------------------------------------------------------------------------------- /Images/03.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitasenjudesign/UnityARFaceDeformation/00a9a438e71b7f2742f83341582e709e2796f79d/Images/03.gif -------------------------------------------------------------------------------- /Images/04.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitasenjudesign/UnityARFaceDeformation/00a9a438e71b7f2742f83341582e709e2796f79d/Images/04.gif -------------------------------------------------------------------------------- /Images/05.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitasenjudesign/UnityARFaceDeformation/00a9a438e71b7f2742f83341582e709e2796f79d/Images/05.gif -------------------------------------------------------------------------------- /Images/particle.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitasenjudesign/UnityARFaceDeformation/00a9a438e71b7f2742f83341582e709e2796f79d/Images/particle.gif -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Kitasenju Design 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.ads": "2.0.8", 4 | "com.unity.analytics": "2.0.16", 5 | "com.unity.package-manager-ui": "1.9.11", 6 | "com.unity.purchasing": "2.0.3", 7 | "com.unity.textmeshpro": "1.2.4", 8 | "com.unity.modules.ai": "1.0.0", 9 | "com.unity.modules.animation": "1.0.0", 10 | "com.unity.modules.assetbundle": "1.0.0", 11 | "com.unity.modules.audio": "1.0.0", 12 | "com.unity.modules.cloth": "1.0.0", 13 | "com.unity.modules.director": "1.0.0", 14 | "com.unity.modules.imageconversion": "1.0.0", 15 | "com.unity.modules.imgui": "1.0.0", 16 | "com.unity.modules.jsonserialize": "1.0.0", 17 | "com.unity.modules.particlesystem": "1.0.0", 18 | "com.unity.modules.physics": "1.0.0", 19 | "com.unity.modules.physics2d": "1.0.0", 20 | "com.unity.modules.screencapture": "1.0.0", 21 | "com.unity.modules.terrain": "1.0.0", 22 | "com.unity.modules.terrainphysics": "1.0.0", 23 | "com.unity.modules.tilemap": "1.0.0", 24 | "com.unity.modules.ui": "1.0.0", 25 | "com.unity.modules.uielements": "1.0.0", 26 | "com.unity.modules.umbra": "1.0.0", 27 | "com.unity.modules.unityanalytics": "1.0.0", 28 | "com.unity.modules.unitywebrequest": "1.0.0", 29 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 30 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 31 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 32 | "com.unity.modules.unitywebrequestwww": "1.0.0", 33 | "com.unity.modules.vehicles": "1.0.0", 34 | "com.unity.modules.video": "1.0.0", 35 | "com.unity.modules.vr": "1.0.0", 36 | "com.unity.modules.wind": "1.0.0", 37 | "com.unity.modules.xr": "1.0.0" 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | m_SpeedOfSound: 347 9 | Doppler Factor: 1 10 | Default Speaker Mode: 2 11 | m_DSPBufferSize: 0 12 | -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | m_Gravity: {x: 0, y: -9.81000042, z: 0} 7 | m_DefaultMaterial: {fileID: 0} 8 | m_BounceThreshold: 2 9 | m_SleepVelocity: .150000006 10 | m_SleepAngularVelocity: .140000001 11 | m_MaxAngularVelocity: 7 12 | m_MinPenetrationForPenalty: .00999999978 13 | m_SolverIterationCount: 6 14 | m_RaycastsHitTriggers: 1 15 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 16 | -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_WebSecurityEmulationEnabled: 0 10 | m_WebSecurityEmulationHostUrl: http://www.mydomain.com/mygame.unity3d 11 | m_DefaultBehaviorMode: 0 12 | m_SpritePackerMode: 2 13 | m_SpritePackerPaddingPower: 1 14 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd 15 | m_ProjectGenerationRootNamespace: 16 | -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_MinPenetrationForPenalty: 0.01 17 | m_BaumgarteScale: 0.2 18 | m_BaumgarteTimeOfImpactScale: 0.75 19 | m_TimeToSleep: 0.5 20 | m_LinearSleepTolerance: 0.01 21 | m_AngularSleepTolerance: 2 22 | m_QueriesHitTriggers: 1 23 | m_QueriesStartInColliders: 1 24 | m_ChangeStopsCallbacks: 0 25 | m_AlwaysShowColliders: 0 26 | m_ShowColliderSleep: 1 27 | m_ShowColliderContacts: 0 28 | m_ContactArrowScale: 0.2 29 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 30 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 31 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 32 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 33 | -------------------------------------------------------------------------------- /ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitasenjudesign/UnityARFaceDeformation/00a9a438e71b7f2742f83341582e709e2796f79d/ProjectSettings/PresetManager.asset -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2018.2.5f1 2 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 0 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Good 11 | pixelLightCount: 2 12 | shadows: 1 13 | shadowResolution: 1 14 | shadowProjection: 0 15 | shadowCascades: 2 16 | shadowDistance: 20 17 | shadowNearPlaneOffset: 2 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | blendWeights: 2 21 | textureQuality: 0 22 | anisotropicTextures: 1 23 | antiAliasing: 0 24 | softParticles: 0 25 | softVegetation: 1 26 | realtimeReflectionProbes: 1 27 | billboardsFaceCameraPosition: 1 28 | vSyncCount: 1 29 | lodBias: 1 30 | maximumLODLevel: 0 31 | particleRaycastBudget: 256 32 | asyncUploadTimeSlice: 2 33 | asyncUploadBufferSize: 4 34 | excludedTargetPlatforms: [] 35 | m_PerPlatformDefaultQuality: 36 | Android: 0 37 | FlashPlayer: 0 38 | GLES Emulation: 0 39 | PS3: 0 40 | Standalone: 0 41 | Web: 0 42 | Wii: 0 43 | XBOX360: 0 44 | iPhone: 0 45 | -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - 17 | - 18 | - ARKitPlane 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: .0199999996 7 | Maximum Allowed Timestep: .333333343 8 | m_TimeScale: 1 9 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | m_Enabled: 1 7 | m_TestMode: 0 8 | m_TestEventUrl: 9 | m_TestConfigUrl: 10 | m_TestInitMode: 0 11 | CrashReportingSettings: 12 | m_EventUrl: https://perf-events.cloud.unity3d.com/api/events/crashes 13 | m_NativeEventUrl: https://perf-events.cloud.unity3d.com/symbolicate 14 | m_Enabled: 0 15 | m_CaptureEditorExceptions: 1 16 | UnityPurchasingSettings: 17 | m_Enabled: 0 18 | m_TestMode: 0 19 | UnityAnalyticsSettings: 20 | m_Enabled: 0 21 | m_InitializeOnStartup: 1 22 | m_TestMode: 0 23 | m_TestEventUrl: 24 | m_TestConfigUrl: 25 | UnityAdsSettings: 26 | m_Enabled: 0 27 | m_InitializeOnStartup: 1 28 | m_TestMode: 0 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | m_GameIds: {} 32 | m_GameId: 33 | PerformanceReportingSettings: 34 | m_Enabled: 0 35 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # AR Face Deformation with Unity-ARKit-Plugin 2 | 3 | [Unity-ARKit-Plugin](https://bitbucket.org/Unity-Technologies/unity-arkit-plugin)の[FaceTracking](https://blogs.unity3d.com/jp/2017/11/03/arkit-face-tracking-on-iphone-x/)を使って、顔の変形を行うためのサンプルコードです。 4 | [JIDO-RHYTHM](http://kitasenjudesign.com/jido-rhythm/)というアプリ制作時に使いました。コードの解説は[こちらへ](https://qiita.com/_nabe/items/5463c67f1d92f6c4df18)。 5 | 6 | Sample code for deforming the face using [Unity-ARKit-Plugin](https://bitbucket.org/Unity-Technologies/unity-arkit-plugin) and [Face Tracking](https://blogs.unity3d.com/jp/2017/11/03/arkit-face-tracking-on-iphone-x/). 7 | I used it for [JIDO-RHYTHM](http://kitasenjudesign.com/jido-rhythm/) app. 8 | 9 | ## Examples 10 | ![sample01](./Images/01.gif) 11 | ![sample02](./Images/02.gif) 12 | ![sample03](./Images/03.gif) 13 | ![sample04](./Images/04.gif) 14 | ![sample04](./Images/05.gif) 15 | ![particle](./Images/particle.gif) 16 | 17 | 18 | ## License 19 | [MIT](./LICENSE) 20 | -------------------------------------------------------------------------------- /particle.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kitasenjudesign/UnityARFaceDeformation/00a9a438e71b7f2742f83341582e709e2796f79d/particle.gif --------------------------------------------------------------------------------