Skip to content

Instantly share code, notes, and snippets.

View fishtopher's full-sized avatar

Chris McLaughlin fishtopher

View GitHub Profile
@fishtopher
fishtopher / ShortcutCollisionChecker.cs
Created December 5, 2017 11:21
A little Unity utility to check for shortcut key collisions because it's hard to know if you're duplicating one from anywhere else.
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text.RegularExpressions;
// Little utility to check for shortcut key collisions because it's hard to
// know if you're duplicating one from anywhere else.
@fishtopher
fishtopher / OVRAvatarHandPoseOverrider.cs
Last active November 24, 2020 12:28
Tween the Oculus Avatar hands to any custom pose you want
using System.Collections;
using System.Collections.Generic;
using System;
using UnityEngine;
using Oculus.Avatar;
// Smoothly tween between the "real" hand pose that comes out of the
// Oculus Avatar SDK and a custom grip pose.
//
// ## Why?
@fishtopher
fishtopher / HighlightAttribute.cs
Last active November 28, 2023 04:23
Highlight Property Drawer - Simply sets the text/background colour of a field in the inspector.
// Do NOT put me in an /Editor/ folder
// Questions/bugs: [email protected]
using UnityEngine;
public class HighlightAttribute : PropertyAttribute {
public Color col;
public HighlightAttribute(float r=1, float g=0, float b=0) {
this.col = new Color(r,g,b,1);