Skip to content

Instantly share code, notes, and snippets.

@natsupy
natsupy / TextureTools.cs
Last active November 8, 2023 03:59
Crop and resize texture in unity editor! Open it: Press F1
using System.Collections.Generic;
using System.IO;
using System.Collections;
using UnityEditor;
using UnityEngine;
using System;
using System.Threading;
public class Utilities : EditorWindow
{
@natsupy
natsupy / QuitApp.cs
Last active August 27, 2017 21:08
Quit App in key Esc(PC) a.k.a Back Button on Android
void Update()
{
if (Input.GetKeyDown(KeyCode.Escape))
{
OnClickBackButtonQuit();
}
}
bool isFirstPress = false;
float timeFirstPress;
@natsupy
natsupy / SearchType.cs
Last active September 16, 2017 13:04
Search type in root folder
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using Newtonsoft.Json;
using UnityEngine;
public IEnumerator GetLevels()
{
@natsupy
natsupy / GeoData.cs
Created July 16, 2018 00:33 — forked from sandcastle/GeoData.cs
A Unity 3D behaviour for Geo location lookup via IP address
using UnityEngine;
using System.Collections;
using Newtonsoft.Json;
/// <summary>
/// The Geo data for a user.
///
/// http://ip-api.com/docs/api:json
///

Keybase proof

I hereby claim:

  • I am natsupy on github.
  • I am natsupy (https://keybase.io/natsupy) on keybase.
  • I have a public key ASAvWJZL8oxe7BjJ78MAcsEhJSATv-KnAGyzSgEaO922Cgo

To claim this, I am signing this object: