Skip to content

Instantly share code, notes, and snippets.

View LiekeVanmulken's full-sized avatar
💻

Lieke Vanmulken LiekeVanmulken

💻
View GitHub Profile
@LiekeVanmulken
LiekeVanmulken / MainThreadDispatcher.cs
Last active November 27, 2019 10:03
Call the main thread in unity from the editor.
using System;
using System.Collections.Generic;
using UnityEditor;
/// <summary>
/// Call actions on the MainThread from a different thread.
/// </summary>
[InitializeOnLoad]
public class MainThreadDispatcher
@LiekeVanmulken
LiekeVanmulken / AutoFocusBugScript.cs
Last active June 20, 2018 22:14
Possible Aryzon improvements
using UnityEngine;
using Vuforia;
/// <summary>
/// Script that improves tracking on some devices.
/// On some devices the autofocus doesn't work properly with Vuforia making it not track, this fixes that.
///
/// To use it just add to any gameobject.
/// </summary>
public class VuforiaAutoFocusBugScript : MonoBehaviour
@LiekeVanmulken
LiekeVanmulken / Perlin_js_impl.js
Created October 5, 2017 12:35
Perlin implementation in javascript, ported from https://gist.github.com/Flafla2/f0260a861be0ebdeef76
// Implementation of perlin noise, ported from https://gist.github.com/Flafla2/f0260a861be0ebdeef76 to js.
var repeat = -1;
var setRepeat = function(repeat) {
this.repeat = repeat;
};
/**