Skip to content

Instantly share code, notes, and snippets.

View nkjzm's full-sized avatar
🐧
Working

Nakaji Kohki nkjzm

🐧
Working
View GitHub Profile
@nkjzm
nkjzm / EyeJitter.cs
Created December 6, 2018 17:58 — forked from GOROman/EyeJitter.cs
Unityで微細眼球運動っぽい何か
using UnityEngine;
using System.Collections;
public class EyeJitter : MonoBehaviour {
float timer = 0.0f;
Quaternion rot;
public float changeTime = 0.4f; // 変更する時間最小値
@nkjzm
nkjzm / CaptureScreenshotFromEditor.cs
Created November 17, 2018 16:48 — forked from dj-kusuha/CaptureScreenshotFromEditor.cs
Unityエディタ上からGameビューのスクリーンショットを撮るEditor拡張。
using UnityEditor;
using UnityEngine;
namespace djkusuha.Utility
{
/// <summary>
/// Unityエディタ上からGameビューのスクリーンショットを撮るEditor拡張
/// </summary>
public class CaptureScreenshotFromEditor : Editor
{
@nkjzm
nkjzm / FlipRotation.shader
Created October 25, 2018 04:28 — forked from kaiware007/FlipRotation.shader
UVを回転&上下左右反転できるシェーダーのサンプル UV top / bottom / left / right Flipping & 90 Degree Rotation Shader sample
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
@nkjzm
nkjzm / RestartOnStop.cs
Created September 11, 2018 06:33 — forked from sh-akira/RestartOnStop.cs
UnityエディタでStopしたときにエディタを再起動するエディタ拡張です
//
// Unity Restart Editor On Stop
// @sh_akira
// Put this file to Assets/Editor/
//
using UnityEngine;
using UnityEditor;
[InitializeOnLoad]