Skip to content

Instantly share code, notes, and snippets.

View leventeren's full-sized avatar
🤘
I love to code and can do it all day long ;)

Levent EREN leventeren

🤘
I love to code and can do it all day long ;)
View GitHub Profile
@leventeren
leventeren / AssetCopyUtils.cs
Created November 27, 2023 06:23 — forked from FreyaHolmer/AssetCopyUtils.cs
Adds context menu items to assets: Copy/Paste import settings & Copy GUID. Put this script in any Editor/ folder in your project and recompile!
// written by https://github.com/FreyaHolmer so use at your own risk c:
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
/// <summary>Utility functions to copy GUIDs, as well as Copy/Paste import settings</summary>
public static class AssetCopyUtils {
const int CTX_MENU_LOCATION = 70;
@leventeren
leventeren / Singleton.cs
Created December 8, 2022 17:26 — forked from whitebull/Singleton.cs
Singleton abstract class for unity.
using UnityEngine;
using System.Collections;
/// <summary>
/// MONOBEHAVIOR PSEUDO SINGLETON ABSTRACT CLASS
/// usage : best is to be attached to a gameobject but if not that is ok,
/// : this will create one on first access
/// example : '''public sealed class MyClass : Singleton<MyClass> {'''
/// references : http://tinyurl.com/d498g8c
/// : http://tinyurl.com/cc73a9h