Skip to main content

Class YieldBehaviorMetricCalculator

Measures how long each tracked actor dwells inside a trigger zone during a feedback event and reports the longest single-actor dwell time as the yield behavior metric.

[RequireComponent(typeof(FeedbackMetricCoordinator))]
public class YieldBehaviorMetricCalculator : MonoBehaviour, IFeedbackMetricCalculator

Inheritance​

Implements​

IFeedbackMetricCalculator

Properties​

Metric​

Gets the current yield behavior metric, which is the longest time any actor has spent in the area. Returns 0 if no data is available.

public float Metric { get; }

Property Value​

float