Skip to content

Instantly share code, notes, and snippets.

@Frozenfire92
Frozenfire92 / MoveComponentContext.cs
Last active August 29, 2015 14:26 — forked from AngryAnt/MoveComponentContext.cs
Adds "Move to Top" and "Move to Bottom" items to the inspector context menu of components.
using UnityEngine;
using UnityEditor;
public class MoveComponentContext
{
enum Destination
{
Top,
Bottom
@Frozenfire92
Frozenfire92 / D.cs
Last active August 29, 2015 14:26 — forked from onevcat/D.cs
Unity Better Debug script
#define DEBUG_LEVEL_LOG
#define DEBUG_LEVEL_WARN
#define DEBUG_LEVEL_ERROR
using UnityEngine;
using System.Collections;
// setting the conditional to the platform of choice will only compile the method for that platform
@Frozenfire92
Frozenfire92 / Log.cs
Last active September 11, 2017 20:16 — forked from DanPuzey/Log.cs
Unity logging wrapper, for better performance and usage.
using UnityEngine;
namespace Assets.Phunk.Core
{
public static class Log
{
#region Error
public static void ErrorFormat(UnityEngine.Object context, string template, params object[] args)
{
var message = string.Format(template, args);
@Frozenfire92
Frozenfire92 / flux.sh
Last active August 29, 2015 14:24 — forked from robertmarsal/gist:9feaa9150926efa4175a
flux ubuntu 15.04
sudo apt-get install python-gconf python-glade2 python-appindicator
git clone https://github.com/Kilian/f.lux-indicator-applet.git
cd f.lux-indicator-applet
chmod +x setup.py
sudo ./setup.py install
fluxgui
# By default the behavior is:
# Primary monitor work as always and second monitor only have one and fixed workspace
# I.e. you change to next workspace, primary monitor change to this workspace and second monitor remain as is.
# The desired behaviour is:
# Primary monitor and secondary monitor are linked workspace.
# I.e. you change to next workspace, primary monitor change to this workspace and second monitor too.
$ gconf-editor
# Look for /desktop/gnome/shell/windows/workspaces_only_on_primary and set to false