Skip to content

Instantly share code, notes, and snippets.

@TanaTanoi
TanaTanoi / chromebook.cs
Created September 26, 2018 21:47
Detecting if the app is running on a Chromebook in Unity
private static bool? isChromebook = null;
#if UNITY_ANDROID && !UNITY_EDITOR
private static AndroidJavaClass androidUnityActivity = null;
public static AndroidJavaObject GetUnityActivity() {
if (androidUnityActivity == null) {
andr oidUnityActivity = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
}
return androidUnityActivity.GetStatic<AndroidJavaObject>("currentActivity");
}
#endif
@TanaTanoi
TanaTanoi / cube.obj
Last active September 11, 2017 01:27
A higher resolution cube for deformation.
# Blender v2.77 (sub 0) OBJ File: ''
# www.blender.org
o Cube_Cube.001
v -1.000413 -0.513454 -0.491589
v -1.000413 -0.513454 -0.991589
v -1.000413 -1.013454 -0.991589
v -1.000413 -1.013454 -0.491589
v 0.499587 -0.513454 -0.991589
v 0.999587 -0.513454 -0.991589
v 0.999587 -1.013454 -0.991589
@TanaTanoi
TanaTanoi / cylinder.obj
Last active September 11, 2017 01:28
A higher resolution cylinder for deformation.
# Blender v2.77 (sub 0) OBJ File: ''
# www.blender.org
o Cylinder.001
v 0.038478 1.550510 -1.027466
v 0.038478 2.232750 -1.027466
v 0.233569 2.232750 -1.008251
v 0.233569 1.550510 -1.008251
v 0.421162 2.232750 -0.951345
v 0.421162 1.550510 -0.951345
v 0.594049 2.232750 -0.858935