Skip to main content

Class IntMeanVariable

A scriptable object that represents the mean (average) of multiple IntVariable values.

[CreateAssetMenu(fileName = "New IntMeanVariable", menuName = "ScriptableObject/Scriptable/Variable/IntMeanVariable")]
public class IntMeanVariable : BaseMeanValueVariable<IntVariable, int>, IAddable<float>, ISubtractable<float>

Inheritance​

Implements​

Inherited Members​

Remarks​

This asset computes a live average based on the current runtime values of all assigned IntVariables.

Properties​

AverageValue​

Gets the average runtime value of all referenced IntVariable instances.

protected override float AverageValue { get; }

Property Value​

float