Skip to content

Instantly share code, notes, and snippets.

View ShirakawaYoshimaru's full-sized avatar

SLEKFjawefkjw ShirakawaYoshimaru

  • 東京あたり
View GitHub Profile
@EsProgram
EsProgram / NextPage.shader
Created March 12, 2016 17:28
ページめくる感じのアニメーションできるシェーダー
Shader "MBL/NextPage"
{
Properties
{
_MainTex("Texture", 2D) = "white" {}
_PageTex("PageTexture", 2D) = "white" {}
_AlphaMask("AlphaMask", Range(0, 1)) = 0.1
_Flip("Flip",Range(-1, 1)) = 0
}
SubShader
@tsubaki
tsubaki / ExecuteShell.cs
Last active April 16, 2016 15:49
Unityで別プロセスを実行し、ログを受け取る
using System.Text;
using UnityEditor;
using UnityEngine;
public class ExecuteShell
{
static readonly string argment = "hoge.sh";
static readonly int maxSize = 1048576;
[MenuItem("Edit/Execute %t")]
@yatemmma
yatemmma / git-lesson.md
Last active February 15, 2022 03:36
git初心者への道 - お仕事で困らないレベルまでググっとします。

git初心者への道

まずやってみよう - コミットする、ログを見る、差分を見る

初登場するコマンド: init, add, commit, log, config, status, diff

@tsubaki
tsubaki / ScriptableObjectToAsset.cs
Last active August 13, 2021 12:31
ScriptableObjectをAssetsファイルとして出力する汎用スクリプト
using UnityEngine;
using System.Collections;
using UnityEditor;
using System.IO;
/// <summary>
// ScriptableObjectをプレハブとして出力する汎用スクリプト
/// </summary>
// <remarks>
// 指定したScriptableObjectをプレハブに変換する。
@darktable
darktable / MiniJSON.cs
Created November 30, 2011 23:08
Unity3D: MiniJSON Decodes and encodes simple JSON strings. Not intended for use with massive JSON strings, probably < 32k preferred. Handy for parsing JSON from inside Unity3d.
/*
* Copyright (c) 2013 Calvin Rien
*
* Based on the JSON parser by Patrick van Bergen
* http://techblog.procurios.nl/k/618/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html
*
* Simplified it so that it doesn't throw exceptions
* and can be used in Unity iPhone with maximum code stripping.
*
* Permission is hereby granted, free of charge, to any person obtaining
@boj
boj / ColorPicker.cs
Created August 30, 2011 17:39
Unity3d Color Picker
using UnityEngine;
using System.Collections;
// relies on: http://forum.unity3d.com/threads/12031-create-random-colors?p=84625&viewfull=1#post84625
public class ColorPicker : MonoBehaviour {
public bool useDefinedPosition = false;
public int positionLeft = 0;
public int positionTop = 0;