Skip to content

Instantly share code, notes, and snippets.

View unitycoder's full-sized avatar
‏‏‎

mika unitycoder

‏‏‎
View GitHub Profile
@seldomU
seldomU / BundleBuildBackend.cs
Created October 26, 2016 21:54
Backend for AssetBundle Graph Tool
using UnityEngine;
using RelationsInspector.Backend;
using AssetBundleGraph;
using RelationsInspector;
using System.Collections.Generic;
using UnityEditor;
using System.Linq;
[AcceptTargets(typeof(SaveData))]
public class BundleBuildBackend : MinimalBackend<NodeData, string>
@luciditee
luciditee / BatchBurner.cs
Last active June 16, 2018 17:09
Batch Burner, a script designed to reduce static mesh draw calls in Unity scenes with a large number of static mesh entities.
/*
* Unity Batch Burner: A script designed to reduce static mesh draw calls automatically in scenes
* with a large amount of static geometry entities.
*
* Copyright 2016-2017 Will Preston & Die-Cast Magic Studios, LLC.
*
* 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
*
@reveriejake
reveriejake / MeshBuffer.cs
Created February 18, 2017 11:50
Pico Games - Unity MeshBuffer Class
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace PicoGames.Common
{
[ExecuteInEditMode]
[RequireComponent(typeof(MeshFilter), typeof(MeshRenderer))]
public class MeshBuffer : MonoBehaviour
{
@reveriejake
reveriejake / MS2DTerrainChunk.cs
Created February 18, 2017 11:53
Pico Games - Marching Squares Algorithm Simple
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using PicoGames.Common;
namespace PicoGames.Terrains.MS2D
{
public class MS2DTerrainChunk : MonoBehaviour
{
Shader "ShaderDrill/0327/Fresnel"
{
Properties
{
_MainTex ("Base (RGB) Trans (A)", 2D) = "white" {}
_Color ("Tint", Color) = (1,1,1,1)
_FresnelColor ("Fresnel Color", Color) = (1,1,1,1)
_FresnelBias ("Fresnel Bias", Float) = 0
_FresnelScale ("Fresnel Scale", Float) = 1
_FresnelPower ("Fresnel Power", Float) = 1
@LotteMakesStuff
LotteMakesStuff / EditorCoroutineRunner.cs
Last active August 28, 2024 19:09
Run stuff in the editor with all the convenience of co-routines! Add a status UI super easily to see readouts what your long running code is actually doing! nice~ There is a short API demo at the top of the class. This is a prefect companion for my inspector buttons https://gist.github.com/LotteMakesStuff/dd785ff49b2a5048bb60333a6a125187
using UnityEngine;
using UnityEditor;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
public class EditorCoroutineRunner
{
[MenuItem("Window/Lotte's Coroutine Runner: Demo")]
@phosphoer
phosphoer / BuildDefinition.cs
Last active July 22, 2024 19:52
Create build definition assets in Unity and build multiple platforms / builds with different scenes at once with the click of a button!
// The MIT License (MIT)
// Copyright (c) 2024 David Evans @festivevector
// 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 O
@simdezimon
simdezimon / VRNightVision.cs
Last active January 24, 2025 19:23
VR Night Vision Shader
using UnityEngine;
using System.Collections;
[ExecuteInEditMode]
public class VRNightVision : MonoBehaviour {
private Material material;
private Camera cam;
[Tooltip("Grain size in pixel. Should be greater than 1 with supersampling.")]
@TheDonDope
TheDonDope / escape.from.tarkov.keybindings.md
Last active March 18, 2025 20:24
Escape from Tarkov Keybindings

Escape from Tarkov Controls Cheat Sheet

BEGINNER'S GUIDE - ALL CONTROLS + TIPS (Escape from Tarkov)

Controls

  • Hold Shift when zoomed in with Mouse Right Click to hold breath and steady aim
  • Press B to switch between firing modes 🔥 (You will always start a raid in single fire mode)
    • The animation when switching to 🔥 🔥 🔥 fire is an ⬆️ flick
  • The animation when switching to 🔥 fire is an ⬇️ flick