This file contains 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 UnityEditor; | |
using System.IO; | |
using System.Collections; | |
public class EditorFont : Editor | |
{ | |
[MenuItem("Assets/Load Font Settings...")] | |
static void LoadFontSettings() | |
{ |
This file contains 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 "Custom/Transition" { | |
Properties { | |
_MainTex ("Base (RGB)", 2D) = "white" {} | |
_Color ("Base Color", Color) = (0, 0, 0, 1) | |
_Cutoff ("Alpha cutoff", Range(0,1)) = 0.0 | |
_Step ("Step", Range(0, 1)) = 0.0 | |
} | |
SubShader { | |
Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="TransparentCutout"} |
This file contains 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 UnityEditor; | |
using System; | |
using System.Linq; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class AlignEditor : Editor { | |
[MenuItem("Editor/均等割り付け(X軸)")] |
This file contains 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
// ==UserScript== | |
// @description Twitterのbiggerアイコンをnormalアイコンに書き換えます。 | |
// @include http*://twitter.com/* | |
// ==/UserScript== | |
(function() { | |
function changeAvatar() { | |
var imgs = document.querySelectorAll('img.js-action-profile-avatar'); | |
for(var i = 0; i < imgs.length; i++) { |
This file contains 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 "GUI/Vlit Textured Text Shader" | |
{ | |
Properties { | |
_MainTex ("Font Texture", 2D) = "white" {} | |
_Color ("Text Color", Color) = (1,1,1,1) | |
} | |
SubShader { | |
Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" } |
This file contains 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; | |
public class ObjectRotation : MonoBehaviour | |
{ | |
public Transform target; | |
public bool down = false; | |
public float limit = 10.0f; | |
private float _inertia = 0.0f; |
This file contains 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
(function(global) { | |
'use strict'; | |
var mesh = {}; | |
var position = [], | |
uv = [], | |
uniforms = [], | |
attributes = [], | |
program; |
This file contains 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 UnityEditor; | |
using System.Collections; | |
using System.IO; | |
public class BoxTerrain : EditorWindow | |
{ | |
Texture2D texture = null; | |
[MenuItem ("Editor/Box Terrain")] |
This file contains 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
(function(global) { | |
'use strict'; | |
var fullScreenVS = | |
"attribute vec2 position;" + | |
"varying vec2 uv;" + | |
"void main(){" + | |
"uv=position.xy*0.5+0.5;" + | |
"gl_Position=vec4(position.xy,0.0,1.0);}"; | |
This file contains 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 UnityEditor; | |
[CustomEditor(typeof(Camera))] | |
public class LookAtCameraEditor : Editor | |
{ | |
Vector3 value; | |
public override void OnInspectorGUI() | |
{ | |
DrawDefaultInspector(); |
OlderNewer