Skip to content

Instantly share code, notes, and snippets.

@karl-
karl- / Package Import Loader
Created December 3, 2013 19:35
Bundled with a unitypackage, this script will search for PACKNAME and load an editor window when imported.
class MyPackInstaller : EditorWindow
{
public static void Init()
{
EditorWindow.GetWindow<MyPackInstaller>().Show();
}
void OnGUI()
{
// code to load pack with options here
@karl-
karl- / gist:8050628
Created December 20, 2013 05:11
ProBuilder 2.2.1 release notes

Features

- Update Undo code for Unity 4.3 compatibility (Install Interface will determine the correct package for your Unity version automatically).	
- Add Rotate and Scale tool when editing faces or vertices (accessed by `E` and `R` shortcuts, respectively).
- Add EditLevel toolbar in sceneview for quickly viewing and setting EditLevel. @Genstein suggested improvement.
- New Edge selection mode.
- New `Bridge Edges` action.  Selected 2 edges to create a face bridging them.
- New `Collapse Selected Vertices` action.  Select any number of vertices and merge them to a single point.
- New `Split Selected Vertices` action.  Splits the selected vertices.
- New `Weld Selected Vertices` action.  Checks if any selected vertices share a point, and if so, merge them.
- New `Invert Selection` action. (ProBuilder -&gt; Edit -&gt; Invert Selection).
diff --git a/Assets/GILES/Code/Classes/GUI/pb_InspectorResolver.cs b/Assets/GILES/Code/Classes/GUI/pb_InspectorResolver.cs
index bad7fe6..9c8b594 100644
--- a/Assets/GILES/Code/Classes/GUI/pb_InspectorResolver.cs
+++ b/Assets/GILES/Code/Classes/GUI/pb_InspectorResolver.cs
@@ -9,7 +9,7 @@ using System.Reflection;
namespace GILES.Interface
{
/**
- * Used by pb_TypeInspector to find the appropriate inspector subclasses to draw
+ * Used by pb_TypeInspector to find the appropriate inspector subclasses to draw
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
using System.IO;
public class AutomaticBuild : EditorWindow
{
const string BUILD_PATH = "Builds";
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System;
using System.Reflection;
using KdTree;
using KdTree.Math;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
public class DrawHandle : ScriptableObject
{
[SerializeField] Vector3 m_Position = Vector3.zero;
[MenuItem("Tools/Draw Handle")]
{
"Name":"ProBuilder Unity 5.6",
"UnityPath": [
"/Applications/Unity 5.6.0f3/Unity.app",
"D:/Applications/Unity 5.6.0f3",
],
"Macros": {
"$SRC_PB_ROOT": "probuilder2.0/Assets/ProCore/ProBuilder",
"$DST_PB_ROOT": "bin/projects/ProBuilder-Unity56/Assets/ProCore/ProBuilder",
},
@karl-
karl- / athensworks_members.json
Last active July 19, 2017 16:26
List each member's gravatar name, in order of appearance.
["benlachman","rickychilcott","mikeblohm", "mbargar", "frgordon", "wassermantimothy", "timphysics314159", "cherylskelley", "howjam009", "marytreed", "khenkel"]
#!/bin/bash
# Jokes credit: http://pun.me/pages/dad-jokes.php
# put this in ~/bin or wherever and alias it:
# git config --global alias.dad '!sh ~/bin/git-dad.sh'
JOKES=("Did you hear about the restaurant on the moon? Great food, no atmosphere."
"What do you call a fake noodle? An Impasta."
"How many apples grow on a tree? All of them."
"Want to hear a joke about paper? Nevermind it's tearable."
"I just watched a program about beavers. It was the best dam program I've ever seen."
@karl-
karl- / pb_StandardVertexColor.shader
Created October 30, 2017 19:37
ProBuilder Standard Vertex Color shader
/**
* This shader was created with Shaderforge but contains multiple manual edits.
* If you modify this shader make sure to go through and pack uv1 and uv2 channels
* into a single float4 to save on registers (on penalty of compile error)
*/
// Shader created with Shader Forge v1.38
// Shader Forge (c) Neat Corporation / Joachim Holmer - http://www.acegikmo.com/shaderforge/
// Note: Manually altering this data may prevent you from opening it in Shader Forge
// Uncomment (just the //) this line to edit with ShaderForge
// /*SF_DATA;ver:1.38;sub:START;pass:START;ps:flbk:Standard,iptp:0,cusa:False,bamd:0,cgin:,lico:1,lgpr:1,limd:3,spmd:1,trmd:0,grmd:1,uamb:True,mssp:True,bkdf:True,hqlp:False,rprd:True,enco:False,rmgx:True,imps:True,rpth:0,vtps:0,hqsc:True,nrmq:1,nrsp:0,vomd:0,spxs:False,tesm:0,olmd:1,culm:0,bsrc:0,bdst:1,dpts:2,wrdp:True,dith:0,atcv:False,rfrpo:True,rfrpn:Refraction,coma:15,ufog:True,aust:True,igpj:False,qofs:0,qpre:1,rntp:1,fgom:False,fgoc:False,fgod:False,fgor:False,fgmd:0,fgcr:0.5,fgcg