Class FeedbackDefinition
ScriptableObject definition for a feedback preset: an ordered list of effects (vibration, LED, screen flash, hit-stop, screen shake, adaptive trigger) that the service dispatches across channels.
Implements
Namespace: Serenity.Feedback.Infrastructure.Settings
Assembly: Serenity.UnityFeedback.Infrastructure.dll
Syntax
public class FeedbackDefinition : ScriptableObject, IFoundationSettings
Constructors
FeedbackDefinition()
Declaration
public FeedbackDefinition()
Fields
Effects
Declaration
public List<FeedbackEffectAuthoring> Effects
Field Value
| Type | Description |
|---|---|
| List<FeedbackEffectAuthoring> | The effects this definition plays across channels. Authored as a polymorphic
|
Guid
Declaration
public string Guid
Field Value
| Type | Description |
|---|---|
| string | GUID for this definition, used by asset resolution tools. |
Id
Declaration
public string Id
Field Value
| Type | Description |
|---|---|
| string | Unique identifier for this feedback definition. |
Methods
ToDefinitionData()
Converts this ScriptableObject to a FeedbackDefinitionData DTO.
Declaration
public FeedbackDefinitionData ToDefinitionData()
Returns
| Type | Description |
|---|---|
| FeedbackDefinitionData | Immutable DTO carrying the ordered effects. |