Skip to content

Instantly share code, notes, and snippets.

@nir1082
nir1082 / MultiSceneWindow.cs
Last active October 7, 2020 09:49
[Unity] シーンのロードとかActive化とかやりやすくするEditorWindow。マルチシーン対応 (Unity2018.2.14)
using System;
using System.Collections;
using System.IO;
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEditorInternal;
using UnityEngine;
using Scene = UnityEngine.SceneManagement.Scene;
@nir1082
nir1082 / Hologram.shader
Created December 18, 2018 03:54
[Unity] シンプルなホログラムっぽいシェーダー
Shader "Custom/Hologram" {
Properties {
_Color ("Color", Color) = (1,1,1,1)
_MainTex ("Albedo (RGB)", 2D) = "white" {}
[HDR]_Emission ("Emission", Color) = (0.0, 0.0, 0.0, 0.0)
_Speed ("Scroll Speed", float) = .5
_Space ("Space", Range(0,1)) = .1
_Division ("Division Count", float) = 150
}
@nir1082
nir1082 / AffineTransform.shader
Created March 31, 2019 13:06
[Unity] 画像を移動・拡縮・回転するシェーダー
Shader "Unlit/AffineTransform"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
_PositionX ("Position X", float) = 0.0
_PositionY ("Position Y", float) = 0.0
_ScaleX ("Scale X", float) = 1.0
_ScaleY ("Scale Y", float) = 1.0
_Rotate ("Rotate", float) = 0.0