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
object→Object→ScriptableObject→BaseScriptableVariable→BaseScriptableVariable<float>→FloatVariable→BaseMeanValueVariable<IntVariable, int>→IntMeanVariableImplements
Inherited Members
- BaseMeanValueVariable<IntVariable, int>.variables
- BaseMeanValueVariable<IntVariable, int>.AverageValue
- BaseMeanValueVariable<IntVariable, int>.IsValid()
- BaseMeanValueVariable<IntVariable, int>.RuntimeValue
- FloatVariable.Add(float)
- FloatVariable.Subtract(float)
- BaseScriptableVariable<float>.InitialValue
- BaseScriptableVariable<float>.RuntimeValue
- BaseScriptableVariable<float>.ResetRunTimeValue()
- BaseScriptableVariable<float>.GetValue()
- BaseScriptableVariable<float>.IsValid()
- BaseScriptableVariable<float>.OnAfterDeserialize()
- BaseScriptableVariable<float>.OnBeforeSerialize()
- BaseScriptableVariable.GetValue()
- BaseScriptableVariable.IsValid()
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