Skip to content

Instantly share code, notes, and snippets.

View kostarevVP's full-sized avatar

Kostariev Vadim kostarevVP

View GitHub Profile
@sebtoun
sebtoun / ClampedCurveAttribute.cs
Created October 13, 2021 19:04
Unity AnimationCurve decorator to clamp the curve like RangeAttribute is for float.
using UnityEngine;
public class ClampedCurveAttribute : PropertyAttribute
{
public readonly float MinX;
public readonly float MaxX;
public readonly float MinY;
public readonly float MaxY;
public ClampedCurveAttribute( float minX, float maxX, float minY, float maxY )