Skip to content

Instantly share code, notes, and snippets.

View brainwipe's full-sized avatar

Rob Lang brainwipe

View GitHub Profile
@brainwipe
brainwipe / devlogtemplate.md
Last active August 5, 2021 21:09
Rob Lang's Game Dev log Template

NUMBER

Intro

Body

Outro

Until next time, bye bye.

YT Thumbnail Text

@brainwipe
brainwipe / CreateAndSavePrefab.cs
Last active December 5, 2021 15:01
Creating and Saving Unity Prefabs
/*
Unity C# Psudocode to show how to create a mesh, save it as an asset and then attach it to a prefab.
by Rob Lang https://www.youtube.com/roblang
*/
#if (UNITY_EDITOR)
using UnityEditor;
using UnityEngine;
@brainwipe
brainwipe / PIDController.cs
Created February 12, 2022 21:02
Unity C# PID Controller Example
using System;
using UnityEngine;
namespace Lang.Clomp.Infrastructure
{
[Serializable]
internal class PIDController
{
private readonly float cumulativeErrorLimit;
private float cumulativeError;
@brainwipe
brainwipe / MissingBehaviourRemover.cs
Created June 24, 2022 20:24
Unity Editor Tool for Removing Missing Behaviours
//
// To use: copy this file into a folder called Assets/Editor, return to Unity. Go to Window->Missing Behaviour Remover and a window will popup; follow instructions below.
//
#if (UNITY_EDITOR)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using UnityEditor.SceneManagement;