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; | |
public static class RectTransformExtensions | |
{ | |
/// <summary> | |
/// 座標を保ったままPivotを変更する | |
/// </summary> | |
/// <param name="rectTransform">自身の参照</param> | |
/// <param name="targetPivot">変更先のPivot座標</param> | |
public static void SetPivotWithKeepingPosition(this RectTransform rectTransform, Vector2 targetPivot) |
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
<a href="Astronaut.usdz" rel="ar"><img src="Astronaut.gif" /></a> |
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
// | |
// 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
using UnityEngine; | |
using UnityEditor; | |
using System.IO; | |
using System.Reflection; | |
[InitializeOnLoad] | |
public class PathReplacer | |
{ | |
static PathReplacer() | |
{ |
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 Test : MonoBehaviour | |
{ | |
void Start() | |
{ | |
string[] args = System.Environment.GetCommandLineArgs(); | |
for (int i = 0; i < args.Length; ++i) | |
{ | |
switch (args[i]) | |
{ | |
case "-mode": |
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
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any | |
means. | |
In jurisdictions that recognize copyright laws, the author or authors | |
of this software dedicate any and all copyright interest in the | |
software to the public domain. We make this dedication for the benefit |
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 static Vector2 Get(Axis2D virtualMask, Controller controllerMask = Controller.Active) | |
{ | |
return GetResolvedAxis2D(virtualMask, RawAxis2D.None, controllerMask); | |
} |