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
public class ApkBuildAndInstall | |
{ | |
[MenuItem("ビルド/APK BuildInstall #b")] | |
static void BuildInstallApk() | |
{ | |
var path = System.Environment.CurrentDirectory; | |
var fullPath = Path.Combine(path, "test.apk"); | |
var levels = EditorBuildSettings.scenes.Where(x => x.enabled).Select(x => x.path).ToArray(); | |
PlayerSettings.SetScriptingBackend(EditorUserBuildSettings.selectedBuildTargetGroup, ScriptingImplementation.Mono2x); |
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 Restart Editor On Stop | |
// @sh_akira | |
// Put this file to Assets/Editor/ | |
// | |
using UnityEngine; | |
using UnityEditor; | |
[InitializeOnLoad] |
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
Shader "Unlit/Flip Rotation" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
[KeywordEnum(ANGLE0, ANGLE90, ANGLE180, ANGLE270)] _ROTATEFLAG("Rotation", Float) = 0 | |
[Toggle] _FLIP_X("Flip X", Float) = 0 | |
[Toggle] _FLIP_Y("Flip Y", Float) = 0 |
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 EyeJitter : MonoBehaviour { | |
float timer = 0.0f; | |
Quaternion rot; | |
public float changeTime = 0.4f; // 変更する時間最小値 |
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 UnityEngine.UI; | |
using System.Linq; | |
using System; | |
using System.Collections.Generic; | |
using UnityEngine.EventSystems; | |
//UGUIにタブ移動機能を追加出来ます。 | |
//深い理由が無ければ、Canvasにこのスクリプトを張り付けて下さい。 | |
//子オブジェクトのHierarchyの上からの並び順で取得し、その順番通りで座標に因らずにタブキーでフォーカスを映すことが出来ます。 |
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 UnityEditor; | |
using UnityEngine; | |
namespace djkusuha.Utility | |
{ | |
/// <summary> | |
/// Unityエディタ上からGameビューのスクリーンショットを撮るEditor拡張 | |
/// </summary> | |
public class CaptureScreenshotFromEditor : Editor | |
{ |
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; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int a,b,c; | |
a = int.Parse(Console.ReadLine()); //標準入力 | |
string[] str = Console.ReadLine().Split(' ');//2つ以上のスペース区切り入力の取得 | |
b = int.Parse(str[0]); //数値で受け取りたい場合は変換する | |
c = int.Parse(str[1]); |