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
@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 ) );