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
/* | |
カレンダーにリマインダーの理論間隔でイベントを設置するスクリプト | |
ver. 0.1 2012/1/3: SASAKAWA Kunihiro | |
ver. 0.2 2012/1/4: SASAKAWA Kunihiro : コメントを書き直し。 | |
*/ | |
/* | |
makeCalEvent | |
カレンダーにイベントを書き込む関数 | |
cal as Calendar Object |
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; | |
using UnityEditor; | |
using System.Collections.Generic; | |
[ExecuteInEditMode] | |
public class CheckShader: MonoBehaviour | |
{ | |
void OnEnable () | |
{ |
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
/*------------------------------------------------- | |
System Designed, | |
Code Written, | |
by Kunihiro Sasakawa as [email protected] | |
-------------------------------------------------*/ | |
Shader "SkyCircus/RimEmission" |
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
# Git branch in prompt. | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
# export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ " | |
export PS1="\[\e[0;32m\]\u\[\e[m\] \[\e[1;34m\]\w\[\e[m\] \[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ " |
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 "Shirorama/Transparent UVScroll For Water" { | |
Properties { | |
_Color ("Color", Color) = (1,1,1,1) | |
_MainTex ("Albedo (RGB)", 2D) = "white" {} | |
_Glossiness ("Smoothness", Range(0,1)) = 0.5 | |
_Metallic ("Metallic", Range(0,1)) = 0.0 | |
_SpeedX ("Scroll Speed X", Float ) = 1.0 | |
_SpeedY ("Scroll Speed Y", Float ) = 1.0 | |
} | |
SubShader { |
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
// namespace jigaX{ | |
public class UVScroller : MonoBehaviour { | |
[SerializeField] List<Renderer> targetRenderers; | |
[SerializeField] Vector2 speed = new Vector2(); | |
List<Material> mats; | |
void Start () { | |
this.mats = new List<Material>(); | |
foreach(var r in this.targetRenderers ){ | |
foreach( var m in r.materials ){ | |
this.mats.Add(m); |
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
/*------------------------------------------------- | |
System Designed, | |
Code Written, | |
by Kunihiro Sasakawa as [email protected] | |
-------------------------------------------------*/ | |
Shader "SkyCircus/Frame/BokehShader" { |
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 DestroyWhenInvisible : MonoBehaviour { | |
void OnBecameInvisible() | |
{ | |
Destroy(this.gameObject); | |
} | |
} |
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 MakeCubeOnWorld : MonoBehaviour { | |
/// <summary> | |
/// 1スクリプトで対処する場合 | |
/// </summary> | |
/// 生成したキューブを格納するList | |
List<GameObject> instances = new List<GameObject>(); | |
void Update() | |
{ |
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 LineMaker : MonoBehaviour { | |
// ラインは使い回すのでメンバとして宣言。 | |
LineRenderer line; | |
void Update() | |
{ | |
// GetMouseButtonDownは開始時。 | |
// GetMouseButtonはドラッグ時。 | |
// GetMouseButtonUpは終了時。 | |
if (Input.GetMouseButtonDown(0)) |