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.IO; | |
using UnityEngine; | |
[RequireComponent(typeof(Camera))] | |
public class EditorScreenshot : MonoBehaviour | |
{ | |
[SerializeField] string folder = "EditorScreenshot/results"; | |
[SerializeField] string prefix = "screenshot"; | |
[SerializeField] bool ensureTransparentBackground = false; |
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; | |
[RequireComponent(typeof(MeshFilter))] | |
public class MeshGenerator : MonoBehaviour | |
{ | |
public int xSize = 20; | |
public int zSize = 20; | |
Mesh mesh; | |
Vector3[] vertices; |
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; | |
[RequireComponent(typeof(MeshFilter))] | |
public class PerlinNoise : MonoBehaviour | |
{ | |
[SerializeField] int width = 256; | |
[SerializeField] int height = 256; | |
[SerializeField] float scale = 20f; |
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 UnityEditor; | |
public class TimeScaleWindow: EditorWindow | |
{ | |
float timeScale = 1.0f; | |
float timeScaleBefore = 0f; | |
[MenuItem("Tools/Time Scale Window")] | |
public static void OpenWindow() |