Skip to content

Instantly share code, notes, and snippets.

View shanestevens's full-sized avatar
🏠
Working from home

Shane Stevens shanestevens

🏠
Working from home
  • Melbourne, Australia
View GitHub Profile
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../paper-slider/paper-slider.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
@shanestevens
shanestevens / UIResizer.cs
Created December 11, 2012 04:07
Whole-Fat-Pixel UI for NGUI (Unity). I grabbed this useful script for Unity UI pixel placement from here: http://pastebin.com/EaZPHQPx
using UnityEngine;
[ExecuteInEditMode, RequireComponent(typeof(UIRoot))]
public class UIResizer : MonoBehaviour {
public enum GizmoRegion {
Border,
Center,
Edges,
All,
@shanestevens
shanestevens / Utilities.cs
Created December 2, 2012 04:22 — forked from AngryAnt/Utilities.cs
Example code for "Logging an entire GameObject" blog post on AngryAnt.com
using UnityEngine;
using System.Reflection;
public class Utilities
{
/* ... */
static void LogGameObject( GameObject gameObject, bool children )
{
Component[] components = gameObject.GetComponents( typeof( Component ) );