Skip to content

Instantly share code, notes, and snippets.

Avatar
😇

EsProgram EsProgram

😇
View GitHub Profile
@LotteMakesStuff
LotteMakesStuff / StatsBarAttribute.cs
Last active Sep 23, 2019
StatsBar property drawer for Unity~ Add a [StatsBar] attribute to a property to make it draw a lil bar, really useful for visualizing character stats like Health or Mana.
View StatsBarAttribute.cs
// NOTE DONT put in an editor folder
using UnityEngine;
public class StatsBarAttribute : PropertyAttribute
{
public string valueMax;
public StatsBarColor color;
public StatsBarAttribute(string valueMax = null, StatsBarColor color = StatsBarColor.Red)
@tsubaki
tsubaki / TextEffect.cs
Created Apr 15, 2016
テキストを動かす奴の基本
View TextEffect.cs
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using UnityEngine.EventSystems;
using System.Collections.Generic;
public class TextEffect : UIBehaviour, IMeshModifier {
public new void OnValidate()
{
@Skybladev2
Skybladev2 / ExecutionOrderManager.cs
Last active Jan 17, 2022
Explicit script exection order for Unity scripts
View ExecutionOrderManager.cs
using System;
using UnityEditor;
[InitializeOnLoad]
public class ExecutionOrderManager : Editor
{
static ExecutionOrderManager()
{
foreach (MonoScript monoScript in MonoImporter.GetAllRuntimeMonoScripts())
{
@JohnnyBeluga
JohnnyBeluga / Unity Basic Tessellation Shader
Last active Apr 4, 2018
Basic triangle Unity ShaderLab Shader; Tessellates a triangle mesh and colors it red.
View Unity Basic Tessellation Shader
Shader "Tesselation/Triangle_Tesselation" {
Properties {
_TessEdge ("Edge Tess", Range(1,64)) = 2
}
SubShader {
Pass {
CGPROGRAM
#pragma target 5.0
@fum1h1ro
fum1h1ro / BuildAssetBundle.boo
Created Feb 18, 2014
指定フォルダ以下にあるフォルダそれぞれをアセットバンドルにビルドする
View BuildAssetBundle.boo
import UnityEngine
import UnityEditor
import System
import System.IO
// C# の例
// プロジェクト ウィンドウの選択されたオブジェクトからアセットバンドルを作成
// コンパイルした後は "Menu" -> "Assets" へ移動して選択肢から一つを選択して
// アセットバンドルをビルド
class BuildAssetBundle:
@trey
trey / happy_git_on_osx.md
Last active Jan 2, 2022
Creating a Happy Git Environment on OS X
View happy_git_on_osx.md

Creating a Happy Git Environment on OS X

Step 1: Install Git

brew install git bash-completion

Configure things:

git config --global user.name "Your Name"
git config --global user.email "you@example.com"