Skip to content

Instantly share code, notes, and snippets.

View gemfile0's full-sized avatar
🏠
Working from home

박기용 gemfile0

🏠
Working from home
  • Home
  • Suwon, Korea
  • 17:18 (UTC +09:00)
View GitHub Profile
@gemfile0
gemfile0 / TimeScaleWindow.cs
Last active April 24, 2017 10:39
Time Scale Window in Unity
using UnityEngine;
using UnityEditor;
public class TimeScaleWindow: EditorWindow
{
float timeScale = 1.0f;
float timeScaleBefore = 0f;
[MenuItem("Tools/Time Scale Window")]
public static void OpenWindow()
@gemfile0
gemfile0 / PerlinNoise.cs
Created March 20, 2019 06:42
Excerpt from Brackeys video tutorial.
using UnityEngine;
[RequireComponent(typeof(MeshFilter))]
public class PerlinNoise : MonoBehaviour
{
[SerializeField] int width = 256;
[SerializeField] int height = 256;
[SerializeField] float scale = 20f;
@gemfile0
gemfile0 / MeshGenerator.cs
Created March 20, 2019 06:45
Excerpt from Brackeys video tutorial.
using UnityEngine;
[RequireComponent(typeof(MeshFilter))]
public class MeshGenerator : MonoBehaviour
{
public int xSize = 20;
public int zSize = 20;
Mesh mesh;
Vector3[] vertices;
@gemfile0
gemfile0 / EditorScreenshot.cs
Created March 20, 2019 07:54
Take a screenshot of the game window in unity editor.
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;