Skip to main content

Interface IFeedbackMetricCalculator

Minimal contract for a component that derives a scalar feedback score from session data, making the score readable by FeedbackMetricCoordinator and writeable to BaseScriptableVariable assets.

public interface IFeedbackMetricCalculator

Remarks​

Keeping the interface minimal (one read-only property) means that calculators with different data sources — collision counters, GPS traces, interaction logs — can all be wired into the same feedback UI without the coordinator knowing their implementation. Concrete implementations derive from this interface and perform their specific analysis (e.g., ProsocialMetricCalculator, SafeBoundaryMetricCalculator, YieldBehaviorMetricCalculator).

Properties​

Metric​

The current computed feedback score, typically normalised to [0, 1] or [0, 100] depending on the metric type.

float Metric { get; }

Property Value​

float