This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Improved FastPlatformSwitcher for Unity 2018 (and maybe other Unity versions) | |
// For Asset Database v1 | |
// Symlink version (for Windows systems) | |
// by Andy Miira (Andrei Müller), October 2019 | |
// | |
// Based on: | |
// Unity – fast build platform switcher script! (by Aymeric - Da Viking Code) | |
// https://davikingcode.com/blog/unity-fast-build-platform-switcher-script/ | |
// | |
// A simple fast platform switcher for Unity (by Waldo Bronchart) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Improved FastPlatformSwitcher for Unity 2018 (and maybe other Unity versions) | |
// For Asset Database v1 | |
// by Andy Miira (Andrei Müller), October 2019 | |
// | |
// Based on: | |
// Unity – fast build platform switcher script! (by Aymeric - Da Viking Code) | |
// https://davikingcode.com/blog/unity-fast-build-platform-switcher-script/ | |
// | |
// A simple fast platform switcher for Unity (by Waldo Bronchart) | |
// https://gist.github.com/waldobronchart/b3cb789c028c199e2855 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" standalone="no"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
android:installLocation="auto"> | |
<uses-feature android:name="android.hardware.vr.headtracking" android:version="1" android:required="true" /><!-- Request the headset DoF mode --> | |
<application | |
android:label="@string/app_name" | |
android:icon="@mipmap/app_icon"> | |
<activity | |
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" | |
android:configChanges="locale|fontScale|keyboard|keyboardHidden|mcc|mnc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
#if UNITY_EDITOR && !UNITY_CLOUD_BUILD | |
using UnityEditor; | |
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class Vibration : MonoBehaviour { | |
public static AndroidJavaClass unityPlayer; | |
public static AndroidJavaObject vibrator; | |
public static AndroidJavaObject currentActivity; | |
public static AndroidJavaClass vibrationEffectClass; | |
public static int defaultAmplitude; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Unity Batch Burner: A script designed to reduce static mesh draw calls automatically in scenes | |
* with a large amount of static geometry entities. | |
* | |
* Copyright 2016-2017 Will Preston & Die-Cast Magic Studios, LLC. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
using System.Collections; | |
using System.Collections.Generic; | |
// docs: https://docs.unity3d.com/ScriptReference/AssetModificationProcessor.OnWillSaveAssets.html | |
public class BuildSceneProcessor : UnityEditor.AssetModificationProcessor | |
{ | |
private const string DIALOG_TITLE = "Add to Build Settings?"; | |
private const string DIALOG_MSG = "Add to build settings for inclusion in future builds?"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class MeshCut | |
{ | |
private static Plane blade; | |
private static Transform victim_transform; | |
private static Mesh victim_mesh; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// UnityからAndroidのCamera LEDを制御する例 | |
// startPreview() でカメラのプレビューを開始した状態で LEDOn() で光る | |
public class AndroidCamera { | |
AndroidJavaObject camera = null; | |
public AndroidCamera() { | |
WebCamDevice[] devices = WebCamTexture.devices; | |
Debug.Log("Camera Name:"+devices[0].name); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
using UnityEngine.UI; | |
using System.Collections; | |
using System.Linq; | |
[InitializeOnLoad] | |
public class HideShowCanvas : Editor | |
{ | |
static HideShowCanvas() |
NewerOlder