Skip to content

Instantly share code, notes, and snippets.

View vad710's full-sized avatar
🎯
Focusing

Vinny vad710

🎯
Focusing
View GitHub Profile
@michaelbartnett
michaelbartnett / UnityApiUx.cs
Created February 5, 2016 23:40
particle system modules are weird
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
@itod
itod / split_keyboards.md
Last active May 23, 2024 01:51
Every "split" mechanical keyboard currently being sold that I know of
@cdun
cdun / HybridPlaneManager.cs
Created January 24, 2018 11:10
Combines Vuforia image tracking and ground plane. Modified from the PlaneManager class within the Vuforia ground plane samples.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Vuforia;
public class HybridPlaneManager : MonoBehaviour, ITrackableEventHandler
{
private enum PlaneMode
{