This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using UnityEditor; | |
/// <summary> | |
/// Call actions on the MainThread from a different thread. | |
/// </summary> | |
[InitializeOnLoad] | |
public class MainThreadDispatcher |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Implementation of perlin noise, ported from https://gist.github.com/Flafla2/f0260a861be0ebdeef76 to js. | |
var repeat = -1; | |
var setRepeat = function(repeat) { | |
this.repeat = repeat; | |
}; | |
/** |