Skip to content

Instantly share code, notes, and snippets.

@TobiTobascoNollero
TobiTobascoNollero / UIParticleScaler.cs
Last active April 19, 2021 22:14
Unity - Particle Scaling for Particles inside the Unity GUI
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using UnityEngine.UI;
/* UI Particle Scaling script by Tobi Tobasco Nollero, questions: tobias@lostmountaingames.com, http://tobiasnoller.com/
* Just drag this script on any canvas which has child particle systems underneath.
* Add your resolution change listener to scale your particles when changing resolutions.
* Prewarmed particle system emitting on begin play, will probably not be affected by the script the first time they fire.
* Feel free to use this script in any project.
@AnomalousUnderdog
AnomalousUnderdog / DldUtil_BuiltInSkinBrowser.cs
Last active August 9, 2017 17:15
A utility script for Unity 3d: A window that takes the built-in GUI skin, and shows all the custom GUI styles inside.
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Text.RegularExpressions;
using System.IO;
public class DldUtil_BuiltInSkinBrowser : EditorWindow
{
[MenuItem("Window/Built-in Skin Browser")]
static void OpenWindow()
@mattak
mattak / unity.gradle
Created March 10, 2014 17:58
build.gradle for unity
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.8.+'
classpath 'com.deploygate:gradle:0.5'
}
}
@rxin
rxin / ramdisk.sh
Last active November 21, 2024 15:11
ramdisk create/delete on Mac OS X.
#!/bin/bash
# From http://tech.serbinn.net/2010/shell-script-to-create-ramdisk-on-mac-os-x/
#
ARGS=2
E_BADARGS=99
if [ $# -ne $ARGS ] # correct number of arguments to the script;
then
@mminer
mminer / Console.cs
Last active March 28, 2024 22:23
Unity script to display in-game debug console. Actively maintained version: https://github.com/mminer/consolation
// NOTE: For an actively-maintained version of this script, see https://github.com/mminer/consolation.
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// A console to display Unity's debug logs in-game.
/// </summary>
public class Console : MonoBehaviour
{