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
@FreyaHolmer
FreyaHolmer / AssetCopyUtils.cs
Last active May 9, 2024 10:36
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 / Read This
Last active October 19, 2022 14:56
Book mark :)
Unity Firebase : https://rehtse-studio.medium.com/made-with-unity-firebase-analytics-introduction-b48741bc5489
Unity JSON : https://rehtse-studio.medium.com/made-with-unity-newtonsofts-json-net-b64236d59e76
Unity : https://rito15.github.io/
@ditzel
ditzel / MathParabola.cs
Last active February 19, 2024 02:07
A simple Math class to calculate a point in 2D or 3D space lying on a parabola. And a more complex parabola controller that you can put on an object.
using UnityEngine;
using System;
public class MathParabola
{
public static Vector3 Parabola(Vector3 start, Vector3 end, float height, float t)
{
Func<float, float> f = x => -4 * height * x * x + 4 * height * x;