Skip to content

Instantly share code, notes, and snippets.

@p-groarke
p-groarke / ResizeReorderableListExample.cs
Created March 13, 2016 21:47
Resize Unity Reorderable List example.
// From MALQUA
// https://feedback.unity3d.com/suggestions/custom-element-size-in-reorderable-list
// http://i.imgur.com/fIbBorr.gifv
ReorderableList CreateList (SerializedObject obj, SerializedProperty prop)
{
ReorderableList list = new ReorderableList (obj, prop, true, true, true, true);
list.drawHeaderCallback = rect => {
EditorGUI.LabelField (rect, "Sprites");
@p-groarke
p-groarke / UnityTextures.cs
Created August 23, 2016 14:40 — forked from masa795/UnityTextures.cs
Unityが持っているアイコンを表示する。 Unityのバージョンによってはパスが使えなくなるかもしれないので使用時は注意。
using System;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
//Unity 4.1.5
public class UnityTextures : EditorWindow
{
@p-groarke
p-groarke / GLSL-Noise.md
Created August 6, 2017 21:52 — forked from patriciogonzalezvivo/GLSL-Noise.md
GLSL Noise Algorithms

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
	return mix(rand(fl), rand(fl + 1.0), fc);
}