Skip to content

Instantly share code, notes, and snippets.

using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace ProBuilder2.Common
{
/**
* Simple object pool implementation.
*/
public class pb_ObjectPool<T> where T : UnityEngine.Object, new()
-- ProBuilder 2.4.8f0 (r3747)
# Features
- Enable Set Pivot, Delete, and Vertex Painter in ProBuilder Basic.
- New Standard Shader with vertex color support (thanks to Unity Forum user @defaxer).
# Bug Fixes
- Add tooltips for every action in the ProBuilder toolbar.
- Fix consistent horizontal scrollbar showing in ProBuilder window.
- Use white text color in Dimensions Overlay when Unity Personal skin is used.
using UnityEngine;
namespace ProBuilder2.Common
{
/**
* A generic singleton implementation for MonoBehaviours.
*/
public class pb_MonoBehaviourSingleton<T> : MonoBehaviour where T : MonoBehaviour
{
/// Store a static reference to the instance of this object.
@karl-
karl- / ReplaceUV3Property.cs
Created December 23, 2015 17:22
Hack to access UV3 attribute as vec4 in ShaderForge
using UnityEngine;
using UnityEditor;
using System.Collections;
using System;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
/**
* Provides a quick and dirty path to access a mesh.uv3 channel as Vector4 in ShaderForge
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"]