Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block p-groarke

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

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);
p-groarke / UnityTextures.cs
Created Aug 23, 2016 — forked from masa795/UnityTextures.cs
Unityが持っているアイコンを表示する。 Unityのバージョンによってはパスが使えなくなるかもしれないので使用時は注意。
View UnityTextures.cs
using System;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
//Unity 4.1.5
public class UnityTextures : EditorWindow
p-groarke / ResizeReorderableListExample.cs
Created Mar 13, 2016
Resize Unity Reorderable List example.
View ResizeReorderableListExample.cs
// From MALQUA
ReorderableList CreateList (SerializedObject obj, SerializedProperty prop)
ReorderableList list = new ReorderableList (obj, prop, true, true, true, true);
list.drawHeaderCallback = rect => {
EditorGUI.LabelField (rect, "Sprites");
You can’t perform that action at this time.