This file contains hidden or 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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
[RequireComponent(typeof(MeshFilter))] | |
[RequireComponent(typeof(MeshRenderer))] | |
[ExecuteInEditMode] // Added to be able to tweak the script without having to hit play ever time | |
public class ProceduralCube : MonoBehaviour | |
{ |
This file contains hidden or 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 System.Collections; | |
public class EngineStressTest1 : MonoBehaviour { | |
private int animateCount = 6000; | |
private GameObject[] cubes; | |
private LTSpline[] splines; |
This file contains hidden or 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 System.Collections; | |
public class TriggerPointExample : MonoBehaviour{ | |
private GameObject light; | |
void Awake(){ | |
light = gameObject.transform.Find("Spotlight").gameObject; | |
light.SetActive( false ); | |
} |