Class FeedbackBehaviorCardSO
Represents the data model for a feedback behavior card. FeedbackBehaviorCardPresenter retrieves these data and format it as a card.
[CreateAssetMenu(fileName = "New Feedback Behavior Card", menuName = "ScriptableObject/Feedback UI/Behavior Card")]
public class FeedbackBehaviorCardSO : ScriptableObject
Inheritance
Fields
MaxMetricValue
The maximum expected metric value, used for clamping and normalization for sliders.
[Tooltip("Maximum expected metric value used for clamping and normalization for sliders.")]
public float MaxMetricValue
Field Value
float
MinMetricValue
The minimum expected metric value, used for clamping and normalization for sliders.
[Tooltip("Minimum expected metric value used for clamping and normalization.")]
public float MinMetricValue
Field Value
float
OverrideMetricFormat
If true, overrides the default metric unit with a custom format string.
[Tooltip("Overrides the default metric unit and uses a custom format string.")]
public bool OverrideMetricFormat
Field Value
bool
cardDescription
The description text displayed on the feedback card.
[Tooltip("The description text displayed on the feedback card.")]
[TextArea(1, 5)]
public string cardDescription
Field Value
string
cardTitle
The title text displayed on the feedback card.
[Header("CARD CONTEXT")]
[Tooltip("The title text displayed on the feedback card.")]
public string cardTitle
Field Value
string
metricFormat
The custom numeric format string used to display the metric value (e.g., "F2").
[Tooltip("Custom numeric format string for the metric value (e.g. F2).")]
[EnableIf("OverrideMetricFormat", 0)]
public string metricFormat
Field Value
string
Remarks
Only used if OverrideMetricFormat is true.
metricUnit
The unit to display with the metric value (e.g., "%", "pts").
[Tooltip("Unit to display with the metric value (e.g. %, pts). Used only when OverrideMetricFormat is false.")]
[DisableIf("OverrideMetricFormat", 0)]
public string metricUnit
Field Value
string
Remarks
Only used if OverrideMetricFormat is true.
metricVariable
The scriptable variable that provides the metric value for this card.
Must be of type BaseScriptableVariable or BaseScriptableVariable.
[Header("CARD METRICS")]
[Tooltip("Scriptable variable providing the metric value, supports int or float types.")]
public BaseScriptableVariable metricVariable