Skip to content

Commit

Permalink
Demo Upload
Browse files Browse the repository at this point in the history
  • Loading branch information
alon-grinshpoon committed Oct 14, 2020
1 parent 931b30f commit d7a99fd
Show file tree
Hide file tree
Showing 2,097 changed files with 263,638 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Hand Tracking Demo/Assets/Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 52 additions & 0 deletions Hand Tracking Demo/Assets/Editor/EditorScripts.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using UnityEditor.Callbacks;
#if UNITY_IOS
using UnityEditor.iOS.Xcode;
#endif
using System.IO;

public class EditorScripts : MonoBehaviour
{
[PostProcessBuild (999)]
public static void OnPostProcessBuild (BuildTarget buildTarget, string path)
{
#if UNITY_IOS

if (buildTarget == BuildTarget.iOS)
{
string projectPath = path + "/Unity-iPhone.xcodeproj/project.pbxproj";

string mainTargetGuid;

string unityFrameworkTargetGuid;

PBXProject pbxProject = new PBXProject();

var unityMainTargetGuidMethod = pbxProject.GetType().GetMethod("GetUnityMainTargetGuid");
var unityFrameworkTargetGuidMethod = pbxProject.GetType().GetMethod("GetUnityFrameworkTargetGuid");

pbxProject.ReadFromFile(projectPath);

if (unityMainTargetGuidMethod != null && unityFrameworkTargetGuidMethod != null)
{
mainTargetGuid = (string)unityMainTargetGuidMethod.Invoke(pbxProject, null);
unityFrameworkTargetGuid = (string)unityFrameworkTargetGuidMethod.Invoke(pbxProject, null);
pbxProject.SetBuildProperty(unityFrameworkTargetGuid, "ENABLE_BITCODE", "NO");
}

else
{
mainTargetGuid = pbxProject.TargetGuidByName("Unity-iPhone");
unityFrameworkTargetGuid = mainTargetGuid;
pbxProject.SetBuildProperty(mainTargetGuid, "ENABLE_BITCODE", "NO");
pbxProject.SetBuildProperty(unityFrameworkTargetGuid, "ENABLE_BITCODE", "NO");
}

pbxProject.WriteToFile(projectPath);
}
#endif
}
}
12 changes: 12 additions & 0 deletions Hand Tracking Demo/Assets/Editor/EditorScripts.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

51 changes: 51 additions & 0 deletions Hand Tracking Demo/Assets/Editor/ManoMotionSetup.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
//20/11/2019 Credits to Alpha Developer Sathish Raja Bommannan for contributing to our tech.

using UnityEngine;
using UnityEditor;
#if UNITY_ANDROID
using UnityEngine.Android;
using System;
#endif
[InitializeOnLoad]
public class ManoMotionSetup
{
static ManoMotionSetup()
{
if (PlayerSettings.applicationIdentifier.Contains("com.DefaultCompany"))
{
PlayerSettings.applicationIdentifier = "com.manomotion.sdklitearfoundation";
Debug.Log("Setting bundle id to com.manomotion.sdklitearfoundation from ManoMotionSetup script");
}

#if UNITY_ANDROID
Debug.Log("Setting up ManoMotion Library Requirements");

if (PlayerSettings.Android.minSdkVersion <= AndroidSdkVersions.AndroidApiLevel23)
{
PlayerSettings.Android.minSdkVersion = AndroidSdkVersions.AndroidApiLevel24;
Debug.Log("Setting Minimum Android API level to 24");
}

PlayerSettings.Android.preferredInstallLocation = AndroidPreferredInstallLocation.PreferExternal;
PlayerSettings.Android.forceInternetPermission = true;
PlayerSettings.Android.forceSDCardPermission = true;
PlayerSettings.SetScriptingBackend(BuildTargetGroup.Android, ScriptingImplementation.IL2CPP);
PlayerSettings.Android.targetArchitectures = AndroidArchitecture.ARM64;
Debug.Log("Successfully set up ManoMotion Library Requirements");
#endif
#if UNITY_IOS
int arm64Architecture = 1;
if (PlayerSettings.iOS.targetOSVersionString == "10.0")
{
PlayerSettings.iOS.targetOSVersionString = "11.0";
}
PlayerSettings.SetArchitecture(BuildTargetGroup.iOS, arm64Architecture);
if (PlayerSettings.iOS.cameraUsageDescription == "")
{
PlayerSettings.iOS.cameraUsageDescription = "This application requires camera permission in order to detect a hand when you place it in front of the camera and understand the gesture interaction. ";
}
PlayerSettings.SetScriptingBackend(BuildTargetGroup.iOS, ScriptingImplementation.IL2CPP);
PlayerSettings.SetArchitecture(BuildTargetGroup.iOS, arm64Architecture);
#endif
}
}
11 changes: 11 additions & 0 deletions Hand Tracking Demo/Assets/Editor/ManoMotionSetup.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Hand Tracking Demo/Assets/ManoMotion ARFoundation.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Hand Tracking Demo/Assets/ManoMotion ARFoundation/Assets.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: ARfoundationMaterial
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d7a99fd

Please sign in to comment.