Skip to content

Instantly share code, notes, and snippets.

View WhiteNoise's full-sized avatar

WhiteNoise

View GitHub Profile
@WhiteNoise
WhiteNoise / MyVDPlugin.cs
Last active June 17, 2017 00:09
Unity Editor script for showing Virtual Desktop when Unity stops playing (for the HTC Vive). It allows you to stay in VR to edit code (without removing the headset).
using System;
using System.Collections;
using System.Reflection;
using System.Diagnostics;
using System.Runtime.InteropServices;
using UnityEditor;
using UnityEngine;
using System.Security;
@WhiteNoise
WhiteNoise / TrackerPuppet.cs
Created May 23, 2017 12:44
Simple Trackers IK
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TrackerPuppet : MonoBehaviour {
[Header("Trackers")]
public GameObject controllerLeft;
public GameObject controllerRight;
public GameObject trackerLeft;
public GameObject trackerRight;
@WhiteNoise
WhiteNoise / SmoothedHeadCam.cs
Created July 9, 2017 20:24
Smooth head following camera for recording VR
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SmoothedHeadCam : MonoBehaviour {
public GameObject head;
[Tooltip("Set to true if you want the camera to face the user's head instead")]
public bool reverseMode = false;
@WhiteNoise
WhiteNoise / worklog.org
Created August 27, 2017 13:23
My completed todo list over the last few months

– Completed / work log

8/27/2017 9:14:06 AM

[X] Haven’t updated this in a while but work was done.

[X] New bridge!

[X] Add a way to take super high res screenshots for the website

@WhiteNoise
WhiteNoise / EyeController.cs
Created January 26, 2019 19:44
Basic script for more realistic eye movements. Eyes will snap to a set of targets.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EyeController : MonoBehaviour {
public GameObject eyeForward;
public GameObject[] eyes;
public GameObject mainTarget;
public GameObject[] otherTargets;
@WhiteNoise
WhiteNoise / es-todo.txt
Last active August 13, 2021 23:07
ES Todo
[ ] Endless mode :)
[ ] Split game wins stat into easy / medium / hard
[ ] Split achievements into easy / medium / hard
[ ] Allow toggling off Permadeath on Easy
[ ] Show Repair costs and ship reward costs on difficulty screen.. Maybe on hover?
[ ] Add speed control option for rotation / joystick movement
[ ] Add ability for joystick to control up / down movement..
[ ] More variety in weapon drops (maybe "rare" drops list)
@WhiteNoise
WhiteNoise / Build.cs
Last active June 4, 2024 11:43
Using SteamAudio on VisionOS (as of 3/22/24)
//
// Copyright 2017-2023 Valve Corporation.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software