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; | |
using System; | |
public class MaskPattern : MonoBehaviour { | |
[Tooltip("マスクパターンを実装するシェーダを持つマテリアル")] | |
public Material mat; | |
[Tooltip("マスク。3x3の部分しか使用しない。")] | |
public Matrix4x4 matrix; | |
[Tooltip("基本的にはマスク数の9、適用しないマスク値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
"Display | |
gui | |
" 透明度 | |
set transparency=220 | |
colorscheme koehler | |
syntax on "シンタックスカラーリングを設定する | |
set number "行番号を表示する | |
set title "編集中のファイル名を表示する | |
set showcmd "入力中のコマンドを表示する | |
set ruler "座標を表示する |
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; | |
using UnityEditor; | |
using System.IO; | |
using System.Linq; | |
using System.Xml.Linq; | |
public class VisualStudioProjectPostProcess : AssetPostprocessor { | |
public static void OnGeneratedCSProjectFiles() { | |
GenerateSoultion(); | |
} |
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
import UnityEngine | |
import UnityEditor | |
import System | |
import System.IO | |
// C# の例 | |
// プロジェクト ウィンドウの選択されたオブジェクトからアセットバンドルを作成 | |
// コンパイルした後は "Menu" -> "Assets" へ移動して選択肢から一つを選択して | |
// アセットバンドルをビルド | |
class BuildAssetBundle: |
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 enum AudioKey | |
{ | |
} |
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 "MBL/UI/UIFade" | |
{ | |
Properties | |
{ | |
[HideInInspector] | |
_MainTex ("Texture", 2D) = "white" {} | |
_BGTex("BGTexture", 2D) = "white" {} | |
_Clip ("Clip", Range(0,1)) = 0 | |
_SrcCol ("SourceColor", Color) = (0,0,0,1) | |
_DstCol ("DestinationColor", Color) = (1,1,1,1) |
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; | |
using UnityEditor; | |
[InitializeOnLoad] | |
public class ExecutionOrderManager : Editor | |
{ | |
static ExecutionOrderManager() | |
{ | |
foreach (MonoScript monoScript in MonoImporter.GetAllRuntimeMonoScripts()) | |
{ |
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 "MBL/Repeat" | |
{ | |
Properties | |
{ | |
[NoScaleOffset] | |
_MainTex("Texture", 2D) = "white" {} | |
_OffsetX("OffsetX", Float) = 0.0 | |
_OffsetY("OffsetY", Float) = 0.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
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 |
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
#pragma multi_compile _ Lighting_ON Lighting_OFF |