Skip to content

Instantly share code, notes, and snippets.

View terrehbyte's full-sized avatar
Keqing Story Quest When?

Terry Nguyen terrehbyte

Keqing Story Quest When?
View GitHub Profile
@terrehbyte
terrehbyte / ResetPlayerPrefs.cs
Created June 3, 2015 17:05
This simple Editor script adds a menu item for resetting your current PlayerPrefs data. This script must be placed in a folder where its immediate or grandfather directories is called "Editor".
using UnityEditor;
using UnityEngine;
public class PlayerPrefsEditor : MonoBehaviour
{
[MenuItem ("Tools/Reset Player Prefs")]
static void PlayerPerfsReset()
{
PlayerPrefs.DeleteAll();
}

p.netshowcorrections 1

shows you server-client corrections in position

@terrehbyte
terrehbyte / UnityCollab.md
Last active May 9, 2016 23:34
A rough guide on how2unity4tems.

Unity Collaboration Guidelines

So you want to make a game in Unity with more than one person (meaning, not you!). Here's a quick list of things that you'll want to look out for. You can read the description below them for any relevant steps or information.

1. Unity Versions

As Unity introduces new features and API changes, the stability of your codebase

Keybase proof

I hereby claim:

  • I am terrehbyte on github.
  • I am terrehbyte (https://keybase.io/terrehbyte) on keybase.
  • I have a public key ASAOr1otmXv1L84dreZDidySPNuI2fb03ZEnfDnQ4z9XeAo

To claim this, I am signing this object:

@terrehbyte
terrehbyte / material-design-breakpoints.css
Created June 11, 2017 03:32 — forked from eyecatchup/material-design-breakpoints.css
CSS media queries based on the breakpoint guidance published by the Material Design team. http://www.google.com/design/spec/layout/adaptive-ui.html#adaptive-ui-breakpoint
/* Material Design Adaptive Breakpoints */
/*
Below you'll find CSS media queries based on the breakpoint guidance
published by the Material Design team. You can choose to use, customise
or remove these breakpoints based on your needs.
http://www.google.com/design/spec/layout/adaptive-ui.html#adaptive-ui-breakpoints
*/
/* mobile-small */
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
@terrehbyte
terrehbyte / README.md
Last active December 17, 2017 05:29
Comparing startup time between VS 2017 and VS Code in a less than stellar manner.

This completely unprofessional startup time profiling was conducted using [PassMark AppTimer][AppTimer].

The following settings were used:

  • Window Detection Method
    • Input Idle
    • Window Name
    • Visible
  • Window Close Method
  • WM_Close
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
[RequireComponent(typeof(Camera))]
public class CameraDump : MonoBehaviour
{
private int imageCount;

Scripting and Core Concepts

Closed

1. Game Expansion

Take some time to expand upon your game level and build out your level more. Add some new ramps, bridges, platforms, or anything else you can think of to let your player explore your environment.

Co-routines

Closed

Counting to X

Create a simple script that prints all of the whole numbers from 0 to a given number, such as 10. This should be conducted within a coroutine as opposed to running it within an update message in a regular script.