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; | |
using UnityEngine; | |
public class After : MonoBehaviour | |
{ | |
static After _instance; | |
static After instance | |
{ | |
get |
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; | |
using UnityEngine; | |
public class GoFrom : MonoBehaviour | |
{ | |
static GoFrom _instance; | |
static GoFrom instance | |
{ | |
get |
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.IO; | |
using UnityEditor; | |
using UnityEngine; | |
public class RoughnessHelper | |
{ | |
[MenuItem("Assets/Convert Roughness Texture %#r")] | |
static void ConvertRoughnessTexture() | |
{ | |
if ( Selection.objects.Length == 1 ) |
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; | |
public class WeightedRandomNumber { | |
AnimationCurve _curve; | |
float[] _cumulativeWeights; | |
float _totalWeight; | |
float _step; | |
float _curveTime; |
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
// first find out if the computer has an iSight | |
var camIndex:Number = -1; | |
for (var i:Number=0; i<Camera.names.length; i++) { | |
if (Camera.names[i] == 'Built-in iSight') { | |
camIndex = i; | |
break; | |
} | |
} | |
// if there is an iSight AND a Google Webcam Adapters, we'll want to attach them all |