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
SCG.Gameptics.GamepticSequence Class Referencesealed

Represents a sequence of haptic steps played in order. Each step contains an optional delay and a GamepticSignal. The runtime may interpret the sequence as repeated pulses or a short pattern. More...

Public Member Functions

 GamepticSequence (params GamepticSequenceStep[] sequenceSteps)
 Creates a sequence from steps for runtime usage. Unity serialization uses the default constructor and inspector.
 GamepticSequence ()
 Creates a default sequence instance for Unity serialization.

Properties

GamepticSequenceStep[] Steps [get]
 Steps played in order.
float DurationSeconds [get]
 Gets total duration of the sequence in seconds. Includes DelaySeconds and Signal.DurationSeconds for each step. Returns 0 when Steps is null or empty.

Detailed Description

Represents a sequence of haptic steps played in order. Each step contains an optional delay and a GamepticSignal. The runtime may interpret the sequence as repeated pulses or a short pattern.


The documentation for this class was generated from the following file:
  • SCG/Gameptics/Core/GamepticSequence.cs