Skip to content

Instantly share code, notes, and snippets.

View MeisterDerMagie's full-sized avatar

Meister der Magie MeisterDerMagie

View GitHub Profile
@shanecelis
shanecelis / DragManipulator.cs
Last active April 16, 2025 04:31
This manipulator makes a visual element draggable at runtime in Unity's UIToolkit.
/* Original code[1] Copyright (c) 2022 Shane Celis[2]
Licensed under the MIT License[3]
[1]: https://gist.github.com/shanecelis/b6fb3fe8ed5356be1a3aeeb9e7d2c145
[2]: https://twitter.com/shanecelis
[3]: https://opensource.org/licenses/MIT
*/
using UnityEngine;
using UnityEngine.UIElements;
@jleaney
jleaney / how-to-notarize-unity-for-macos.md
Created November 23, 2020 23:13 — forked from dpid/how-to-notarize-unity-for-macos.md
How to notarize a Unity build for MacOs 10.15 Catalina

How to notarize a Unity build for macOs 10.15 Catalina

As of January 2020, all apps running on macOs 10.15 Catalina are required to be notarized. For Unity games distributed outside the Mac App Store, such as with Steam, the notarization process is done post build using a series of Xcode command line tools.

Prerequisites

  • a Mac that is compatible with macOs 10.15 Catalina :
    • MacBook (2015 or newer)
    • MacBook Air (2012 or newer)
  • MacBook Pro (2012 or newer)
@yasirkula
yasirkula / CircleGraphic.cs
Last active March 2, 2025 21:47
Create circles/ellipses in Unity UI system in one of three modes: FillInside, FillOutside and Edge.
using UnityEngine;
using UnityEngine.UI;
#if UNITY_EDITOR
using UnityEditor;
// Custom Editor to order the variables in the Inspector similar to Image component
[CustomEditor( typeof( CircleGraphic ) ), CanEditMultipleObjects]
public class CircleGraphicEditor : Editor
{
@Jered
Jered / AE_auto-orient.js
Last active March 31, 2025 17:01
After Effects Auto-Orient Expression
cornerEase = 3; // sets the amount to look ahead and behind for gradual turns
pre = position.valueAtTime(time-thisComp.frameDuration*cornerEase);
post = position.valueAtTime(time+thisComp.frameDuration*cornerEase);
delta = post-pre;
if (delta[0] == 0 && delta[1] == 0) {
// if there is no change in vector maintain the current heading
rotation;
} else {
// use the vector direction to orient. Flip the Y to account for cartesian Y being up and AE Y being down
radiansToDegrees(Math.atan2(delta[0],-delta[1]));
@maxtruxa
maxtruxa / Antonyms.md
Last active April 1, 2025 08:34
A list of common terms used in programming and their respective antonyms.

Antonym List

Note: The table headings (positive/negative) are not necessarily meaningful.

Positive Negative
acquire release
add remove (e.g. an item), subtract (arithmetic)
advance retreat
allocate deallocate (correct), free (common)
allow deny