Skip to content

Instantly share code, notes, and snippets.

View MephestoKhaan's full-sized avatar
👿

Luca Mefisto MephestoKhaan

👿
View GitHub Profile
@MephestoKhaan
MephestoKhaan / ScenMenu
Created June 17, 2019 10:11
This script for Unity will add a menu to change to any scene in the Build Settings. You don't need to add it to any game object, it adds itself!
using UnityEngine;
using UnityEngine.SceneManagement;
public class ScenMenu : MonoBehaviour
{
private void OnGUI()
{
var sceneNames = SceneMenuPlacer.SceneNames;
int width = Screen.width / sceneNames.Length;
@MephestoKhaan
MephestoKhaan / TextureArrayCreator.cs
Created October 3, 2018 16:52
A quick wizard to create Texture Array assets from normal textures in unity
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using UnityEditorInternal;
namespace MK.Utilities
{
public class TextureArrayCreator : ScriptableWizard
{
[MenuItem("Window/Texture Array Creator")]