Gameptics 1.0.0
Gameptics (Game+Haptics) is a lightweight cross-platform haptics toolkit for Unity. Author haptic signals and sequences with duration, intensity and sharpness, then play them on iOS and Android.
Loading...
Searching...
No Matches

◆ SetCurves()

void SCG.Gameptics.GamepticSignal.SetCurves ( bool enableCurves,
AnimationCurve newIntensityCurve,
AnimationCurve newSharpnessCurve,
int newCurveSamples )

Configures curve-driven playback for this signal. This controls whether curves are used and which curves are evaluated. The method is safe to call at runtime and in editor tooling.

Parameters
enableCurvesWhether curves should be enabled.
newIntensityCurveIntensity curve over normalized time [0..1].
newSharpnessCurveSharpness curve over normalized time [0..1].
newCurveSamplesRequested sample count used by sampling-based backends.