Skip to content

Instantly share code, notes, and snippets.

View smitdylan2001's full-sized avatar
🏠
Working from home

Dylan Smit smitdylan2001

🏠
Working from home
View GitHub Profile
@kurtdekker
kurtdekker / HeadNodYesSensor.cs
Last active July 16, 2024 15:25
Head shake no and nod yes gesture detector
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// @kurtdekker - head nod yes sensor
//
// To use:
// Put this on a mouse-controlled FPS camera and it can detect:
// - up/down "head nods yes."
// Optionally give it an audio to play
@tattyd
tattyd / Shadow.cs
Last active April 1, 2025 08:26
Soft shadow control for Unity UI Toolkit
/* MIT License
Copyright (c) 2022 David Tattersall
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
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@frarees
frarees / MinMaxSliderAttribute.cs
Last active December 5, 2024 23:26
MinMaxSlider for Unity
// https://frarees.github.io/default-gist-license
using System;
using UnityEngine;
[AttributeUsage(AttributeTargets.Field, Inherited = true, AllowMultiple = false)]
public class MinMaxSliderAttribute : PropertyAttribute
{
public float Min { get; set; }
public float Max { get; set; }