Skip to content

Instantly share code, notes, and snippets.

View darndz's full-sized avatar
💭
гит хуита

Влад darndz

💭
гит хуита
View GitHub Profile
@rogue6800
rogue6800 / CameraOrbit.cs
Last active January 7, 2024 23:13
Smooth Mouse Orbit Camera
//Adapted from: https://wiki.unity3d.com/index.php/MouseOrbitImproved
//License: Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
//https://creativecommons.org/licenses/by-sa/3.0/
//Link to demo: https://youtu.be/I_7PyyzziTY
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraOrbit : MonoBehaviour
@ogxd
ogxd / Screenshot.cs
Last active December 10, 2024 10:33
Unity Editor tool to take high quality screenshots with transparent background, high resolution and auto cropping.
using System.IO;
using UnityEditor;
using UnityEngine;
[InitializeOnLoad]
public static class Screenshot
{
static Screenshot()
{
EditorApplication.delayCall += () => {