Skip to content

Instantly share code, notes, and snippets.


Vinny vad710

View GitHub Profile
cdun / HybridPlaneManager.cs
Created Jan 24, 2018
Combines Vuforia image tracking and ground plane. Modified from the PlaneManager class within the Vuforia ground plane samples.
View HybridPlaneManager.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Vuforia;
public class HybridPlaneManager : MonoBehaviour, ITrackableEventHandler
private enum PlaneMode
michaelbartnett / UnityApiUx.cs
Created Feb 5, 2016
particle system modules are weird
View UnityApiUx.cs
ParticleSystem ps = GetComponent<ParticleSystem>();
ps.enableEmission = false;
// warning CS0618: `UnityEngine.ParticleSystem.enableEmission' is obsolete: `enableEmission property is deprecated. Use emission.enable instead.'
ps.emission.enable = false;
// error CS1061: Type `UnityEngine.ParticleSystem.EmissionModule' does not contain a definition for `enable' and no extension method `enable' of type `UnityEngine.ParticleSystem.EmissionModule' could be found (are you missing a using directive or an assembly reference?)
ps.emission.enabled = false;
// error CS1612: Cannot modify a value type return value of `UnityEngine.ParticleSystem.emission'. Consider storing the value in a temporary variable
View LinkedCamera.cs
using UnityEngine;
using System.Collections;
public class LinkedCamera : MonoBehaviour {
// What transform to chase:
public Transform target;
// Debug keyboard controls:
public KeyCode modifier;
public KeyCode incSmooth;
View CompanionCamera.cs
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class CompanionCamera : MonoBehaviour {
// Debug shortcut keys:
public KeyCode modifier;
public KeyCode toggleButton;
// If true, this will permanently disable the SteamVR companion camera.
jbevain /
Last active Aug 5, 2021
pdb2mdb for Visual Studio 2015

The Visual Studio Tools for Unity are able to convert .NET debug symbol files (namely pdb files) to debug symbols files that are understood by Unity's scripting engine (namely .dll.mdb files) when importing both the .dll and the .pdb in the Assets folder.

If you prefer to handle the conversion yourself you need to call a tool named pdb2mdb on the .dll associated with the .pdb:

pdb2mdb MyLibrary.dll

Will produce a MyLibrary.dll.mdb usable on Unity if MyLibrary.pdb is present.

terrehbyte /
Last active Jul 14, 2021
Useful Open-Source Unity Assets

Useful Open-Source Unity Assets

This is a compilation of various open-source Unity plugins, codebases, or utility scripts that may aid in expediting the development process.

Art / Design Tools

ProbePolisher - Light Probe Editor - keijiro

"ProbePolisher is a Unity Editor plugin for editing light probes. It works both on Unity Basic (free) and Unity Pro."


creativcoder / gist:5dc5c2e35cd218ce9b5d
Last active Oct 7, 2021
Get list of installed packages(apps) in android via adb shell
View gist:5dc5c2e35cd218ce9b5d
Issue this command to terminal with your device connected :
$ adb shell pm list packages
If that doesn't work, then:
$ adb shell
$ su
$ pm list packages
View wsus-update.ps1
Function WSUSUpdate {
$Criteria = "IsInstalled=0 and Type='Software'"
$Searcher = New-Object -ComObject Microsoft.Update.Searcher
try {
$SearchResult = $Searcher.Search($Criteria).Updates
if ($SearchResult.Count -eq 0) {
Write-Output "There are no applicable updates."
else {
ChemiKhazi / EnumFlagAttribute.cs
Created Apr 29, 2014
Unity3d property drawer for automatically making enums flags into mask fields in the inspector.
View EnumFlagAttribute.cs
using UnityEngine;
public class EnumFlagAttribute : PropertyAttribute
public string enumName;
public EnumFlagAttribute() {}
public EnumFlagAttribute(string name)
dlidstrom / run-jasmine.js
Last active Jan 3, 2016
Runs Jasmine tests using PhantomJS. Adapted for use within TeamCity.
View run-jasmine.js
var system = require('system'),
env = system.env;
* Wait until the test condition is true or a timeout occurs. Useful for waiting
* on a server response or for a ui change (fadeIn, etc.) to occur.
* @param testFx javascript condition that evaluates to a boolean,
* it can be passed in as a string (e.g.: "1 == 1" or "$('#bar').is(':visible')" or
* as a callback function.