Skip to content

Instantly share code, notes, and snippets.

View finepointcgi's full-sized avatar

Mitch finepointcgi

View GitHub Profile
@Pieeer1
Pieeer1 / LobbyJoiningExample.cs
Created January 6, 2024 01:28
Steam Multiplayer Peer with Facepunch Steamworks (C# API)
Lobby.Join(); // you are going to have to pull the lobby from somewhere. Run the callback for getting the lobby list somewhere
// holy shit terrible implementation eventually fix this
//this is due to the fact that a second connection does not have access to the lobby owner id until it is joined.
//fucking why???
Timer timer = new Timer();
AddChild(timer);
timer.OneShot = true;
timer.WaitTime = 1.0d;
@Mikilo
Mikilo / NGSceneCameraWindow.cs
Last active March 24, 2020 08:56
Unity Editor Scene Camera FPS Improver
// /!\ Save this script in an Editor folder /!\
// Open the window at Tools/NG Scene Camera to enable & configure the speeds.
// Use the Scroll Wheel to change speed on the fly.
// Press Ctrl to use the sub-speed.
// Use Ctrl + Scroll Wheel to change the sub-speed.
// Tested with : Unity 2019.1
using System;
using System.Collections.Generic;
using System.Reflection;
@hasanbayatme
hasanbayatme / README.md
Last active January 15, 2024 06:59
A Scene Switcher Utility Window for Unity

Scene Switcher

A Scene Switcher Utility Window for Unity, Switch between Scenes Effortlessly.

Inspired by Kenney sceneWindow.cs

Deprecation Notice

This gist is deprecated due to release of this utility on Asset Store, you can now get the latest version of this utility from Asset Store, but it is available here as is without any updates.

@hasanbayatme
hasanbayatme / ColorPickerWindow.cs
Last active October 24, 2018 10:32
A Color Picker Window for Unity
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
public class ColorPickerWindow : EditorWindow
{
protected Color color = Color.white;
protected Color32 color32 = new Color32 ( 255, 255, 255, 255 );
@TrebuhD
TrebuhD / OverrideControllerTexture.cs
Last active September 12, 2018 21:48
Script to override SteamVR controller textures on load. Modified from »Mr_FJ« https://steamcommunity.com/app/358720/discussions/0/357287304420388604/
using UnityEngine;
using System.Collections;
/// <summary>
/// Override the texture of each of the parts with your texture.
/// </summary>
public class OverrideControllerTexture : MonoBehaviour
{
#region Public variables
[Header("Variables")]
@phosphoer
phosphoer / SimpleGeo.cs
Last active June 11, 2024 16:16
Simple Geometry Painter for Unity
// The MIT License (MIT)
// Copyright (c) 2016 David Evans @phosphoer
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR