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

◆ Create()

GamepticSignal SCG.Gameptics.GamepticSignal.Create ( float durationSeconds,
float intensity,
float sharpness,
bool enableCurves,
AnimationCurve intensityCurve,
AnimationCurve sharpnessCurve,
int curveSamples )
static

Creates a signal instance with optional curves in a single expression. This is designed for editor tooling and code generation scenarios. Curves are copied by reference and can be shared intentionally.

Parameters
durationSecondsSignal duration in seconds.
intensityBase intensity in range [0..1].
sharpnessBase sharpness in range [0..1].
enableCurvesWhether curves should be enabled.
intensityCurveIntensity curve over normalized time [0..1].
sharpnessCurveSharpness curve over normalized time [0..1].
curveSamplesSample count used by sampling-based backends.

References GamepticSignal(), and GamepticSignal().