Skip to content

Instantly share code, notes, and snippets.

View Valthoron's full-sized avatar

Serdar Üşenmez Valthoron

  • Ankara, Turkey
View GitHub Profile
@Tymski
Tymski / ScreenCaptureEditor.cs
Last active June 21, 2025 11:25
Unity make a screenshot from editor
using System.IO;
using UnityEditor;
using UnityEngine;
public class ScreenCaptureEditor : EditorWindow
{
private static string directory = "Screenshots/Capture/";
private static string latestScreenshotPath = "";
private bool initDone = false;
@cjddmut
cjddmut / EasingFunctions.cs
Last active September 9, 2025 17:44
Easing Functions for Unity3D
/*
* Created by C.J. Kimberlin
*
* The MIT License (MIT)
*
* Copyright (c) 2019
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
@tombsar
tombsar / gradient.hh
Created January 8, 2015 15:06
C++ port of Michael Powell's Simplectic Noise, originally written in Rust. His algorithm is described in a blog post here: http://www.spiritofiron.com/2015/01/simplectic-noise.html
/*
* Simplectic Noise in C++
* by Arthur Tombs
*
* Modified 2015-01-08
*
* This is a derivative work based on Simplectic Noise in Rust
* by Michael Powell:
* http://www.spiritofiron.com/2015/01/simplectic-noise.html
*
@tombsar
tombsar / OpenSimplexNoise.hh
Last active March 4, 2022 22:35 — forked from KdotJPG/OpenSimplex2S.java
C++ port of KdotJPG's OpenSimplexNoise in Java. A self-contained set of functions for generating visually axis-decorrelated, coherent noise from a simplectic honeycomb.
/*
* OpenSimplex (Simplectic) Noise in C++
* by Arthur Tombs
*
* Modified 2015-01-08
*
* This is a derivative work based on OpenSimplex by Kurt Spencer:
* https://gist.github.com/KdotJPG/b1270127455a94ac5d19
*
* Anyone is free to make use of this software in whatever way they want.
@sekati
sekati / xcode-build-bump.sh
Created July 24, 2012 20:44
Xcode Auto-increment Build & Version Numbers
# xcode-build-bump.sh
# @desc Auto-increment the build number every time the project is run.
# @usage
# 1. Select: your Target in Xcode
# 2. Select: Build Phases Tab
# 3. Select: Add Build Phase -> Add Run Script
# 4. Paste code below in to new "Run Script" section
# 5. Drag the "Run Script" below "Link Binaries With Libraries"
# 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0)