Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections;
using UnityEngine;
public class After : MonoBehaviour
{
static After _instance;
static After instance
{
get
using System;
using System.Collections;
using UnityEngine;
public class GoFrom : MonoBehaviour
{
static GoFrom _instance;
static GoFrom instance
{
get
using System.IO;
using UnityEditor;
using UnityEngine;
public class RoughnessHelper
{
[MenuItem("Assets/Convert Roughness Texture %#r")]
static void ConvertRoughnessTexture()
{
if ( Selection.objects.Length == 1 )
using UnityEngine;
public class WeightedRandomNumber {
AnimationCurve _curve;
float[] _cumulativeWeights;
float _totalWeight;
float _step;
float _curveTime;
// 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