├── README.md └── unity_with_android ├── android ├── .gitignore ├── .idea │ ├── gradle.xml │ ├── misc.xml │ ├── modules.xml │ └── runConfigurations.xml ├── app │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ ├── androidTest │ │ └── java │ │ │ └── com │ │ │ └── pieces │ │ │ └── asyourlike │ │ │ └── ExampleInstrumentedTest.java │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── pieces │ │ │ │ └── asyourlike │ │ │ │ └── MainActivity.java │ │ └── res │ │ │ ├── drawable-v24 │ │ │ └── ic_launcher_foreground.xml │ │ │ ├── drawable │ │ │ └── ic_launcher_background.xml │ │ │ ├── layout │ │ │ └── activity_main.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ ├── ic_launcher.xml │ │ │ └── ic_launcher_round.xml │ │ │ ├── mipmap-hdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ └── values │ │ │ ├── colors.xml │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ └── test │ │ └── java │ │ └── com │ │ └── pieces │ │ └── asyourlike │ │ └── ExampleUnitTest.java ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── myunitylib │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ ├── androidTest │ │ └── java │ │ │ └── com │ │ │ └── jing │ │ │ └── unity │ │ │ └── ExampleInstrumentedTest.java │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── jing │ │ │ │ └── unity │ │ │ │ └── Unity2Android.java │ │ └── res │ │ │ └── values │ │ │ └── strings.xml │ │ └── test │ │ └── java │ │ └── com │ │ └── jing │ │ └── unity │ │ └── ExampleUnitTest.java └── settings.gradle └── unity ├── .vs └── unity │ └── v14 │ └── .suo ├── Assets ├── Logo.meta ├── Logo │ ├── head_icon_rounded.png │ ├── head_icon_rounded.png.meta │ ├── pieceS_icon_corner.png │ └── pieceS_icon_corner.png.meta ├── Main.cs ├── Main.cs.meta ├── Main.unity ├── Main.unity.meta ├── Plugins.meta └── Plugins │ ├── Android.meta │ └── Android │ ├── myunitylib-debug.aar │ └── myunitylib-debug.aar.meta ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset └── UnityConnectSettings.asset ├── UnityPackageManager └── manifest.json ├── unity.csproj └── unity.sln /README.md: -------------------------------------------------------------------------------- 1 | ## 引言 2 | > 最近为了实现Unity与Android之间的通信,在网络上发现了很多种实现方案。有打包Jar的,有打包aar的,有直接拷贝文件的。试了几种方案虽然都能解决需求,但是使用起来给我的感觉并不是很舒服。在各种尝试中,已了解了Unity和Android之间通信的底层原理。该方案为本人结合Java特性所给出,可以减少很多其它方案的一些不明确以及繁琐的步骤。 3 | 4 | ## 本文适用对象 5 | * 有一定的Unity开发经验,会使用Unity 6 | * 有一定的Android开发经验,会使用AndroidStudio 7 | 8 | ## 方案优势 9 | * 不需要引用unity下的class.jar 10 | * 不用在Unity的/Plugins/Android下放置AndroidManifest.xml文件 11 | * Unity打包时PackageName不依赖于引用文件 12 | * 发布简单,只需要导出arr并直接拷贝到/Plugins/Android目录下即可使用,不用对文件做任何修改 13 | 14 | 15 | ## 文章DEMO对应的IDE版本 16 | * AndroidStudio 3.0 (2.1亲测通过) 17 | * Unity 2017.2 (5.4.3亲测通过) 18 | 19 | 20 | # 流程 21 | ### Android部分 22 | ##### 创建AndroidStudio项目 23 | 1. 首先我们打开AndroidStudio,并创建一个新项目,这里随便填写项目名、包名即可,因为这个项目我们后面并不会用到。 24 | 2. SDK我们选最低的就行。 25 | 3. Activity我们选个EmptyActivity也行。 26 | ![1.png](http://upload-images.jianshu.io/upload_images/9825434-eddd9988e0910fce.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) 27 | 然后我们点击「Finish」完成AndroidStudio项目创建。 28 | 29 | ##### 创建和unity交互的Moudle项目 30 | 1. 项目创建好以后开始我们的主菜,选中app然后新建一个moudle 31 | ![2.png](http://upload-images.jianshu.io/upload_images/9825434-b83f3359664ed5b5.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) 32 | 33 | 2. 类型选择「Android Library」 34 | ![3.png](http://upload-images.jianshu.io/upload_images/9825434-216b4310ce8e85d1.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) 35 | 36 | 3. Application/Library name认真填写,之后为arr导出的名称,这里我们叫「MyUnityLib」。 37 | 4. Module name没有强迫症就不用管它 38 | 5. Package name认真填写,之后unity里会用到,不过它和unity导出的包名没有什么关系这里我们叫「com.jing.unity」好了 39 | 6. Minimum SDK能选多低选多低,反正不超过unity发布的版本就行 40 | ![4.png](http://upload-images.jianshu.io/upload_images/9825434-064469538ba3b5af.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) 41 | 42 | 7. 创建 43 | 44 | 8. 然后我们在com.jing.unity包下创建一个类,作为Unity和Android通信的核心类,名字尽量炫酷一点,这里我们叫「Unity2Android」 45 | ![6.png](http://upload-images.jianshu.io/upload_images/9825434-0b1f5ba4a446968f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) 46 | 47 | 48 | ##### 编写Android端代码 49 | 9. 然后我们直接粘贴该类的代码,讲解直接看注释。这里我们通过Java的反射原理来获取本来导入class.jar类才能引用到的com.unity3d.player.UnityPlayer包下的currentActivity上下文。同理给unity发消息也是反射原理。「getActivity」和「callUnity」这两个方法,有一定的开发经验应该很容易理解。 50 | 这里我们实现一个简单的接口「showToast」。 51 | 52 | package com.jing.unity; 53 | 54 | import android.app.Activity; 55 | import android.widget.Toast; 56 | 57 | import java.lang.reflect.InvocationTargetException; 58 | import java.lang.reflect.Method; 59 | 60 | /** 61 | * Created by Jing on 2018-1-18. 62 | */ 63 | public class Unity2Android { 64 | 65 | /** 66 | * unity项目启动时的的上下文 67 | */ 68 | private Activity _unityActivity; 69 | /** 70 | * 获取unity项目的上下文 71 | * @return 72 | */ 73 | Activity getActivity(){ 74 | if(null == _unityActivity) { 75 | try { 76 | Class classtype = Class.forName("com.unity3d.player.UnityPlayer"); 77 | Activity activity = (Activity) classtype.getDeclaredField("currentActivity").get(classtype); 78 | _unityActivity = activity; 79 | } catch (ClassNotFoundException e) { 80 | 81 | } catch (IllegalAccessException e) { 82 | 83 | } catch (NoSuchFieldException e) { 84 | 85 | } 86 | } 87 | return _unityActivity; 88 | } 89 | 90 | /** 91 | * 调用Unity的方法 92 | * @param gameObjectName 调用的GameObject的名称 93 | * @param functionName 方法名 94 | * @param args 参数 95 | * @return 调用是否成功 96 | */ 97 | boolean callUnity(String gameObjectName, String functionName, String args){ 98 | try { 99 | Class classtype = Class.forName("com.unity3d.player.UnityPlayer"); 100 | Method method =classtype.getMethod("UnitySendMessage", String.class,String.class,String.class); 101 | method.invoke(classtype,gameObjectName,functionName,args); 102 | return true; 103 | } catch (ClassNotFoundException e) { 104 | 105 | } catch (NoSuchMethodException e) { 106 | 107 | } catch (IllegalAccessException e) { 108 | 109 | } catch (InvocationTargetException e) { 110 | 111 | } 112 | return false; 113 | } 114 | 115 | /** 116 | * Toast显示unity发送过来的内容 117 | * @param content 消息的内容 118 | * @return 调用是否成功 119 | */ 120 | public boolean showToast(String content){ 121 | Toast.makeText(getActivity(),content,Toast.LENGTH_SHORT).show(); 122 | //这里是主动调用Unity中的方法,该方法之后unity部分会讲到 123 | callUnity("Main Camera","FromAndroid", "hello unity i'm android"); 124 | return true; 125 | } 126 | } 127 | 128 | 129 | ##### 导出arr准备给unity使用 130 | 10. 代码写好了我们选中module然后选择「Build」「Rebuild Project」 131 | ![7.png](http://upload-images.jianshu.io/upload_images/9825434-feffddaaa8148784.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) 132 | 133 | 11. 接着将这个arr文件找到,就是我们要导入到unity的文件了。 134 | 135 | ### Unity部分 136 | 1. 创建一个unity项目 137 | 2. 创建目录Assets/Plugins/Android,并将刚才导出的arr文件放到该文件夹下,我们的导入就算完成了。没错就是这么Easy,然后我们看看怎么来调用它。 138 | ![8.png](http://upload-images.jianshu.io/upload_images/9825434-89774cf4717820eb.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) 139 | 140 | 3. 在界面上放一个按钮,并且创建一个Script绑定到「Main Camera」。用一个文本控件来展示Android发送过来的消息。 141 | 4. Script的代码内容如下 142 | 143 | using UnityEngine; 144 | using UnityEngine.UI; 145 | 146 | public class Main : MonoBehaviour { 147 | 148 | /// 149 | /// 场景上的文本框用来显示android发送过来的内容 150 | /// 151 | public Text text; 152 | 153 | /// 154 | /// android原生代码对象 155 | /// 156 | AndroidJavaObject _ajc; 157 | 158 | void Start () { 159 | //通过该API来实例化导入的arr中对应的类 160 | _ajc = new AndroidJavaObject("com.jing.unity.Unity2Android"); 161 | } 162 | 163 | void Update () { 164 | 165 | } 166 | 167 | /// 168 | /// 场景上按点击时触发该方法 169 | /// 170 | public void OnBtnClick() 171 | { 172 | //通过API来调用原生代码的方法 173 | bool success = _ajc.Call("showToast","this is unity"); 174 | if(true == success) 175 | { 176 | //请求成功 177 | } 178 | } 179 | 180 | /// 181 | /// 原生层通过该方法传回信息 182 | /// 183 | /// 184 | public void FromAndroid(string content) 185 | { 186 | text.text = content; 187 | } 188 | } 189 | 190 | 5. 然后打包APK到我们的Android设备上进行测试。 191 | ![9.png](http://upload-images.jianshu.io/upload_images/9825434-4fb8f6021fede209.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) 192 | 6. 点击按钮,查看效果 193 | ![10.png](http://upload-images.jianshu.io/upload_images/9825434-4c42ed411198c88a.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) 194 | 195 | 196 | 197 | ## DEMO地址 198 | * 「国外git」GitHub:[https://github.com/power-pieces/unity_with_android](https://github.com/power-pieces/unity_with_android) 199 | * 「国内git」Coding:[https://coding.net/u/jinglikeblue/p/unity_with_android/git](https://coding.net/u/jinglikeblue/p/unity_with_android/git) 200 | 201 | ## 结束语 202 | - aar和jar的区别各位可以自行百度了解。 203 | - 如果要对接第三方库,可以在moudle下对接,并打包aar给Unity使用。切记jar需要放到aar的libs下引用,才可以在打包的时候一并导出。通过gradle的网络下载编译方式是不会被打包到aar中的。gradle网络下载的文件的jar可以自行百度查看如何找到。 -------------------------------------------------------------------------------- /unity_with_android/android/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .externalNativeBuild 10 | -------------------------------------------------------------------------------- /unity_with_android/android/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 18 | 19 | -------------------------------------------------------------------------------- /unity_with_android/android/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 16 | 26 | 27 | 28 | 29 | 30 | 31 | 33 | -------------------------------------------------------------------------------- /unity_with_android/android/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /unity_with_android/android/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /unity_with_android/android/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /unity_with_android/android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 26 5 | defaultConfig { 6 | applicationId "com.pieces.asyourlike" 7 | minSdkVersion 15 8 | targetSdkVersion 26 9 | versionCode 1 10 | versionName "1.0" 11 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 12 | } 13 | buildTypes { 14 | release { 15 | minifyEnabled false 16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 17 | } 18 | } 19 | } 20 | 21 | dependencies { 22 | implementation fileTree(dir: 'libs', include: ['*.jar']) 23 | implementation 'com.android.support:appcompat-v7:26.1.0' 24 | implementation 'com.android.support.constraint:constraint-layout:1.0.2' 25 | testImplementation 'junit:junit:4.12' 26 | androidTestImplementation 'com.android.support.test:runner:1.0.1' 27 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' 28 | } 29 | -------------------------------------------------------------------------------- /unity_with_android/android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /unity_with_android/android/app/src/androidTest/java/com/pieces/asyourlike/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.pieces.asyourlike; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumented test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() throws Exception { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("com.pieces.asyourlike", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /unity_with_android/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /unity_with_android/android/app/src/main/java/com/pieces/asyourlike/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.pieces.asyourlike; 2 | 3 | import android.support.v7.app.AppCompatActivity; 4 | import android.os.Bundle; 5 | 6 | public class MainActivity extends AppCompatActivity { 7 | 8 | @Override 9 | protected void onCreate(Bundle savedInstanceState) { 10 | super.onCreate(savedInstanceState); 11 | setContentView(R.layout.activity_main); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /unity_with_android/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 12 | 13 | 19 | 22 | 25 | 26 | 27 | 28 | 34 | 35 | -------------------------------------------------------------------------------- /unity_with_android/android/app/src/main/res/drawable/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 10 | 15 | 20 | 25 | 30 | 35 | 40 | 45 | 50 | 55 | 60 | 65 | 70 | 75 | 80 | 85 | 90 | 95 | 100 | 105 | 110 | 115 | 120 | 125 | 130 | 135 | 140 | 145 | 150 | 155 | 160 | 165 | 170 | 171 | -------------------------------------------------------------------------------- /unity_with_android/android/app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /unity_with_android/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /unity_with_android/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /unity_with_android/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinglikeblue/unity_with_android/2c9ba42749753202fbe948111abea65525afc2f0/unity_with_android/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /unity_with_android/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinglikeblue/unity_with_android/2c9ba42749753202fbe948111abea65525afc2f0/unity_with_android/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /unity_with_android/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinglikeblue/unity_with_android/2c9ba42749753202fbe948111abea65525afc2f0/unity_with_android/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /unity_with_android/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinglikeblue/unity_with_android/2c9ba42749753202fbe948111abea65525afc2f0/unity_with_android/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /unity_with_android/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinglikeblue/unity_with_android/2c9ba42749753202fbe948111abea65525afc2f0/unity_with_android/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /unity_with_android/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinglikeblue/unity_with_android/2c9ba42749753202fbe948111abea65525afc2f0/unity_with_android/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /unity_with_android/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinglikeblue/unity_with_android/2c9ba42749753202fbe948111abea65525afc2f0/unity_with_android/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /unity_with_android/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinglikeblue/unity_with_android/2c9ba42749753202fbe948111abea65525afc2f0/unity_with_android/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /unity_with_android/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinglikeblue/unity_with_android/2c9ba42749753202fbe948111abea65525afc2f0/unity_with_android/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /unity_with_android/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinglikeblue/unity_with_android/2c9ba42749753202fbe948111abea65525afc2f0/unity_with_android/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /unity_with_android/android/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /unity_with_android/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | AsYourLike 3 | 4 | -------------------------------------------------------------------------------- /unity_with_android/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /unity_with_android/android/app/src/test/java/com/pieces/asyourlike/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.pieces.asyourlike; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /unity_with_android/android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | 5 | repositories { 6 | google() 7 | jcenter() 8 | } 9 | dependencies { 10 | classpath 'com.android.tools.build:gradle:3.0.0' 11 | 12 | 13 | // NOTE: Do not place your application dependencies here; they belong 14 | // in the individual module build.gradle files 15 | } 16 | } 17 | 18 | allprojects { 19 | repositories { 20 | google() 21 | jcenter() 22 | } 23 | } 24 | 25 | task clean(type: Delete) { 26 | delete rootProject.buildDir 27 | } 28 | -------------------------------------------------------------------------------- /unity_with_android/android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | org.gradle.jvmargs=-Xmx1536m 13 | 14 | # When configured, Gradle will run in incubating parallel mode. 15 | # This option should only be used with decoupled projects. More details, visit 16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 17 | # org.gradle.parallel=true 18 | -------------------------------------------------------------------------------- /unity_with_android/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinglikeblue/unity_with_android/2c9ba42749753202fbe948111abea65525afc2f0/unity_with_android/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /unity_with_android/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Thu Jan 18 22:45:24 CST 2018 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip 7 | -------------------------------------------------------------------------------- /unity_with_android/android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # Attempt to set APP_HOME 46 | # Resolve links: $0 may be a link 47 | PRG="$0" 48 | # Need this for relative symlinks. 49 | while [ -h "$PRG" ] ; do 50 | ls=`ls -ld "$PRG"` 51 | link=`expr "$ls" : '.*-> \(.*\)$'` 52 | if expr "$link" : '/.*' > /dev/null; then 53 | PRG="$link" 54 | else 55 | PRG=`dirname "$PRG"`"/$link" 56 | fi 57 | done 58 | SAVED="`pwd`" 59 | cd "`dirname \"$PRG\"`/" >/dev/null 60 | APP_HOME="`pwd -P`" 61 | cd "$SAVED" >/dev/null 62 | 63 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 64 | 65 | # Determine the Java command to use to start the JVM. 66 | if [ -n "$JAVA_HOME" ] ; then 67 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 68 | # IBM's JDK on AIX uses strange locations for the executables 69 | JAVACMD="$JAVA_HOME/jre/sh/java" 70 | else 71 | JAVACMD="$JAVA_HOME/bin/java" 72 | fi 73 | if [ ! -x "$JAVACMD" ] ; then 74 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 75 | 76 | Please set the JAVA_HOME variable in your environment to match the 77 | location of your Java installation." 78 | fi 79 | else 80 | JAVACMD="java" 81 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 82 | 83 | Please set the JAVA_HOME variable in your environment to match the 84 | location of your Java installation." 85 | fi 86 | 87 | # Increase the maximum file descriptors if we can. 88 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 89 | MAX_FD_LIMIT=`ulimit -H -n` 90 | if [ $? -eq 0 ] ; then 91 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 92 | MAX_FD="$MAX_FD_LIMIT" 93 | fi 94 | ulimit -n $MAX_FD 95 | if [ $? -ne 0 ] ; then 96 | warn "Could not set maximum file descriptor limit: $MAX_FD" 97 | fi 98 | else 99 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 100 | fi 101 | fi 102 | 103 | # For Darwin, add options to specify how the application appears in the dock 104 | if $darwin; then 105 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 106 | fi 107 | 108 | # For Cygwin, switch paths to Windows format before running java 109 | if $cygwin ; then 110 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 111 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 112 | JAVACMD=`cygpath --unix "$JAVACMD"` 113 | 114 | # We build the pattern for arguments to be converted via cygpath 115 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 116 | SEP="" 117 | for dir in $ROOTDIRSRAW ; do 118 | ROOTDIRS="$ROOTDIRS$SEP$dir" 119 | SEP="|" 120 | done 121 | OURCYGPATTERN="(^($ROOTDIRS))" 122 | # Add a user-defined pattern to the cygpath arguments 123 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 124 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 125 | fi 126 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 127 | i=0 128 | for arg in "$@" ; do 129 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 130 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 131 | 132 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 133 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 134 | else 135 | eval `echo args$i`="\"$arg\"" 136 | fi 137 | i=$((i+1)) 138 | done 139 | case $i in 140 | (0) set -- ;; 141 | (1) set -- "$args0" ;; 142 | (2) set -- "$args0" "$args1" ;; 143 | (3) set -- "$args0" "$args1" "$args2" ;; 144 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 145 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 146 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 147 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 148 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 149 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 150 | esac 151 | fi 152 | 153 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 154 | function splitJvmOpts() { 155 | JVM_OPTS=("$@") 156 | } 157 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 158 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 159 | 160 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 161 | -------------------------------------------------------------------------------- /unity_with_android/android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /unity_with_android/android/myunitylib/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /unity_with_android/android/myunitylib/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | android { 4 | compileSdkVersion 26 5 | 6 | 7 | 8 | defaultConfig { 9 | minSdkVersion 15 10 | targetSdkVersion 26 11 | versionCode 1 12 | versionName "1.0" 13 | 14 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 15 | 16 | } 17 | 18 | buildTypes { 19 | release { 20 | minifyEnabled false 21 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 22 | } 23 | } 24 | 25 | } 26 | 27 | dependencies { 28 | implementation fileTree(dir: 'libs', include: ['*.jar']) 29 | 30 | implementation 'com.android.support:appcompat-v7:26.1.0' 31 | testImplementation 'junit:junit:4.12' 32 | androidTestImplementation 'com.android.support.test:runner:1.0.1' 33 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' 34 | } 35 | -------------------------------------------------------------------------------- /unity_with_android/android/myunitylib/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /unity_with_android/android/myunitylib/src/androidTest/java/com/jing/unity/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.jing.unity; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumented test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() throws Exception { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("com.jing.unity.test", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /unity_with_android/android/myunitylib/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | -------------------------------------------------------------------------------- /unity_with_android/android/myunitylib/src/main/java/com/jing/unity/Unity2Android.java: -------------------------------------------------------------------------------- 1 | package com.jing.unity; 2 | 3 | import android.app.Activity; 4 | import android.widget.Toast; 5 | 6 | import java.lang.reflect.InvocationTargetException; 7 | import java.lang.reflect.Method; 8 | 9 | /** 10 | * Created by Jing on 2018-1-18. 11 | */ 12 | public class Unity2Android { 13 | 14 | /** 15 | * unity项目启动时的的上下文 16 | */ 17 | private Activity _unityActivity; 18 | /** 19 | * 获取unity项目的上下文 20 | * @return 21 | */ 22 | Activity getActivity(){ 23 | if(null == _unityActivity) { 24 | try { 25 | Class classtype = Class.forName("com.unity3d.player.UnityPlayer"); 26 | Activity activity = (Activity) classtype.getDeclaredField("currentActivity").get(classtype); 27 | _unityActivity = activity; 28 | } catch (ClassNotFoundException e) { 29 | 30 | } catch (IllegalAccessException e) { 31 | 32 | } catch (NoSuchFieldException e) { 33 | 34 | } 35 | } 36 | return _unityActivity; 37 | } 38 | 39 | /** 40 | * 调用Unity的方法 41 | * @param gameObjectName 调用的GameObject的名称 42 | * @param functionName 方法名 43 | * @param args 参数 44 | * @return 调用是否成功 45 | */ 46 | boolean callUnity(String gameObjectName, String functionName, String args){ 47 | try { 48 | Class classtype = Class.forName("com.unity3d.player.UnityPlayer"); 49 | Method method =classtype.getMethod("UnitySendMessage", String.class,String.class,String.class); 50 | method.invoke(classtype,gameObjectName,functionName,args); 51 | return true; 52 | } catch (ClassNotFoundException e) { 53 | 54 | } catch (NoSuchMethodException e) { 55 | 56 | } catch (IllegalAccessException e) { 57 | 58 | } catch (InvocationTargetException e) { 59 | 60 | } 61 | return false; 62 | } 63 | 64 | /** 65 | * Toast显示unity发送过来的内容 66 | * @param content 消息的内容 67 | * @return 调用是否成功 68 | */ 69 | public boolean showToast(String content){ 70 | Toast.makeText(getActivity(),content,Toast.LENGTH_SHORT).show(); 71 | //这里是主动调用Unity中的方法,该方法之后unity部分会讲到 72 | callUnity("Main Camera","FromAndroid", "hello unity i'm android"); 73 | return true; 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /unity_with_android/android/myunitylib/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | MyUnityLib 3 | 4 | -------------------------------------------------------------------------------- /unity_with_android/android/myunitylib/src/test/java/com/jing/unity/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.jing.unity; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /unity_with_android/android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':myunitylib' 2 | -------------------------------------------------------------------------------- /unity_with_android/unity/.vs/unity/v14/.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinglikeblue/unity_with_android/2c9ba42749753202fbe948111abea65525afc2f0/unity_with_android/unity/.vs/unity/v14/.suo -------------------------------------------------------------------------------- /unity_with_android/unity/Assets/Logo.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f802d8be0a93bf244b928a52ff99fddc 3 | folderAsset: yes 4 | timeCreated: 1516291216 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /unity_with_android/unity/Assets/Logo/head_icon_rounded.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinglikeblue/unity_with_android/2c9ba42749753202fbe948111abea65525afc2f0/unity_with_android/unity/Assets/Logo/head_icon_rounded.png -------------------------------------------------------------------------------- /unity_with_android/unity/Assets/Logo/head_icon_rounded.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2774ece821240e94ca5778aa00ef15e8 3 | timeCreated: 1516291206 4 | licenseType: Free 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | externalObjects: {} 8 | serializedVersion: 4 9 | mipmaps: 10 | mipMapMode: 0 11 | enableMipMap: 0 12 | sRGBTexture: 1 13 | linearTexture: 0 14 | fadeOut: 0 15 | borderMipMap: 0 16 | mipMapsPreserveCoverage: 0 17 | alphaTestReferenceValue: 0.5 18 | mipMapFadeDistanceStart: 1 19 | mipMapFadeDistanceEnd: 3 20 | bumpmap: 21 | convertToNormalMap: 0 22 | externalNormalMap: 0 23 | heightScale: 0.25 24 | normalMapFilter: 0 25 | isReadable: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: -1 36 | mipBias: -1 37 | wrapU: 1 38 | wrapV: 1 39 | wrapW: 1 40 | nPOTScale: 0 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 1 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 49 | spritePixelsToUnits: 100 50 | alphaUsage: 1 51 | alphaIsTransparency: 1 52 | spriteTessellationDetail: -1 53 | textureType: 8 54 | textureShape: 1 55 | maxTextureSizeSet: 0 56 | compressionQualitySet: 0 57 | textureFormatSet: 0 58 | platformSettings: 59 | - buildTarget: DefaultTexturePlatform 60 | maxTextureSize: 2048 61 | resizeAlgorithm: 0 62 | textureFormat: -1 63 | textureCompression: 1 64 | compressionQuality: 50 65 | crunchedCompression: 0 66 | allowsAlphaSplitting: 0 67 | overridden: 0 68 | spriteSheet: 69 | serializedVersion: 2 70 | sprites: [] 71 | outline: [] 72 | physicsShape: [] 73 | spritePackingTag: 74 | userData: 75 | assetBundleName: 76 | assetBundleVariant: 77 | -------------------------------------------------------------------------------- /unity_with_android/unity/Assets/Logo/pieceS_icon_corner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinglikeblue/unity_with_android/2c9ba42749753202fbe948111abea65525afc2f0/unity_with_android/unity/Assets/Logo/pieceS_icon_corner.png -------------------------------------------------------------------------------- /unity_with_android/unity/Assets/Logo/pieceS_icon_corner.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 51a41cff88d1d1c4e873cba27c7ffc3b 3 | timeCreated: 1516291174 4 | licenseType: Free 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | externalObjects: {} 8 | serializedVersion: 4 9 | mipmaps: 10 | mipMapMode: 0 11 | enableMipMap: 0 12 | sRGBTexture: 1 13 | linearTexture: 0 14 | fadeOut: 0 15 | borderMipMap: 0 16 | mipMapsPreserveCoverage: 0 17 | alphaTestReferenceValue: 0.5 18 | mipMapFadeDistanceStart: 1 19 | mipMapFadeDistanceEnd: 3 20 | bumpmap: 21 | convertToNormalMap: 0 22 | externalNormalMap: 0 23 | heightScale: 0.25 24 | normalMapFilter: 0 25 | isReadable: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: -1 36 | mipBias: -1 37 | wrapU: 1 38 | wrapV: 1 39 | wrapW: 1 40 | nPOTScale: 0 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 1 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 49 | spritePixelsToUnits: 100 50 | alphaUsage: 1 51 | alphaIsTransparency: 1 52 | spriteTessellationDetail: -1 53 | textureType: 8 54 | textureShape: 1 55 | maxTextureSizeSet: 0 56 | compressionQualitySet: 0 57 | textureFormatSet: 0 58 | platformSettings: 59 | - buildTarget: DefaultTexturePlatform 60 | maxTextureSize: 2048 61 | resizeAlgorithm: 0 62 | textureFormat: -1 63 | textureCompression: 1 64 | compressionQuality: 50 65 | crunchedCompression: 0 66 | allowsAlphaSplitting: 0 67 | overridden: 0 68 | spriteSheet: 69 | serializedVersion: 2 70 | sprites: [] 71 | outline: [] 72 | physicsShape: [] 73 | spritePackingTag: 74 | userData: 75 | assetBundleName: 76 | assetBundleVariant: 77 | -------------------------------------------------------------------------------- /unity_with_android/unity/Assets/Main.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.UI; 3 | 4 | public class Main : MonoBehaviour { 5 | 6 | /// 7 | /// 场景上的文本框用来显示android发送过来的内容 8 | /// 9 | public Text text; 10 | 11 | /// 12 | /// android原生代码对象 13 | /// 14 | AndroidJavaObject _ajc; 15 | 16 | void Start () { 17 | //通过该API来实例化导入的arr中对应的类 18 | _ajc = new AndroidJavaObject("com.jing.unity.Unity2Android"); 19 | } 20 | 21 | void Update () { 22 | 23 | } 24 | 25 | /// 26 | /// 场景上按点击时触发该方法 27 | /// 28 | public void OnBtnClick() 29 | { 30 | //通过API来调用原生代码的方法 31 | bool success = _ajc.Call("showToast","this is unity"); 32 | if(true == success) 33 | { 34 | //请求成功 35 | } 36 | } 37 | 38 | /// 39 | /// 原生层通过该方法传回信息 40 | /// 41 | /// 42 | public void FromAndroid(string content) 43 | { 44 | text.text = content; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /unity_with_android/unity/Assets/Main.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cc4c3fef97a722e4685acc7cbaf51398 3 | timeCreated: 1516288912 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /unity_with_android/unity/Assets/Main.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 8 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 3 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} 42 | --- !u!157 &3 43 | LightmapSettings: 44 | m_ObjectHideFlags: 0 45 | serializedVersion: 11 46 | m_GIWorkflowMode: 1 47 | m_GISettings: 48 | serializedVersion: 2 49 | m_BounceScale: 1 50 | m_IndirectOutputScale: 1 51 | m_AlbedoBoost: 1 52 | m_TemporalCoherenceThreshold: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 0 55 | m_EnableRealtimeLightmaps: 0 56 | m_LightmapEditorSettings: 57 | serializedVersion: 9 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_TextureWidth: 1024 61 | m_TextureHeight: 1024 62 | m_AO: 0 63 | m_AOMaxDistance: 1 64 | m_CompAOExponent: 1 65 | m_CompAOExponentDirect: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 0 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 500 79 | m_PVRBounces: 2 80 | m_PVRFilterTypeDirect: 0 81 | m_PVRFilterTypeIndirect: 0 82 | m_PVRFilterTypeAO: 0 83 | m_PVRFilteringMode: 1 84 | m_PVRCulling: 1 85 | m_PVRFilteringGaussRadiusDirect: 1 86 | m_PVRFilteringGaussRadiusIndirect: 5 87 | m_PVRFilteringGaussRadiusAO: 2 88 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 89 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 90 | m_PVRFilteringAtrousPositionSigmaAO: 1 91 | m_LightingDataAsset: {fileID: 0} 92 | m_UseShadowmask: 1 93 | --- !u!196 &4 94 | NavMeshSettings: 95 | serializedVersion: 2 96 | m_ObjectHideFlags: 0 97 | m_BuildSettings: 98 | serializedVersion: 2 99 | agentTypeID: 0 100 | agentRadius: 0.5 101 | agentHeight: 2 102 | agentSlope: 45 103 | agentClimb: 0.4 104 | ledgeDropHeight: 0 105 | maxJumpAcrossDistance: 0 106 | minRegionArea: 2 107 | manualCellSize: 0 108 | cellSize: 0.16666667 109 | manualTileSize: 0 110 | tileSize: 256 111 | accuratePlacement: 0 112 | debug: 113 | m_Flags: 0 114 | m_NavMeshData: {fileID: 0} 115 | --- !u!1 &349892225 116 | GameObject: 117 | m_ObjectHideFlags: 0 118 | m_PrefabParentObject: {fileID: 0} 119 | m_PrefabInternal: {fileID: 0} 120 | serializedVersion: 5 121 | m_Component: 122 | - component: {fileID: 349892228} 123 | - component: {fileID: 349892227} 124 | - component: {fileID: 349892226} 125 | m_Layer: 0 126 | m_Name: EventSystem 127 | m_TagString: Untagged 128 | m_Icon: {fileID: 0} 129 | m_NavMeshLayer: 0 130 | m_StaticEditorFlags: 0 131 | m_IsActive: 1 132 | --- !u!114 &349892226 133 | MonoBehaviour: 134 | m_ObjectHideFlags: 0 135 | m_PrefabParentObject: {fileID: 0} 136 | m_PrefabInternal: {fileID: 0} 137 | m_GameObject: {fileID: 349892225} 138 | m_Enabled: 1 139 | m_EditorHideFlags: 0 140 | m_Script: {fileID: 1077351063, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} 141 | m_Name: 142 | m_EditorClassIdentifier: 143 | m_HorizontalAxis: Horizontal 144 | m_VerticalAxis: Vertical 145 | m_SubmitButton: Submit 146 | m_CancelButton: Cancel 147 | m_InputActionsPerSecond: 10 148 | m_RepeatDelay: 0.5 149 | m_ForceModuleActive: 0 150 | --- !u!114 &349892227 151 | MonoBehaviour: 152 | m_ObjectHideFlags: 0 153 | m_PrefabParentObject: {fileID: 0} 154 | m_PrefabInternal: {fileID: 0} 155 | m_GameObject: {fileID: 349892225} 156 | m_Enabled: 1 157 | m_EditorHideFlags: 0 158 | m_Script: {fileID: -619905303, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} 159 | m_Name: 160 | m_EditorClassIdentifier: 161 | m_FirstSelected: {fileID: 0} 162 | m_sendNavigationEvents: 1 163 | m_DragThreshold: 5 164 | --- !u!4 &349892228 165 | Transform: 166 | m_ObjectHideFlags: 0 167 | m_PrefabParentObject: {fileID: 0} 168 | m_PrefabInternal: {fileID: 0} 169 | m_GameObject: {fileID: 349892225} 170 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 171 | m_LocalPosition: {x: 0, y: 0, z: 0} 172 | m_LocalScale: {x: 1, y: 1, z: 1} 173 | m_Children: [] 174 | m_Father: {fileID: 0} 175 | m_RootOrder: 2 176 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 177 | --- !u!1 &421488290 178 | GameObject: 179 | m_ObjectHideFlags: 0 180 | m_PrefabParentObject: {fileID: 0} 181 | m_PrefabInternal: {fileID: 0} 182 | serializedVersion: 5 183 | m_Component: 184 | - component: {fileID: 421488294} 185 | - component: {fileID: 421488293} 186 | - component: {fileID: 421488292} 187 | - component: {fileID: 421488291} 188 | m_Layer: 5 189 | m_Name: Canvas 190 | m_TagString: Untagged 191 | m_Icon: {fileID: 0} 192 | m_NavMeshLayer: 0 193 | m_StaticEditorFlags: 0 194 | m_IsActive: 1 195 | --- !u!114 &421488291 196 | MonoBehaviour: 197 | m_ObjectHideFlags: 0 198 | m_PrefabParentObject: {fileID: 0} 199 | m_PrefabInternal: {fileID: 0} 200 | m_GameObject: {fileID: 421488290} 201 | m_Enabled: 1 202 | m_EditorHideFlags: 0 203 | m_Script: {fileID: 1301386320, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} 204 | m_Name: 205 | m_EditorClassIdentifier: 206 | m_IgnoreReversedGraphics: 1 207 | m_BlockingObjects: 0 208 | m_BlockingMask: 209 | serializedVersion: 2 210 | m_Bits: 4294967295 211 | --- !u!114 &421488292 212 | MonoBehaviour: 213 | m_ObjectHideFlags: 0 214 | m_PrefabParentObject: {fileID: 0} 215 | m_PrefabInternal: {fileID: 0} 216 | m_GameObject: {fileID: 421488290} 217 | m_Enabled: 1 218 | m_EditorHideFlags: 0 219 | m_Script: {fileID: 1980459831, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} 220 | m_Name: 221 | m_EditorClassIdentifier: 222 | m_UiScaleMode: 1 223 | m_ReferencePixelsPerUnit: 100 224 | m_ScaleFactor: 1 225 | m_ReferenceResolution: {x: 800, y: 600} 226 | m_ScreenMatchMode: 1 227 | m_MatchWidthOrHeight: 0 228 | m_PhysicalUnit: 3 229 | m_FallbackScreenDPI: 96 230 | m_DefaultSpriteDPI: 96 231 | m_DynamicPixelsPerUnit: 1 232 | --- !u!223 &421488293 233 | Canvas: 234 | m_ObjectHideFlags: 0 235 | m_PrefabParentObject: {fileID: 0} 236 | m_PrefabInternal: {fileID: 0} 237 | m_GameObject: {fileID: 421488290} 238 | m_Enabled: 1 239 | serializedVersion: 3 240 | m_RenderMode: 1 241 | m_Camera: {fileID: 1042111912} 242 | m_PlaneDistance: 100 243 | m_PixelPerfect: 0 244 | m_ReceivesEvents: 1 245 | m_OverrideSorting: 0 246 | m_OverridePixelPerfect: 0 247 | m_SortingBucketNormalizedSize: 0 248 | m_AdditionalShaderChannelsFlag: 0 249 | m_SortingLayerID: 0 250 | m_SortingOrder: 0 251 | m_TargetDisplay: 0 252 | --- !u!224 &421488294 253 | RectTransform: 254 | m_ObjectHideFlags: 0 255 | m_PrefabParentObject: {fileID: 0} 256 | m_PrefabInternal: {fileID: 0} 257 | m_GameObject: {fileID: 421488290} 258 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 259 | m_LocalPosition: {x: 0, y: 0, z: 90} 260 | m_LocalScale: {x: 0.009, y: 0.009, z: 0.009} 261 | m_Children: 262 | - {fileID: 1549081338} 263 | - {fileID: 927104555} 264 | - {fileID: 1879007792} 265 | m_Father: {fileID: 0} 266 | m_RootOrder: 1 267 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 268 | m_AnchorMin: {x: 0.5, y: 0.5} 269 | m_AnchorMax: {x: 0.5, y: 0.5} 270 | m_AnchoredPosition: {x: 0, y: 0} 271 | m_SizeDelta: {x: 100, y: 100} 272 | m_Pivot: {x: 0.5, y: 0.5} 273 | --- !u!1 &532169065 274 | GameObject: 275 | m_ObjectHideFlags: 0 276 | m_PrefabParentObject: {fileID: 0} 277 | m_PrefabInternal: {fileID: 0} 278 | serializedVersion: 5 279 | m_Component: 280 | - component: {fileID: 532169066} 281 | - component: {fileID: 532169068} 282 | - component: {fileID: 532169067} 283 | m_Layer: 5 284 | m_Name: Text 285 | m_TagString: Untagged 286 | m_Icon: {fileID: 0} 287 | m_NavMeshLayer: 0 288 | m_StaticEditorFlags: 0 289 | m_IsActive: 1 290 | --- !u!224 &532169066 291 | RectTransform: 292 | m_ObjectHideFlags: 0 293 | m_PrefabParentObject: {fileID: 0} 294 | m_PrefabInternal: {fileID: 0} 295 | m_GameObject: {fileID: 532169065} 296 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 297 | m_LocalPosition: {x: 0, y: 0, z: 0} 298 | m_LocalScale: {x: 1, y: 1, z: 1} 299 | m_Children: [] 300 | m_Father: {fileID: 1549081338} 301 | m_RootOrder: 0 302 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 303 | m_AnchorMin: {x: 0, y: 0} 304 | m_AnchorMax: {x: 1, y: 1} 305 | m_AnchoredPosition: {x: 0, y: 0} 306 | m_SizeDelta: {x: 0, y: 0} 307 | m_Pivot: {x: 0.5, y: 0.5} 308 | --- !u!114 &532169067 309 | MonoBehaviour: 310 | m_ObjectHideFlags: 0 311 | m_PrefabParentObject: {fileID: 0} 312 | m_PrefabInternal: {fileID: 0} 313 | m_GameObject: {fileID: 532169065} 314 | m_Enabled: 1 315 | m_EditorHideFlags: 0 316 | m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} 317 | m_Name: 318 | m_EditorClassIdentifier: 319 | m_Material: {fileID: 0} 320 | m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} 321 | m_RaycastTarget: 1 322 | m_OnCullStateChanged: 323 | m_PersistentCalls: 324 | m_Calls: [] 325 | m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, 326 | Version=1.0.0.0, Culture=neutral, PublicKeyToken=null 327 | m_FontData: 328 | m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} 329 | m_FontSize: 30 330 | m_FontStyle: 0 331 | m_BestFit: 0 332 | m_MinSize: 3 333 | m_MaxSize: 40 334 | m_Alignment: 4 335 | m_AlignByGeometry: 0 336 | m_RichText: 1 337 | m_HorizontalOverflow: 0 338 | m_VerticalOverflow: 0 339 | m_LineSpacing: 1 340 | m_Text: 'Click Me 341 | 342 | ' 343 | --- !u!222 &532169068 344 | CanvasRenderer: 345 | m_ObjectHideFlags: 0 346 | m_PrefabParentObject: {fileID: 0} 347 | m_PrefabInternal: {fileID: 0} 348 | m_GameObject: {fileID: 532169065} 349 | --- !u!1 &927104554 350 | GameObject: 351 | m_ObjectHideFlags: 0 352 | m_PrefabParentObject: {fileID: 0} 353 | m_PrefabInternal: {fileID: 0} 354 | serializedVersion: 5 355 | m_Component: 356 | - component: {fileID: 927104555} 357 | - component: {fileID: 927104557} 358 | - component: {fileID: 927104556} 359 | m_Layer: 5 360 | m_Name: Text 361 | m_TagString: Untagged 362 | m_Icon: {fileID: 0} 363 | m_NavMeshLayer: 0 364 | m_StaticEditorFlags: 0 365 | m_IsActive: 1 366 | --- !u!224 &927104555 367 | RectTransform: 368 | m_ObjectHideFlags: 0 369 | m_PrefabParentObject: {fileID: 0} 370 | m_PrefabInternal: {fileID: 0} 371 | m_GameObject: {fileID: 927104554} 372 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 373 | m_LocalPosition: {x: 0, y: -168.6, z: 0} 374 | m_LocalScale: {x: 1, y: 1, z: 1} 375 | m_Children: [] 376 | m_Father: {fileID: 421488294} 377 | m_RootOrder: 1 378 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 379 | m_AnchorMin: {x: 0, y: 0.5} 380 | m_AnchorMax: {x: 1, y: 0.5} 381 | m_AnchoredPosition: {x: 0, y: -168.6} 382 | m_SizeDelta: {x: 0, y: 99.3} 383 | m_Pivot: {x: 0.5, y: 0.5} 384 | --- !u!114 &927104556 385 | MonoBehaviour: 386 | m_ObjectHideFlags: 0 387 | m_PrefabParentObject: {fileID: 0} 388 | m_PrefabInternal: {fileID: 0} 389 | m_GameObject: {fileID: 927104554} 390 | m_Enabled: 1 391 | m_EditorHideFlags: 0 392 | m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} 393 | m_Name: 394 | m_EditorClassIdentifier: 395 | m_Material: {fileID: 0} 396 | m_Color: {r: 1, g: 1, b: 1, a: 1} 397 | m_RaycastTarget: 1 398 | m_OnCullStateChanged: 399 | m_PersistentCalls: 400 | m_Calls: [] 401 | m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, 402 | Version=1.0.0.0, Culture=neutral, PublicKeyToken=null 403 | m_FontData: 404 | m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} 405 | m_FontSize: 30 406 | m_FontStyle: 0 407 | m_BestFit: 0 408 | m_MinSize: 3 409 | m_MaxSize: 40 410 | m_Alignment: 4 411 | m_AlignByGeometry: 0 412 | m_RichText: 1 413 | m_HorizontalOverflow: 1 414 | m_VerticalOverflow: 1 415 | m_LineSpacing: 1 416 | m_Text: wait for android 417 | --- !u!222 &927104557 418 | CanvasRenderer: 419 | m_ObjectHideFlags: 0 420 | m_PrefabParentObject: {fileID: 0} 421 | m_PrefabInternal: {fileID: 0} 422 | m_GameObject: {fileID: 927104554} 423 | --- !u!1 &1042111911 424 | GameObject: 425 | m_ObjectHideFlags: 0 426 | m_PrefabParentObject: {fileID: 0} 427 | m_PrefabInternal: {fileID: 0} 428 | serializedVersion: 5 429 | m_Component: 430 | - component: {fileID: 1042111916} 431 | - component: {fileID: 1042111912} 432 | - component: {fileID: 1042111915} 433 | - component: {fileID: 1042111914} 434 | - component: {fileID: 1042111913} 435 | m_Layer: 0 436 | m_Name: Main Camera 437 | m_TagString: MainCamera 438 | m_Icon: {fileID: 0} 439 | m_NavMeshLayer: 0 440 | m_StaticEditorFlags: 0 441 | m_IsActive: 1 442 | --- !u!20 &1042111912 443 | Camera: 444 | m_ObjectHideFlags: 0 445 | m_PrefabParentObject: {fileID: 0} 446 | m_PrefabInternal: {fileID: 0} 447 | m_GameObject: {fileID: 1042111911} 448 | m_Enabled: 1 449 | serializedVersion: 2 450 | m_ClearFlags: 2 451 | m_BackGroundColor: {r: 0.13137977, g: 0.2346994, b: 0.39705884, a: 0} 452 | m_NormalizedViewPortRect: 453 | serializedVersion: 2 454 | x: 0 455 | y: 0 456 | width: 1 457 | height: 1 458 | near clip plane: 0.3 459 | far clip plane: 1000 460 | field of view: 60 461 | orthographic: 1 462 | orthographic size: 6.4 463 | m_Depth: -1 464 | m_CullingMask: 465 | serializedVersion: 2 466 | m_Bits: 4294967295 467 | m_RenderingPath: -1 468 | m_TargetTexture: {fileID: 0} 469 | m_TargetDisplay: 0 470 | m_TargetEye: 3 471 | m_HDR: 1 472 | m_AllowMSAA: 1 473 | m_ForceIntoRT: 0 474 | m_OcclusionCulling: 1 475 | m_StereoConvergence: 10 476 | m_StereoSeparation: 0.022 477 | --- !u!114 &1042111913 478 | MonoBehaviour: 479 | m_ObjectHideFlags: 0 480 | m_PrefabParentObject: {fileID: 0} 481 | m_PrefabInternal: {fileID: 0} 482 | m_GameObject: {fileID: 1042111911} 483 | m_Enabled: 1 484 | m_EditorHideFlags: 0 485 | m_Script: {fileID: 11500000, guid: cc4c3fef97a722e4685acc7cbaf51398, type: 3} 486 | m_Name: 487 | m_EditorClassIdentifier: 488 | text: {fileID: 927104556} 489 | --- !u!81 &1042111914 490 | AudioListener: 491 | m_ObjectHideFlags: 0 492 | m_PrefabParentObject: {fileID: 0} 493 | m_PrefabInternal: {fileID: 0} 494 | m_GameObject: {fileID: 1042111911} 495 | m_Enabled: 1 496 | --- !u!124 &1042111915 497 | Behaviour: 498 | m_ObjectHideFlags: 0 499 | m_PrefabParentObject: {fileID: 0} 500 | m_PrefabInternal: {fileID: 0} 501 | m_GameObject: {fileID: 1042111911} 502 | m_Enabled: 1 503 | --- !u!4 &1042111916 504 | Transform: 505 | m_ObjectHideFlags: 0 506 | m_PrefabParentObject: {fileID: 0} 507 | m_PrefabInternal: {fileID: 0} 508 | m_GameObject: {fileID: 1042111911} 509 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 510 | m_LocalPosition: {x: 0, y: 0, z: -10} 511 | m_LocalScale: {x: 1, y: 1, z: 1} 512 | m_Children: [] 513 | m_Father: {fileID: 0} 514 | m_RootOrder: 0 515 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 516 | --- !u!1 &1549081337 517 | GameObject: 518 | m_ObjectHideFlags: 0 519 | m_PrefabParentObject: {fileID: 0} 520 | m_PrefabInternal: {fileID: 0} 521 | serializedVersion: 5 522 | m_Component: 523 | - component: {fileID: 1549081338} 524 | - component: {fileID: 1549081341} 525 | - component: {fileID: 1549081340} 526 | - component: {fileID: 1549081339} 527 | m_Layer: 5 528 | m_Name: Button 529 | m_TagString: Untagged 530 | m_Icon: {fileID: 0} 531 | m_NavMeshLayer: 0 532 | m_StaticEditorFlags: 0 533 | m_IsActive: 1 534 | --- !u!224 &1549081338 535 | RectTransform: 536 | m_ObjectHideFlags: 0 537 | m_PrefabParentObject: {fileID: 0} 538 | m_PrefabInternal: {fileID: 0} 539 | m_GameObject: {fileID: 1549081337} 540 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 541 | m_LocalPosition: {x: -9, y: 15.299999, z: 0} 542 | m_LocalScale: {x: 1, y: 1, z: 1} 543 | m_Children: 544 | - {fileID: 532169066} 545 | m_Father: {fileID: 421488294} 546 | m_RootOrder: 0 547 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 548 | m_AnchorMin: {x: 0.5, y: 0.5} 549 | m_AnchorMax: {x: 0.5, y: 0.5} 550 | m_AnchoredPosition: {x: -9, y: 15.3} 551 | m_SizeDelta: {x: 285.4, y: 65.8} 552 | m_Pivot: {x: 0.5, y: 0.5} 553 | --- !u!114 &1549081339 554 | MonoBehaviour: 555 | m_ObjectHideFlags: 0 556 | m_PrefabParentObject: {fileID: 0} 557 | m_PrefabInternal: {fileID: 0} 558 | m_GameObject: {fileID: 1549081337} 559 | m_Enabled: 1 560 | m_EditorHideFlags: 0 561 | m_Script: {fileID: 1392445389, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} 562 | m_Name: 563 | m_EditorClassIdentifier: 564 | m_Navigation: 565 | m_Mode: 3 566 | m_SelectOnUp: {fileID: 0} 567 | m_SelectOnDown: {fileID: 0} 568 | m_SelectOnLeft: {fileID: 0} 569 | m_SelectOnRight: {fileID: 0} 570 | m_Transition: 1 571 | m_Colors: 572 | m_NormalColor: {r: 1, g: 1, b: 1, a: 1} 573 | m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} 574 | m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} 575 | m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} 576 | m_ColorMultiplier: 1 577 | m_FadeDuration: 0.1 578 | m_SpriteState: 579 | m_HighlightedSprite: {fileID: 0} 580 | m_PressedSprite: {fileID: 0} 581 | m_DisabledSprite: {fileID: 0} 582 | m_AnimationTriggers: 583 | m_NormalTrigger: Normal 584 | m_HighlightedTrigger: Highlighted 585 | m_PressedTrigger: Pressed 586 | m_DisabledTrigger: Disabled 587 | m_Interactable: 1 588 | m_TargetGraphic: {fileID: 1549081340} 589 | m_OnClick: 590 | m_PersistentCalls: 591 | m_Calls: 592 | - m_Target: {fileID: 1042111913} 593 | m_MethodName: OnBtnClick 594 | m_Mode: 1 595 | m_Arguments: 596 | m_ObjectArgument: {fileID: 0} 597 | m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine 598 | m_IntArgument: 0 599 | m_FloatArgument: 0 600 | m_StringArgument: 601 | m_BoolArgument: 0 602 | m_CallState: 2 603 | m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, 604 | Culture=neutral, PublicKeyToken=null 605 | --- !u!114 &1549081340 606 | MonoBehaviour: 607 | m_ObjectHideFlags: 0 608 | m_PrefabParentObject: {fileID: 0} 609 | m_PrefabInternal: {fileID: 0} 610 | m_GameObject: {fileID: 1549081337} 611 | m_Enabled: 1 612 | m_EditorHideFlags: 0 613 | m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} 614 | m_Name: 615 | m_EditorClassIdentifier: 616 | m_Material: {fileID: 0} 617 | m_Color: {r: 1, g: 1, b: 1, a: 1} 618 | m_RaycastTarget: 1 619 | m_OnCullStateChanged: 620 | m_PersistentCalls: 621 | m_Calls: [] 622 | m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, 623 | Version=1.0.0.0, Culture=neutral, PublicKeyToken=null 624 | m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} 625 | m_Type: 1 626 | m_PreserveAspect: 0 627 | m_FillCenter: 1 628 | m_FillMethod: 4 629 | m_FillAmount: 1 630 | m_FillClockwise: 1 631 | m_FillOrigin: 0 632 | --- !u!222 &1549081341 633 | CanvasRenderer: 634 | m_ObjectHideFlags: 0 635 | m_PrefabParentObject: {fileID: 0} 636 | m_PrefabInternal: {fileID: 0} 637 | m_GameObject: {fileID: 1549081337} 638 | --- !u!1 &1879007791 639 | GameObject: 640 | m_ObjectHideFlags: 0 641 | m_PrefabParentObject: {fileID: 0} 642 | m_PrefabInternal: {fileID: 0} 643 | serializedVersion: 5 644 | m_Component: 645 | - component: {fileID: 1879007792} 646 | - component: {fileID: 1879007794} 647 | - component: {fileID: 1879007793} 648 | m_Layer: 5 649 | m_Name: Text (1) 650 | m_TagString: Untagged 651 | m_Icon: {fileID: 0} 652 | m_NavMeshLayer: 0 653 | m_StaticEditorFlags: 0 654 | m_IsActive: 1 655 | --- !u!224 &1879007792 656 | RectTransform: 657 | m_ObjectHideFlags: 0 658 | m_PrefabParentObject: {fileID: 0} 659 | m_PrefabInternal: {fileID: 0} 660 | m_GameObject: {fileID: 1879007791} 661 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 662 | m_LocalPosition: {x: 0, y: -697.11115, z: 0} 663 | m_LocalScale: {x: 1, y: 1, z: 1} 664 | m_Children: [] 665 | m_Father: {fileID: 421488294} 666 | m_RootOrder: 2 667 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 668 | m_AnchorMin: {x: 0.5, y: 0} 669 | m_AnchorMax: {x: 0.5, y: 0} 670 | m_AnchoredPosition: {x: 0, y: 14} 671 | m_SizeDelta: {x: 160, y: 40} 672 | m_Pivot: {x: 0.5, y: 0} 673 | --- !u!114 &1879007793 674 | MonoBehaviour: 675 | m_ObjectHideFlags: 0 676 | m_PrefabParentObject: {fileID: 0} 677 | m_PrefabInternal: {fileID: 0} 678 | m_GameObject: {fileID: 1879007791} 679 | m_Enabled: 1 680 | m_EditorHideFlags: 0 681 | m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} 682 | m_Name: 683 | m_EditorClassIdentifier: 684 | m_Material: {fileID: 0} 685 | m_Color: {r: 1, g: 1, b: 1, a: 1} 686 | m_RaycastTarget: 1 687 | m_OnCullStateChanged: 688 | m_PersistentCalls: 689 | m_Calls: [] 690 | m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, 691 | Version=1.0.0.0, Culture=neutral, PublicKeyToken=null 692 | m_FontData: 693 | m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} 694 | m_FontSize: 30 695 | m_FontStyle: 0 696 | m_BestFit: 0 697 | m_MinSize: 2 698 | m_MaxSize: 40 699 | m_Alignment: 4 700 | m_AlignByGeometry: 0 701 | m_RichText: 1 702 | m_HorizontalOverflow: 1 703 | m_VerticalOverflow: 1 704 | m_LineSpacing: 1 705 | m_Text: Code By Jing 706 | --- !u!222 &1879007794 707 | CanvasRenderer: 708 | m_ObjectHideFlags: 0 709 | m_PrefabParentObject: {fileID: 0} 710 | m_PrefabInternal: {fileID: 0} 711 | m_GameObject: {fileID: 1879007791} 712 | -------------------------------------------------------------------------------- /unity_with_android/unity/Assets/Main.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 869504c2bf375b24ab98ee2fe9b70ee4 3 | timeCreated: 1516288534 4 | licenseType: Free 5 | DefaultImporter: 6 | externalObjects: {} 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity_with_android/unity/Assets/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 37d4ce4969e7552489ad86e48cc3bccd 3 | folderAsset: yes 4 | timeCreated: 1516288587 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /unity_with_android/unity/Assets/Plugins/Android.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 50edf3273fa760442821c9ba84633605 3 | folderAsset: yes 4 | timeCreated: 1516288593 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /unity_with_android/unity/Assets/Plugins/Android/myunitylib-debug.aar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jinglikeblue/unity_with_android/2c9ba42749753202fbe948111abea65525afc2f0/unity_with_android/unity/Assets/Plugins/Android/myunitylib-debug.aar -------------------------------------------------------------------------------- /unity_with_android/unity/Assets/Plugins/Android/myunitylib-debug.aar.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4973932a1a9920941a4e15864167d8c1 3 | timeCreated: 1516289787 4 | licenseType: Free 5 | PluginImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | iconMap: {} 9 | executionOrder: {} 10 | isPreloaded: 0 11 | isOverridable: 0 12 | platformData: 13 | - first: 14 | Android: Android 15 | second: 16 | enabled: 1 17 | settings: {} 18 | - first: 19 | Any: 20 | second: 21 | enabled: 0 22 | settings: {} 23 | - first: 24 | Editor: Editor 25 | second: 26 | enabled: 0 27 | settings: 28 | DefaultValueInitialized: true 29 | userData: 30 | assetBundleName: 31 | assetBundleVariant: 32 | -------------------------------------------------------------------------------- /unity_with_android/unity/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 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 0 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_AmbisonicDecoderPlugin: 16 | m_DisableAudio: 0 17 | m_VirtualizeEffects: 1 18 | -------------------------------------------------------------------------------- /unity_with_android/unity/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 | -------------------------------------------------------------------------------- /unity_with_android/unity/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 | serializedVersion: 3 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_EnablePCM: 1 18 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 19 | m_AutoSimulation: 1 20 | m_AutoSyncTransforms: 1 21 | -------------------------------------------------------------------------------- /unity_with_android/unity/ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: [] 8 | -------------------------------------------------------------------------------- /unity_with_android/unity/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: 5 7 | m_ExternalVersionControlSupport: Hidden Meta Files 8 | m_SerializationMode: 2 9 | m_DefaultBehaviorMode: 1 10 | m_SpritePackerMode: 4 11 | m_SpritePackerPaddingPower: 1 12 | m_EtcTextureCompressorBehavior: 1 13 | m_EtcTextureFastCompressor: 1 14 | m_EtcTextureNormalCompressor: 2 15 | m_EtcTextureBestCompressor: 4 16 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd 17 | m_ProjectGenerationRootNamespace: 18 | m_UserGeneratedProjectSuffix: 19 | m_CollabEditorSettings: 20 | inProgressEnabled: 1 21 | -------------------------------------------------------------------------------- /unity_with_android/unity/ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 12 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | - {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0} 39 | - {fileID: 16002, guid: 0000000000000000f000000000000000, type: 0} 40 | m_PreloadedShaders: [] 41 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 42 | type: 0} 43 | m_CustomRenderPipeline: {fileID: 0} 44 | m_TransparencySortMode: 0 45 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 46 | m_DefaultRenderingPath: 1 47 | m_DefaultMobileRenderingPath: 1 48 | m_TierSettings: [] 49 | m_LightmapStripping: 0 50 | m_FogStripping: 0 51 | m_InstancingStripping: 0 52 | m_LightmapKeepPlain: 1 53 | m_LightmapKeepDirCombined: 1 54 | m_LightmapKeepDynamicPlain: 1 55 | m_LightmapKeepDynamicDirCombined: 1 56 | m_LightmapKeepShadowMask: 1 57 | m_LightmapKeepSubtractive: 1 58 | m_FogKeepLinear: 1 59 | m_FogKeepExp: 1 60 | m_FogKeepExp2: 1 61 | m_AlbedoSwatchInfos: [] 62 | m_LightsUseLinearIntensity: 0 63 | m_LightsUseColorTemperature: 0 64 | -------------------------------------------------------------------------------- /unity_with_android/unity/ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!13 &1 4 | InputManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Axes: 8 | - serializedVersion: 3 9 | m_Name: Horizontal 10 | descriptiveName: 11 | descriptiveNegativeName: 12 | negativeButton: left 13 | positiveButton: right 14 | altNegativeButton: a 15 | altPositiveButton: d 16 | gravity: 3 17 | dead: 0.001 18 | sensitivity: 3 19 | snap: 1 20 | invert: 0 21 | type: 0 22 | axis: 0 23 | joyNum: 0 24 | - serializedVersion: 3 25 | m_Name: Vertical 26 | descriptiveName: 27 | descriptiveNegativeName: 28 | negativeButton: down 29 | positiveButton: up 30 | altNegativeButton: s 31 | altPositiveButton: w 32 | gravity: 3 33 | dead: 0.001 34 | sensitivity: 3 35 | snap: 1 36 | invert: 0 37 | type: 0 38 | axis: 0 39 | joyNum: 0 40 | - serializedVersion: 3 41 | m_Name: Fire1 42 | descriptiveName: 43 | descriptiveNegativeName: 44 | negativeButton: 45 | positiveButton: left ctrl 46 | altNegativeButton: 47 | altPositiveButton: mouse 0 48 | gravity: 1000 49 | dead: 0.001 50 | sensitivity: 1000 51 | snap: 0 52 | invert: 0 53 | type: 0 54 | axis: 0 55 | joyNum: 0 56 | - serializedVersion: 3 57 | m_Name: Fire2 58 | descriptiveName: 59 | descriptiveNegativeName: 60 | negativeButton: 61 | positiveButton: left alt 62 | altNegativeButton: 63 | altPositiveButton: mouse 1 64 | gravity: 1000 65 | dead: 0.001 66 | sensitivity: 1000 67 | snap: 0 68 | invert: 0 69 | type: 0 70 | axis: 0 71 | joyNum: 0 72 | - serializedVersion: 3 73 | m_Name: Fire3 74 | descriptiveName: 75 | descriptiveNegativeName: 76 | negativeButton: 77 | positiveButton: left shift 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: 0.001 82 | sensitivity: 1000 83 | snap: 0 84 | invert: 0 85 | type: 0 86 | axis: 0 87 | joyNum: 0 88 | - serializedVersion: 3 89 | m_Name: Jump 90 | descriptiveName: 91 | descriptiveNegativeName: 92 | negativeButton: 93 | positiveButton: space 94 | altNegativeButton: 95 | altPositiveButton: 96 | gravity: 1000 97 | dead: 0.001 98 | sensitivity: 1000 99 | snap: 0 100 | invert: 0 101 | type: 0 102 | axis: 0 103 | joyNum: 0 104 | - serializedVersion: 3 105 | m_Name: Mouse X 106 | descriptiveName: 107 | descriptiveNegativeName: 108 | negativeButton: 109 | positiveButton: 110 | altNegativeButton: 111 | altPositiveButton: 112 | gravity: 0 113 | dead: 0 114 | sensitivity: 0.1 115 | snap: 0 116 | invert: 0 117 | type: 1 118 | axis: 0 119 | joyNum: 0 120 | - serializedVersion: 3 121 | m_Name: Mouse Y 122 | descriptiveName: 123 | descriptiveNegativeName: 124 | negativeButton: 125 | positiveButton: 126 | altNegativeButton: 127 | altPositiveButton: 128 | gravity: 0 129 | dead: 0 130 | sensitivity: 0.1 131 | snap: 0 132 | invert: 0 133 | type: 1 134 | axis: 1 135 | joyNum: 0 136 | - serializedVersion: 3 137 | m_Name: Mouse ScrollWheel 138 | descriptiveName: 139 | descriptiveNegativeName: 140 | negativeButton: 141 | positiveButton: 142 | altNegativeButton: 143 | altPositiveButton: 144 | gravity: 0 145 | dead: 0 146 | sensitivity: 0.1 147 | snap: 0 148 | invert: 0 149 | type: 1 150 | axis: 2 151 | joyNum: 0 152 | - serializedVersion: 3 153 | m_Name: Horizontal 154 | descriptiveName: 155 | descriptiveNegativeName: 156 | negativeButton: 157 | positiveButton: 158 | altNegativeButton: 159 | altPositiveButton: 160 | gravity: 0 161 | dead: 0.19 162 | sensitivity: 1 163 | snap: 0 164 | invert: 0 165 | type: 2 166 | axis: 0 167 | joyNum: 0 168 | - serializedVersion: 3 169 | m_Name: Vertical 170 | descriptiveName: 171 | descriptiveNegativeName: 172 | negativeButton: 173 | positiveButton: 174 | altNegativeButton: 175 | altPositiveButton: 176 | gravity: 0 177 | dead: 0.19 178 | sensitivity: 1 179 | snap: 0 180 | invert: 1 181 | type: 2 182 | axis: 1 183 | joyNum: 0 184 | - serializedVersion: 3 185 | m_Name: Fire1 186 | descriptiveName: 187 | descriptiveNegativeName: 188 | negativeButton: 189 | positiveButton: joystick button 0 190 | altNegativeButton: 191 | altPositiveButton: 192 | gravity: 1000 193 | dead: 0.001 194 | sensitivity: 1000 195 | snap: 0 196 | invert: 0 197 | type: 0 198 | axis: 0 199 | joyNum: 0 200 | - serializedVersion: 3 201 | m_Name: Fire2 202 | descriptiveName: 203 | descriptiveNegativeName: 204 | negativeButton: 205 | positiveButton: joystick button 1 206 | altNegativeButton: 207 | altPositiveButton: 208 | gravity: 1000 209 | dead: 0.001 210 | sensitivity: 1000 211 | snap: 0 212 | invert: 0 213 | type: 0 214 | axis: 0 215 | joyNum: 0 216 | - serializedVersion: 3 217 | m_Name: Fire3 218 | descriptiveName: 219 | descriptiveNegativeName: 220 | negativeButton: 221 | positiveButton: joystick button 2 222 | altNegativeButton: 223 | altPositiveButton: 224 | gravity: 1000 225 | dead: 0.001 226 | sensitivity: 1000 227 | snap: 0 228 | invert: 0 229 | type: 0 230 | axis: 0 231 | joyNum: 0 232 | - serializedVersion: 3 233 | m_Name: Jump 234 | descriptiveName: 235 | descriptiveNegativeName: 236 | negativeButton: 237 | positiveButton: joystick button 3 238 | altNegativeButton: 239 | altPositiveButton: 240 | gravity: 1000 241 | dead: 0.001 242 | sensitivity: 1000 243 | snap: 0 244 | invert: 0 245 | type: 0 246 | axis: 0 247 | joyNum: 0 248 | - serializedVersion: 3 249 | m_Name: Submit 250 | descriptiveName: 251 | descriptiveNegativeName: 252 | negativeButton: 253 | positiveButton: return 254 | altNegativeButton: 255 | altPositiveButton: joystick button 0 256 | gravity: 1000 257 | dead: 0.001 258 | sensitivity: 1000 259 | snap: 0 260 | invert: 0 261 | type: 0 262 | axis: 0 263 | joyNum: 0 264 | - serializedVersion: 3 265 | m_Name: Submit 266 | descriptiveName: 267 | descriptiveNegativeName: 268 | negativeButton: 269 | positiveButton: enter 270 | altNegativeButton: 271 | altPositiveButton: space 272 | gravity: 1000 273 | dead: 0.001 274 | sensitivity: 1000 275 | snap: 0 276 | invert: 0 277 | type: 0 278 | axis: 0 279 | joyNum: 0 280 | - serializedVersion: 3 281 | m_Name: Cancel 282 | descriptiveName: 283 | descriptiveNegativeName: 284 | negativeButton: 285 | positiveButton: escape 286 | altNegativeButton: 287 | altPositiveButton: joystick button 1 288 | gravity: 1000 289 | dead: 0.001 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | -------------------------------------------------------------------------------- /unity_with_android/unity/ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 2 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | accuratePlacement: 0 88 | debug: 89 | m_Flags: 0 90 | m_SettingNames: 91 | - Humanoid 92 | -------------------------------------------------------------------------------- /unity_with_android/unity/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 | -------------------------------------------------------------------------------- /unity_with_android/unity/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: 3 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_BaumgarteScale: 0.2 17 | m_BaumgarteTimeOfImpactScale: 0.75 18 | m_TimeToSleep: 0.5 19 | m_LinearSleepTolerance: 0.01 20 | m_AngularSleepTolerance: 2 21 | m_DefaultContactOffset: 0.01 22 | m_AutoSimulation: 1 23 | m_QueriesHitTriggers: 1 24 | m_QueriesStartInColliders: 1 25 | m_ChangeStopsCallbacks: 0 26 | m_CallbacksOnDisable: 1 27 | m_AutoSyncTransforms: 1 28 | m_AlwaysShowColliders: 0 29 | m_ShowColliderSleep: 1 30 | m_ShowColliderContacts: 0 31 | m_ShowColliderAABB: 0 32 | m_ContactArrowScale: 0.2 33 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 34 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 35 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 36 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 37 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 38 | -------------------------------------------------------------------------------- /unity_with_android/unity/ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!129 &1 4 | PlayerSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 13 7 | productGUID: 307cb8e6fb44f664e9e5d557194bcadc 8 | AndroidProfiler: 0 9 | AndroidFilterTouchesWhenObscured: 0 10 | defaultScreenOrientation: 0 11 | targetDevice: 2 12 | useOnDemandResources: 0 13 | accelerometerFrequency: 60 14 | companyName: Pieces 15 | productName: "UnityAndroid\u901A\u4FE1" 16 | defaultCursor: {fileID: 0} 17 | cursorHotspot: {x: 0, y: 0} 18 | m_SplashScreenBackgroundColor: {r: 0.13333334, g: 0.23529413, b: 0.39607847, a: 1} 19 | m_ShowUnitySplashScreen: 1 20 | m_ShowUnitySplashLogo: 1 21 | m_SplashScreenOverlayOpacity: 1 22 | m_SplashScreenAnimation: 0 23 | m_SplashScreenLogoStyle: 1 24 | m_SplashScreenDrawMode: 1 25 | m_SplashScreenBackgroundAnimationZoom: 1 26 | m_SplashScreenLogoAnimationZoom: 1 27 | m_SplashScreenBackgroundLandscapeAspect: 1 28 | m_SplashScreenBackgroundPortraitAspect: 1 29 | m_SplashScreenBackgroundLandscapeUvs: 30 | serializedVersion: 2 31 | x: 0 32 | y: 0 33 | width: 1 34 | height: 1 35 | m_SplashScreenBackgroundPortraitUvs: 36 | serializedVersion: 2 37 | x: 0 38 | y: 0 39 | width: 1 40 | height: 1 41 | m_SplashScreenLogos: 42 | - logo: {fileID: 10404, guid: 0000000000000000e000000000000000, type: 0} 43 | duration: 2 44 | m_VirtualRealitySplashScreen: {fileID: 2800000, guid: 2774ece821240e94ca5778aa00ef15e8, 45 | type: 3} 46 | m_HolographicTrackingLossScreen: {fileID: 0} 47 | defaultScreenWidth: 1024 48 | defaultScreenHeight: 768 49 | defaultScreenWidthWeb: 960 50 | defaultScreenHeightWeb: 600 51 | m_StereoRenderingPath: 0 52 | m_ActiveColorSpace: 0 53 | m_MTRendering: 1 54 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 55 | iosShowActivityIndicatorOnLoading: -1 56 | androidShowActivityIndicatorOnLoading: -1 57 | tizenShowActivityIndicatorOnLoading: -1 58 | iosAppInBackgroundBehavior: 0 59 | displayResolutionDialog: 1 60 | iosAllowHTTPDownload: 1 61 | allowedAutorotateToPortrait: 1 62 | allowedAutorotateToPortraitUpsideDown: 1 63 | allowedAutorotateToLandscapeRight: 1 64 | allowedAutorotateToLandscapeLeft: 1 65 | useOSAutorotation: 1 66 | use32BitDisplayBuffer: 1 67 | disableDepthAndStencilBuffers: 0 68 | androidBlitType: 0 69 | defaultIsFullScreen: 1 70 | defaultIsNativeResolution: 1 71 | macRetinaSupport: 1 72 | runInBackground: 0 73 | captureSingleScreen: 0 74 | muteOtherAudioSources: 0 75 | Prepare IOS For Recording: 0 76 | Force IOS Speakers When Recording: 0 77 | submitAnalytics: 1 78 | usePlayerLog: 1 79 | bakeCollisionMeshes: 0 80 | forceSingleInstance: 0 81 | resizableWindow: 0 82 | useMacAppStoreValidation: 0 83 | macAppStoreCategory: public.app-category.games 84 | gpuSkinning: 0 85 | graphicsJobs: 0 86 | xboxPIXTextureCapture: 0 87 | xboxEnableAvatar: 0 88 | xboxEnableKinect: 0 89 | xboxEnableKinectAutoTracking: 0 90 | xboxEnableFitness: 0 91 | visibleInBackground: 1 92 | allowFullscreenSwitch: 1 93 | graphicsJobMode: 0 94 | macFullscreenMode: 2 95 | d3d9FullscreenMode: 1 96 | d3d11FullscreenMode: 1 97 | xboxSpeechDB: 0 98 | xboxEnableHeadOrientation: 0 99 | xboxEnableGuest: 0 100 | xboxEnablePIXSampling: 0 101 | metalFramebufferOnly: 0 102 | n3dsDisableStereoscopicView: 0 103 | n3dsEnableSharedListOpt: 1 104 | n3dsEnableVSync: 0 105 | ignoreAlphaClear: 0 106 | xboxOneResolution: 0 107 | xboxOneMonoLoggingLevel: 0 108 | xboxOneLoggingLevel: 1 109 | xboxOneDisableEsram: 0 110 | xboxOnePresentImmediateThreshold: 0 111 | videoMemoryForVertexBuffers: 0 112 | psp2PowerMode: 0 113 | psp2AcquireBGM: 1 114 | wiiUTVResolution: 0 115 | wiiUGamePadMSAA: 1 116 | wiiUSupportsNunchuk: 0 117 | wiiUSupportsClassicController: 0 118 | wiiUSupportsBalanceBoard: 0 119 | wiiUSupportsMotionPlus: 0 120 | wiiUSupportsProController: 0 121 | wiiUAllowScreenCapture: 1 122 | wiiUControllerCount: 0 123 | m_SupportedAspectRatios: 124 | 4:3: 1 125 | 5:4: 1 126 | 16:10: 1 127 | 16:9: 1 128 | Others: 1 129 | bundleVersion: 1.0 130 | preloadedAssets: [] 131 | metroInputSource: 0 132 | m_HolographicPauseOnTrackingLoss: 1 133 | xboxOneDisableKinectGpuReservation: 0 134 | xboxOneEnable7thCore: 0 135 | vrSettings: 136 | cardboard: 137 | depthFormat: 0 138 | enableTransitionView: 0 139 | daydream: 140 | depthFormat: 0 141 | useSustainedPerformanceMode: 0 142 | enableVideoLayer: 0 143 | useProtectedVideoMemory: 0 144 | hololens: 145 | depthFormat: 1 146 | protectGraphicsMemory: 0 147 | useHDRDisplay: 0 148 | m_ColorGamuts: 00000000 149 | targetPixelDensity: 0 150 | resolutionScalingMode: 0 151 | androidSupportedAspectRatio: 1 152 | androidMaxAspectRatio: 2.1 153 | applicationIdentifier: 154 | Android: com.jing.u2ademo 155 | buildNumber: {} 156 | AndroidBundleVersionCode: 1 157 | AndroidMinSdkVersion: 16 158 | AndroidTargetSdkVersion: 0 159 | AndroidPreferredInstallLocation: 1 160 | aotOptions: 161 | stripEngineCode: 1 162 | iPhoneStrippingLevel: 0 163 | iPhoneScriptCallOptimization: 0 164 | ForceInternetPermission: 0 165 | ForceSDCardPermission: 0 166 | CreateWallpaper: 0 167 | APKExpansionFiles: 0 168 | keepLoadedShadersAlive: 0 169 | StripUnusedMeshComponents: 0 170 | VertexChannelCompressionMask: 171 | serializedVersion: 2 172 | m_Bits: 238 173 | iPhoneSdkVersion: 988 174 | iOSTargetOSVersionString: 7.0 175 | tvOSSdkVersion: 0 176 | tvOSRequireExtendedGameController: 0 177 | tvOSTargetOSVersionString: 9.0 178 | uIPrerenderedIcon: 0 179 | uIRequiresPersistentWiFi: 0 180 | uIRequiresFullScreen: 1 181 | uIStatusBarHidden: 1 182 | uIExitOnSuspend: 0 183 | uIStatusBarStyle: 0 184 | iPhoneSplashScreen: {fileID: 0} 185 | iPhoneHighResSplashScreen: {fileID: 0} 186 | iPhoneTallHighResSplashScreen: {fileID: 0} 187 | iPhone47inSplashScreen: {fileID: 0} 188 | iPhone55inPortraitSplashScreen: {fileID: 0} 189 | iPhone55inLandscapeSplashScreen: {fileID: 0} 190 | iPadPortraitSplashScreen: {fileID: 0} 191 | iPadHighResPortraitSplashScreen: {fileID: 0} 192 | iPadLandscapeSplashScreen: {fileID: 0} 193 | iPadHighResLandscapeSplashScreen: {fileID: 0} 194 | appleTVSplashScreen: {fileID: 0} 195 | tvOSSmallIconLayers: [] 196 | tvOSLargeIconLayers: [] 197 | tvOSTopShelfImageLayers: [] 198 | tvOSTopShelfImageWideLayers: [] 199 | iOSLaunchScreenType: 0 200 | iOSLaunchScreenPortrait: {fileID: 0} 201 | iOSLaunchScreenLandscape: {fileID: 0} 202 | iOSLaunchScreenBackgroundColor: 203 | serializedVersion: 2 204 | rgba: 0 205 | iOSLaunchScreenFillPct: 100 206 | iOSLaunchScreenSize: 100 207 | iOSLaunchScreenCustomXibPath: 208 | iOSLaunchScreeniPadType: 0 209 | iOSLaunchScreeniPadImage: {fileID: 0} 210 | iOSLaunchScreeniPadBackgroundColor: 211 | serializedVersion: 2 212 | rgba: 0 213 | iOSLaunchScreeniPadFillPct: 100 214 | iOSLaunchScreeniPadSize: 100 215 | iOSLaunchScreeniPadCustomXibPath: 216 | iOSDeviceRequirements: [] 217 | iOSURLSchemes: [] 218 | iOSBackgroundModes: 0 219 | iOSMetalForceHardShadows: 0 220 | metalEditorSupport: 1 221 | metalAPIValidation: 1 222 | iOSRenderExtraFrameOnPause: 0 223 | appleDeveloperTeamID: 224 | iOSManualSigningProvisioningProfileID: 225 | tvOSManualSigningProvisioningProfileID: 226 | appleEnableAutomaticSigning: 0 227 | AndroidTargetDevice: 0 228 | AndroidSplashScreenScale: 2 229 | androidSplashScreen: {fileID: 0} 230 | AndroidKeystoreName: 231 | AndroidKeyaliasName: 232 | AndroidTVCompatibility: 1 233 | AndroidIsGame: 1 234 | AndroidEnableTango: 0 235 | androidEnableBanner: 1 236 | androidUseLowAccuracyLocation: 0 237 | m_AndroidBanners: 238 | - width: 320 239 | height: 180 240 | banner: {fileID: 0} 241 | androidGamepadSupportLevel: 0 242 | resolutionDialogBanner: {fileID: 0} 243 | m_BuildTargetIcons: 244 | - m_BuildTarget: 245 | m_Icons: 246 | - serializedVersion: 2 247 | m_Icon: {fileID: 2800000, guid: 51a41cff88d1d1c4e873cba27c7ffc3b, type: 3} 248 | m_Width: 128 249 | m_Height: 128 250 | m_Kind: 0 251 | m_BuildTargetBatching: [] 252 | m_BuildTargetGraphicsAPIs: [] 253 | m_BuildTargetVRSettings: [] 254 | m_BuildTargetEnableVuforiaSettings: [] 255 | openGLRequireES31: 0 256 | openGLRequireES31AEP: 0 257 | m_TemplateCustomTags: {} 258 | mobileMTRendering: 259 | Android: 1 260 | iPhone: 1 261 | tvOS: 1 262 | wiiUTitleID: 0005000011000000 263 | wiiUGroupID: 00010000 264 | wiiUCommonSaveSize: 4096 265 | wiiUAccountSaveSize: 2048 266 | wiiUOlvAccessKey: 0 267 | wiiUTinCode: 0 268 | wiiUJoinGameId: 0 269 | wiiUJoinGameModeMask: 0000000000000000 270 | wiiUCommonBossSize: 0 271 | wiiUAccountBossSize: 0 272 | wiiUAddOnUniqueIDs: [] 273 | wiiUMainThreadStackSize: 3072 274 | wiiULoaderThreadStackSize: 1024 275 | wiiUSystemHeapSize: 128 276 | wiiUTVStartupScreen: {fileID: 0} 277 | wiiUGamePadStartupScreen: {fileID: 0} 278 | wiiUDrcBufferDisabled: 0 279 | wiiUProfilerLibPath: 280 | playModeTestRunnerEnabled: 0 281 | actionOnDotNetUnhandledException: 1 282 | enableInternalProfiler: 0 283 | logObjCUncaughtExceptions: 1 284 | enableCrashReportAPI: 0 285 | cameraUsageDescription: 286 | locationUsageDescription: 287 | microphoneUsageDescription: 288 | switchNetLibKey: 289 | switchSocketMemoryPoolSize: 6144 290 | switchSocketAllocatorPoolSize: 128 291 | switchSocketConcurrencyLimit: 14 292 | switchScreenResolutionBehavior: 2 293 | switchUseCPUProfiler: 0 294 | switchApplicationID: 0x01004b9000490000 295 | switchNSODependencies: 296 | switchTitleNames_0: 297 | switchTitleNames_1: 298 | switchTitleNames_2: 299 | switchTitleNames_3: 300 | switchTitleNames_4: 301 | switchTitleNames_5: 302 | switchTitleNames_6: 303 | switchTitleNames_7: 304 | switchTitleNames_8: 305 | switchTitleNames_9: 306 | switchTitleNames_10: 307 | switchTitleNames_11: 308 | switchPublisherNames_0: 309 | switchPublisherNames_1: 310 | switchPublisherNames_2: 311 | switchPublisherNames_3: 312 | switchPublisherNames_4: 313 | switchPublisherNames_5: 314 | switchPublisherNames_6: 315 | switchPublisherNames_7: 316 | switchPublisherNames_8: 317 | switchPublisherNames_9: 318 | switchPublisherNames_10: 319 | switchPublisherNames_11: 320 | switchIcons_0: {fileID: 0} 321 | switchIcons_1: {fileID: 0} 322 | switchIcons_2: {fileID: 0} 323 | switchIcons_3: {fileID: 0} 324 | switchIcons_4: {fileID: 0} 325 | switchIcons_5: {fileID: 0} 326 | switchIcons_6: {fileID: 0} 327 | switchIcons_7: {fileID: 0} 328 | switchIcons_8: {fileID: 0} 329 | switchIcons_9: {fileID: 0} 330 | switchIcons_10: {fileID: 0} 331 | switchIcons_11: {fileID: 0} 332 | switchSmallIcons_0: {fileID: 0} 333 | switchSmallIcons_1: {fileID: 0} 334 | switchSmallIcons_2: {fileID: 0} 335 | switchSmallIcons_3: {fileID: 0} 336 | switchSmallIcons_4: {fileID: 0} 337 | switchSmallIcons_5: {fileID: 0} 338 | switchSmallIcons_6: {fileID: 0} 339 | switchSmallIcons_7: {fileID: 0} 340 | switchSmallIcons_8: {fileID: 0} 341 | switchSmallIcons_9: {fileID: 0} 342 | switchSmallIcons_10: {fileID: 0} 343 | switchSmallIcons_11: {fileID: 0} 344 | switchManualHTML: 345 | switchAccessibleURLs: 346 | switchLegalInformation: 347 | switchMainThreadStackSize: 1048576 348 | switchPresenceGroupId: 349 | switchLogoHandling: 0 350 | switchReleaseVersion: 0 351 | switchDisplayVersion: 1.0.0 352 | switchStartupUserAccount: 0 353 | switchTouchScreenUsage: 0 354 | switchSupportedLanguagesMask: 0 355 | switchLogoType: 0 356 | switchApplicationErrorCodeCategory: 357 | switchUserAccountSaveDataSize: 0 358 | switchUserAccountSaveDataJournalSize: 0 359 | switchApplicationAttribute: 0 360 | switchCardSpecSize: -1 361 | switchCardSpecClock: -1 362 | switchRatingsMask: 0 363 | switchRatingsInt_0: 0 364 | switchRatingsInt_1: 0 365 | switchRatingsInt_2: 0 366 | switchRatingsInt_3: 0 367 | switchRatingsInt_4: 0 368 | switchRatingsInt_5: 0 369 | switchRatingsInt_6: 0 370 | switchRatingsInt_7: 0 371 | switchRatingsInt_8: 0 372 | switchRatingsInt_9: 0 373 | switchRatingsInt_10: 0 374 | switchRatingsInt_11: 0 375 | switchLocalCommunicationIds_0: 376 | switchLocalCommunicationIds_1: 377 | switchLocalCommunicationIds_2: 378 | switchLocalCommunicationIds_3: 379 | switchLocalCommunicationIds_4: 380 | switchLocalCommunicationIds_5: 381 | switchLocalCommunicationIds_6: 382 | switchLocalCommunicationIds_7: 383 | switchParentalControl: 0 384 | switchAllowsScreenshot: 1 385 | switchDataLossConfirmation: 0 386 | switchSupportedNpadStyles: 3 387 | switchSocketConfigEnabled: 0 388 | switchTcpInitialSendBufferSize: 32 389 | switchTcpInitialReceiveBufferSize: 64 390 | switchTcpAutoSendBufferSizeMax: 256 391 | switchTcpAutoReceiveBufferSizeMax: 256 392 | switchUdpSendBufferSize: 9 393 | switchUdpReceiveBufferSize: 42 394 | switchSocketBufferEfficiency: 4 395 | switchSocketInitializeEnabled: 1 396 | switchNetworkInterfaceManagerInitializeEnabled: 1 397 | switchPlayerConnectionEnabled: 1 398 | ps4NPAgeRating: 12 399 | ps4NPTitleSecret: 400 | ps4NPTrophyPackPath: 401 | ps4ParentalLevel: 11 402 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 403 | ps4Category: 0 404 | ps4MasterVersion: 01.00 405 | ps4AppVersion: 01.00 406 | ps4AppType: 0 407 | ps4ParamSfxPath: 408 | ps4VideoOutPixelFormat: 0 409 | ps4VideoOutInitialWidth: 1920 410 | ps4VideoOutBaseModeInitialWidth: 1920 411 | ps4VideoOutReprojectionRate: 60 412 | ps4PronunciationXMLPath: 413 | ps4PronunciationSIGPath: 414 | ps4BackgroundImagePath: 415 | ps4StartupImagePath: 416 | ps4SaveDataImagePath: 417 | ps4SdkOverride: 418 | ps4BGMPath: 419 | ps4ShareFilePath: 420 | ps4ShareOverlayImagePath: 421 | ps4PrivacyGuardImagePath: 422 | ps4NPtitleDatPath: 423 | ps4RemotePlayKeyAssignment: -1 424 | ps4RemotePlayKeyMappingDir: 425 | ps4PlayTogetherPlayerCount: 0 426 | ps4EnterButtonAssignment: 1 427 | ps4ApplicationParam1: 0 428 | ps4ApplicationParam2: 0 429 | ps4ApplicationParam3: 0 430 | ps4ApplicationParam4: 0 431 | ps4DownloadDataSize: 0 432 | ps4GarlicHeapSize: 2048 433 | ps4ProGarlicHeapSize: 2560 434 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 435 | ps4pnSessions: 1 436 | ps4pnPresence: 1 437 | ps4pnFriends: 1 438 | ps4pnGameCustomData: 1 439 | playerPrefsSupport: 0 440 | restrictedAudioUsageRights: 0 441 | ps4UseResolutionFallback: 0 442 | ps4ReprojectionSupport: 0 443 | ps4UseAudio3dBackend: 0 444 | ps4SocialScreenEnabled: 0 445 | ps4ScriptOptimizationLevel: 0 446 | ps4Audio3dVirtualSpeakerCount: 14 447 | ps4attribCpuUsage: 0 448 | ps4PatchPkgPath: 449 | ps4PatchLatestPkgPath: 450 | ps4PatchChangeinfoPath: 451 | ps4PatchDayOne: 0 452 | ps4attribUserManagement: 0 453 | ps4attribMoveSupport: 0 454 | ps4attrib3DSupport: 0 455 | ps4attribShareSupport: 0 456 | ps4attribExclusiveVR: 0 457 | ps4disableAutoHideSplash: 0 458 | ps4videoRecordingFeaturesUsed: 0 459 | ps4contentSearchFeaturesUsed: 0 460 | ps4attribEyeToEyeDistanceSettingVR: 0 461 | ps4IncludedModules: [] 462 | monoEnv: 463 | psp2Splashimage: {fileID: 0} 464 | psp2NPTrophyPackPath: 465 | psp2NPSupportGBMorGJP: 0 466 | psp2NPAgeRating: 12 467 | psp2NPTitleDatPath: 468 | psp2NPCommsID: 469 | psp2NPCommunicationsID: 470 | psp2NPCommsPassphrase: 471 | psp2NPCommsSig: 472 | psp2ParamSfxPath: 473 | psp2ManualPath: 474 | psp2LiveAreaGatePath: 475 | psp2LiveAreaBackroundPath: 476 | psp2LiveAreaPath: 477 | psp2LiveAreaTrialPath: 478 | psp2PatchChangeInfoPath: 479 | psp2PatchOriginalPackage: 480 | psp2PackagePassword: F69AzBlax3CF3EDNhm3soLBPh71Yexui 481 | psp2KeystoneFile: 482 | psp2MemoryExpansionMode: 0 483 | psp2DRMType: 0 484 | psp2StorageType: 0 485 | psp2MediaCapacity: 0 486 | psp2DLCConfigPath: 487 | psp2ThumbnailPath: 488 | psp2BackgroundPath: 489 | psp2SoundPath: 490 | psp2TrophyCommId: 491 | psp2TrophyPackagePath: 492 | psp2PackagedResourcesPath: 493 | psp2SaveDataQuota: 10240 494 | psp2ParentalLevel: 1 495 | psp2ShortTitle: Not Set 496 | psp2ContentID: IV0000-ABCD12345_00-0123456789ABCDEF 497 | psp2Category: 0 498 | psp2MasterVersion: 01.00 499 | psp2AppVersion: 01.00 500 | psp2TVBootMode: 0 501 | psp2EnterButtonAssignment: 2 502 | psp2TVDisableEmu: 0 503 | psp2AllowTwitterDialog: 1 504 | psp2Upgradable: 0 505 | psp2HealthWarning: 0 506 | psp2UseLibLocation: 0 507 | psp2InfoBarOnStartup: 0 508 | psp2InfoBarColor: 0 509 | psp2ScriptOptimizationLevel: 0 510 | psmSplashimage: {fileID: 0} 511 | splashScreenBackgroundSourceLandscape: {fileID: 21300000, guid: 2774ece821240e94ca5778aa00ef15e8, 512 | type: 3} 513 | splashScreenBackgroundSourcePortrait: {fileID: 0} 514 | spritePackerPolicy: 515 | webGLMemorySize: 256 516 | webGLExceptionSupport: 1 517 | webGLNameFilesAsHashes: 0 518 | webGLDataCaching: 0 519 | webGLDebugSymbols: 0 520 | webGLEmscriptenArgs: 521 | webGLModulesDirectory: 522 | webGLTemplate: APPLICATION:Default 523 | webGLAnalyzeBuildSize: 0 524 | webGLUseEmbeddedResources: 0 525 | webGLUseWasm: 0 526 | webGLCompressionFormat: 1 527 | scriptingDefineSymbols: {} 528 | platformArchitecture: {} 529 | scriptingBackend: {} 530 | incrementalIl2cppBuild: {} 531 | additionalIl2CppArgs: 532 | scriptingRuntimeVersion: 0 533 | apiCompatibilityLevelPerPlatform: {} 534 | m_RenderingPath: 1 535 | m_MobileRenderingPath: 1 536 | metroPackageName: unity 537 | metroPackageVersion: 538 | metroCertificatePath: 539 | metroCertificatePassword: 540 | metroCertificateSubject: 541 | metroCertificateIssuer: 542 | metroCertificateNotAfter: 0000000000000000 543 | metroApplicationDescription: unity 544 | wsaImages: {} 545 | metroTileShortName: 546 | metroCommandLineArgsFile: 547 | metroTileShowName: 0 548 | metroMediumTileShowName: 0 549 | metroLargeTileShowName: 0 550 | metroWideTileShowName: 0 551 | metroDefaultTileSize: 1 552 | metroTileForegroundText: 2 553 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 554 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, 555 | a: 1} 556 | metroSplashScreenUseBackgroundColor: 0 557 | platformCapabilities: {} 558 | metroFTAName: 559 | metroFTAFileTypes: [] 560 | metroProtocolName: 561 | metroCompilationOverrides: 1 562 | tizenProductDescription: 563 | tizenProductURL: 564 | tizenSigningProfileName: 565 | tizenGPSPermissions: 0 566 | tizenMicrophonePermissions: 0 567 | tizenDeploymentTarget: 568 | tizenDeploymentTargetType: -1 569 | tizenMinOSVersion: 1 570 | n3dsUseExtSaveData: 0 571 | n3dsCompressStaticMem: 1 572 | n3dsExtSaveDataNumber: 0x12345 573 | n3dsStackSize: 131072 574 | n3dsTargetPlatform: 2 575 | n3dsRegion: 7 576 | n3dsMediaSize: 0 577 | n3dsLogoStyle: 3 578 | n3dsTitle: GameName 579 | n3dsProductCode: 580 | n3dsApplicationId: 0xFF3FF 581 | stvDeviceAddress: 582 | stvProductDescription: 583 | stvProductAuthor: 584 | stvProductAuthorEmail: 585 | stvProductLink: 586 | stvProductCategory: 0 587 | XboxOneProductId: 588 | XboxOneUpdateKey: 589 | XboxOneSandboxId: 590 | XboxOneContentId: 591 | XboxOneTitleId: 592 | XboxOneSCId: 593 | XboxOneGameOsOverridePath: 594 | XboxOnePackagingOverridePath: 595 | XboxOneAppManifestOverridePath: 596 | XboxOnePackageEncryption: 0 597 | XboxOnePackageUpdateGranularity: 2 598 | XboxOneDescription: 599 | XboxOneLanguage: 600 | - enus 601 | XboxOneCapability: [] 602 | XboxOneGameRating: {} 603 | XboxOneIsContentPackage: 0 604 | XboxOneEnableGPUVariability: 0 605 | XboxOneSockets: {} 606 | XboxOneSplashScreen: {fileID: 0} 607 | XboxOneAllowedProductIds: [] 608 | XboxOnePersistentLocalStorageSize: 0 609 | xboxOneScriptCompiler: 0 610 | vrEditorSettings: 611 | daydream: 612 | daydreamIconForeground: {fileID: 0} 613 | daydreamIconBackground: {fileID: 0} 614 | cloudServicesEnabled: {} 615 | facebookSdkVersion: 7.9.4 616 | apiCompatibilityLevel: 2 617 | cloudProjectId: 618 | projectName: 619 | organizationId: 620 | cloudEnabled: 0 621 | enableNativePlatformBackendsForNewInputSystem: 0 622 | disableOldInputManagerSupport: 0 623 | -------------------------------------------------------------------------------- /unity_with_android/unity/ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2017.2.0f3 2 | -------------------------------------------------------------------------------- /unity_with_android/unity/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: 5 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Very Low 11 | pixelLightCount: 0 12 | shadows: 0 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 15 17 | shadowNearPlaneOffset: 3 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | shadowmaskMode: 0 21 | blendWeights: 1 22 | textureQuality: 1 23 | anisotropicTextures: 0 24 | antiAliasing: 0 25 | softParticles: 0 26 | softVegetation: 0 27 | realtimeReflectionProbes: 0 28 | billboardsFaceCameraPosition: 0 29 | vSyncCount: 0 30 | lodBias: 0.3 31 | maximumLODLevel: 0 32 | particleRaycastBudget: 4 33 | asyncUploadTimeSlice: 2 34 | asyncUploadBufferSize: 4 35 | resolutionScalingFixedDPIFactor: 1 36 | excludedTargetPlatforms: [] 37 | - serializedVersion: 2 38 | name: Low 39 | pixelLightCount: 0 40 | shadows: 0 41 | shadowResolution: 0 42 | shadowProjection: 1 43 | shadowCascades: 1 44 | shadowDistance: 20 45 | shadowNearPlaneOffset: 3 46 | shadowCascade2Split: 0.33333334 47 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 48 | shadowmaskMode: 0 49 | blendWeights: 2 50 | textureQuality: 0 51 | anisotropicTextures: 0 52 | antiAliasing: 0 53 | softParticles: 0 54 | softVegetation: 0 55 | realtimeReflectionProbes: 0 56 | billboardsFaceCameraPosition: 0 57 | vSyncCount: 0 58 | lodBias: 0.4 59 | maximumLODLevel: 0 60 | particleRaycastBudget: 16 61 | asyncUploadTimeSlice: 2 62 | asyncUploadBufferSize: 4 63 | resolutionScalingFixedDPIFactor: 1 64 | excludedTargetPlatforms: [] 65 | - serializedVersion: 2 66 | name: Medium 67 | pixelLightCount: 1 68 | shadows: 1 69 | shadowResolution: 0 70 | shadowProjection: 1 71 | shadowCascades: 1 72 | shadowDistance: 20 73 | shadowNearPlaneOffset: 3 74 | shadowCascade2Split: 0.33333334 75 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 76 | shadowmaskMode: 0 77 | blendWeights: 2 78 | textureQuality: 0 79 | anisotropicTextures: 1 80 | antiAliasing: 0 81 | softParticles: 0 82 | softVegetation: 0 83 | realtimeReflectionProbes: 0 84 | billboardsFaceCameraPosition: 0 85 | vSyncCount: 1 86 | lodBias: 0.7 87 | maximumLODLevel: 0 88 | particleRaycastBudget: 64 89 | asyncUploadTimeSlice: 2 90 | asyncUploadBufferSize: 4 91 | resolutionScalingFixedDPIFactor: 1 92 | excludedTargetPlatforms: [] 93 | - serializedVersion: 2 94 | name: High 95 | pixelLightCount: 2 96 | shadows: 2 97 | shadowResolution: 1 98 | shadowProjection: 1 99 | shadowCascades: 2 100 | shadowDistance: 40 101 | shadowNearPlaneOffset: 3 102 | shadowCascade2Split: 0.33333334 103 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 104 | shadowmaskMode: 1 105 | blendWeights: 2 106 | textureQuality: 0 107 | anisotropicTextures: 1 108 | antiAliasing: 0 109 | softParticles: 0 110 | softVegetation: 1 111 | realtimeReflectionProbes: 1 112 | billboardsFaceCameraPosition: 1 113 | vSyncCount: 1 114 | lodBias: 1 115 | maximumLODLevel: 0 116 | particleRaycastBudget: 256 117 | asyncUploadTimeSlice: 2 118 | asyncUploadBufferSize: 4 119 | resolutionScalingFixedDPIFactor: 1 120 | excludedTargetPlatforms: [] 121 | - serializedVersion: 2 122 | name: Very High 123 | pixelLightCount: 3 124 | shadows: 2 125 | shadowResolution: 2 126 | shadowProjection: 1 127 | shadowCascades: 2 128 | shadowDistance: 70 129 | shadowNearPlaneOffset: 3 130 | shadowCascade2Split: 0.33333334 131 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 132 | shadowmaskMode: 1 133 | blendWeights: 4 134 | textureQuality: 0 135 | anisotropicTextures: 2 136 | antiAliasing: 2 137 | softParticles: 1 138 | softVegetation: 1 139 | realtimeReflectionProbes: 1 140 | billboardsFaceCameraPosition: 1 141 | vSyncCount: 1 142 | lodBias: 1.5 143 | maximumLODLevel: 0 144 | particleRaycastBudget: 1024 145 | asyncUploadTimeSlice: 2 146 | asyncUploadBufferSize: 4 147 | resolutionScalingFixedDPIFactor: 1 148 | excludedTargetPlatforms: [] 149 | - serializedVersion: 2 150 | name: Ultra 151 | pixelLightCount: 4 152 | shadows: 2 153 | shadowResolution: 2 154 | shadowProjection: 1 155 | shadowCascades: 4 156 | shadowDistance: 150 157 | shadowNearPlaneOffset: 3 158 | shadowCascade2Split: 0.33333334 159 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 160 | shadowmaskMode: 1 161 | blendWeights: 4 162 | textureQuality: 0 163 | anisotropicTextures: 2 164 | antiAliasing: 2 165 | softParticles: 1 166 | softVegetation: 1 167 | realtimeReflectionProbes: 1 168 | billboardsFaceCameraPosition: 1 169 | vSyncCount: 1 170 | lodBias: 2 171 | maximumLODLevel: 0 172 | particleRaycastBudget: 4096 173 | asyncUploadTimeSlice: 2 174 | asyncUploadBufferSize: 4 175 | resolutionScalingFixedDPIFactor: 1 176 | excludedTargetPlatforms: [] 177 | m_PerPlatformDefaultQuality: 178 | Android: 2 179 | Nintendo 3DS: 5 180 | Nintendo Switch: 5 181 | PS4: 5 182 | PSM: 5 183 | PSP2: 2 184 | Samsung TV: 2 185 | Standalone: 5 186 | Tizen: 2 187 | WebGL: 3 188 | WiiU: 5 189 | Windows Store Apps: 5 190 | XboxOne: 5 191 | iPhone: 2 192 | tvOS: 2 193 | -------------------------------------------------------------------------------- /unity_with_android/unity/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 | - 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 | -------------------------------------------------------------------------------- /unity_with_android/unity/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: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /unity_with_android/unity/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: 0 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 | -------------------------------------------------------------------------------- /unity_with_android/unity/UnityPackageManager/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | } 4 | } 5 | -------------------------------------------------------------------------------- /unity_with_android/unity/unity.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Debug 5 | AnyCPU 6 | 10.0.20506 7 | 2.0 8 | {542E94B8-9F48-83EE-3A35-B6C8F15311F3} 9 | Library 10 | Assembly-CSharp.dll 11 | 512 12 | {E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 13 | .NETFramework 14 | v3.5 15 | Unity Subset v3.5 16 | 17 | Game:1 18 | Android:13 19 | 2017.2.0f3 20 | 21 | 4 22 | 23 | 24 | pdbonly 25 | false 26 | Temp\UnityVS_bin\Debug\ 27 | Temp\UnityVS_obj\Debug\ 28 | prompt 29 | 4 30 | DEBUG;TRACE;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_2_0;UNITY_2017_2;UNITY_2017;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_GENERICS;ENABLE_PVR_GI;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_SPRITERENDERER_FLIPPING;ENABLE_SPRITES;ENABLE_GRID;ENABLE_TILEMAP;ENABLE_TERRAIN;ENABLE_RAKNET;ENABLE_DIRECTOR;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_TIMELINE;ENABLE_EDITOR_METRICS;ENABLE_EDITOR_METRICS_CACHING;ENABLE_NATIVE_ARRAY;ENABLE_SPRITE_MASKING;INCLUDE_DYNAMIC_GI;INCLUDE_GI;ENABLE_MONO_BDWGC;PLATFORM_SUPPORTS_MONO;INCLUDE_PUBNUB;ENABLE_PLAYMODE_TESTS_RUNNER;ENABLE_VIDEO;ENABLE_RMGUI;ENABLE_PACKMAN;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_STYLE_SHEETS;PLATFORM_ANDROID;UNITY_ANDROID;UNITY_ANDROID_API;ENABLE_SUBSTANCE;ENABLE_EGL;ENABLE_NETWORK;ENABLE_RUNTIME_GI;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_UNITYWEBREQUEST;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_EVENT_QUEUE;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_NATIVE_CRASH_REPORTING;PLATFORM_SUPPORTS_ADS_ID;UNITY_CAN_SHOW_SPLASH_SCREEN;ENABLE_VR;ENABLE_AR;ENABLE_SPATIALTRACKING;ENABLE_UNITYADS_RUNTIME;UNITY_UNITYADS_API;ENABLE_MONO;NET_2_0_SUBSET;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_NATIVE_ARRAY_CHECKS;UNITY_TEAM_LICENSE;ENABLE_VSTU;UNITY_HAS_GOOGLEVR;UNITY_HAS_TANGO 31 | true 32 | 33 | 34 | pdbonly 35 | false 36 | Temp\UnityVS_bin\Release\ 37 | Temp\UnityVS_obj\Release\ 38 | prompt 39 | 4 40 | TRACE;UNITY_5_3_OR_NEWER;UNITY_5_4_OR_NEWER;UNITY_5_5_OR_NEWER;UNITY_5_6_OR_NEWER;UNITY_2017_1_OR_NEWER;UNITY_2017_2_OR_NEWER;UNITY_2017_2_0;UNITY_2017_2;UNITY_2017;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_GENERICS;ENABLE_PVR_GI;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_SPRITERENDERER_FLIPPING;ENABLE_SPRITES;ENABLE_GRID;ENABLE_TILEMAP;ENABLE_TERRAIN;ENABLE_RAKNET;ENABLE_DIRECTOR;ENABLE_UNET;ENABLE_LZMA;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES_COLLAB;ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_USE_WEBREQUEST;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_HUB;ENABLE_EDITOR_HUB_LICENSE;ENABLE_WEBSOCKET_CLIENT;ENABLE_DIRECTOR_AUDIO;ENABLE_TIMELINE;ENABLE_EDITOR_METRICS;ENABLE_EDITOR_METRICS_CACHING;ENABLE_NATIVE_ARRAY;ENABLE_SPRITE_MASKING;INCLUDE_DYNAMIC_GI;INCLUDE_GI;ENABLE_MONO_BDWGC;PLATFORM_SUPPORTS_MONO;INCLUDE_PUBNUB;ENABLE_PLAYMODE_TESTS_RUNNER;ENABLE_VIDEO;ENABLE_RMGUI;ENABLE_PACKMAN;ENABLE_CUSTOM_RENDER_TEXTURE;ENABLE_STYLE_SHEETS;PLATFORM_ANDROID;UNITY_ANDROID;UNITY_ANDROID_API;ENABLE_SUBSTANCE;ENABLE_EGL;ENABLE_NETWORK;ENABLE_RUNTIME_GI;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_UNITYWEBREQUEST;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_EVENT_QUEUE;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_CRASH_REPORTING;ENABLE_CLOUD_SERVICES_NATIVE_CRASH_REPORTING;PLATFORM_SUPPORTS_ADS_ID;UNITY_CAN_SHOW_SPLASH_SCREEN;ENABLE_VR;ENABLE_AR;ENABLE_SPATIALTRACKING;ENABLE_UNITYADS_RUNTIME;UNITY_UNITYADS_API;ENABLE_MONO;NET_2_0_SUBSET;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN;ENABLE_NATIVE_ARRAY_CHECKS;UNITY_TEAM_LICENSE;ENABLE_VSTU;UNITY_HAS_GOOGLEVR;UNITY_HAS_TANGO 41 | true 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | C:/Program Files/Unity/Editor/Data/Managed/UnityEditor.dll 54 | 55 | 56 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.dll 57 | 58 | 59 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.CoreModule.dll 60 | 61 | 62 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AccessibilityModule.dll 63 | 64 | 65 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ParticleSystemModule.dll 66 | 67 | 68 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.PhysicsModule.dll 69 | 70 | 71 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VehiclesModule.dll 72 | 73 | 74 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClothModule.dll 75 | 76 | 77 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AIModule.dll 78 | 79 | 80 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AnimationModule.dll 81 | 82 | 83 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TextRenderingModule.dll 84 | 85 | 86 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UIModule.dll 87 | 88 | 89 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TerrainPhysicsModule.dll 90 | 91 | 92 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.IMGUIModule.dll 93 | 94 | 95 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestModule.dll 96 | 97 | 98 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestAudioModule.dll 99 | 100 | 101 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestTextureModule.dll 102 | 103 | 104 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityWebRequestWWWModule.dll 105 | 106 | 107 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClusterInputModule.dll 108 | 109 | 110 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ClusterRendererModule.dll 111 | 112 | 113 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UNETModule.dll 114 | 115 | 116 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.DirectorModule.dll 117 | 118 | 119 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityAnalyticsModule.dll 120 | 121 | 122 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.CrashReportingModule.dll 123 | 124 | 125 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.PerformanceReportingModule.dll 126 | 127 | 128 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UnityConnectModule.dll 129 | 130 | 131 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.WebModule.dll 132 | 133 | 134 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ARModule.dll 135 | 136 | 137 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VRModule.dll 138 | 139 | 140 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.UIElementsModule.dll 141 | 142 | 143 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.StyleSheetsModule.dll 144 | 145 | 146 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.AudioModule.dll 147 | 148 | 149 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.GameCenterModule.dll 150 | 151 | 152 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.GridModule.dll 153 | 154 | 155 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ImageConversionModule.dll 156 | 157 | 158 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.InputModule.dll 159 | 160 | 161 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.JSONSerializeModule.dll 162 | 163 | 164 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ParticlesLegacyModule.dll 165 | 166 | 167 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.Physics2DModule.dll 168 | 169 | 170 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.ScreenCaptureModule.dll 171 | 172 | 173 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.SpriteMaskModule.dll 174 | 175 | 176 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TerrainModule.dll 177 | 178 | 179 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.TilemapModule.dll 180 | 181 | 182 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.VideoModule.dll 183 | 184 | 185 | C:/Program Files/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.WindModule.dll 186 | 187 | 188 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll 189 | 190 | 191 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/Networking/UnityEngine.Networking.dll 192 | 193 | 194 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/TestRunner/UnityEngine.TestRunner.dll 195 | 196 | 197 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/TestRunner/net35/unity-custom/nunit.framework.dll 198 | 199 | 200 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/Timeline/RuntimeEditor/UnityEngine.Timeline.dll 201 | 202 | 203 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UIAutomation/UnityEngine.UIAutomation.dll 204 | 205 | 206 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityGoogleAudioSpatializer/RuntimeEditor/UnityEngine.GoogleAudioSpatializer.dll 207 | 208 | 209 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityHoloLens/RuntimeEditor/UnityEngine.HoloLens.dll 210 | 211 | 212 | C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnitySpatialTracking/RuntimeEditor/UnityEngine.SpatialTracking.dll 213 | 214 | 215 | C:/Users/Jing/AppData/LocalLow/Unity/cache/packages/packages.unity.com/com.unity.analytics@1.0.1/UnityEngine.Analytics.dll 216 | 217 | 218 | C:/Users/Jing/AppData/LocalLow/Unity/cache/packages/packages.unity.com/com.unity.purchasing@1.0.1/UnityEngine.Purchasing.dll 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | -------------------------------------------------------------------------------- /unity_with_android/unity/unity.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2015 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "unity", "unity.csproj", "{542E94B8-9F48-83EE-3A35-B6C8F15311F3}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Any CPU = Debug|Any CPU 9 | Release|Any CPU = Release|Any CPU 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {542E94B8-9F48-83EE-3A35-B6C8F15311F3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 13 | {542E94B8-9F48-83EE-3A35-B6C8F15311F3}.Debug|Any CPU.Build.0 = Debug|Any CPU 14 | {542E94B8-9F48-83EE-3A35-B6C8F15311F3}.Release|Any CPU.ActiveCfg = Release|Any CPU 15 | {542E94B8-9F48-83EE-3A35-B6C8F15311F3}.Release|Any CPU.Build.0 = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | --------------------------------------------------------------------------------