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.GamepticManagerSettings Class Referencesealed

Groups global haptics settings used by GamepticManager. Designed to be serialized on the manager and edited in the inspector. Settings include persistence, cooldown, and curve sampling preferences. More...

Properties

string EnabledKey = nameof(SCG) + "." + nameof(Gameptics) + ".Enabled" [get]
 PlayerPrefs key for persisted enabled state.
bool PersistEnabled = true [get, set]
 When enabled, the IsEnabled state is persisted in PlayerPrefs.
float CooldownSeconds = 0.05f [get, set]
 Minimum interval in seconds between haptic requests.
float MaxIntensity = 1f [get, set]
 Maximum allowed intensity applied to haptic signals in range [0..1].
float MaxSharpness = 1f [get, set]
 Maximum allowed sharpness applied to haptic signals in range [0..1].
float MaxDurationSeconds = DefaultMaxDurationSeconds [get, set]
 Maximum allowed duration in seconds for haptic playback.
bool CancelPreviousOnPlay = true [get, set]
 When enabled, a new play request cancels the previous playback.
bool CompleteWhenUnsupported = true [get, set]
 When enabled, completion callbacks run immediately if the active backend does not support haptics.

Detailed Description

Groups global haptics settings used by GamepticManager. Designed to be serialized on the manager and edited in the inspector. Settings include persistence, cooldown, and curve sampling preferences.


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