Table of Contents

Class FloatVariable

Namespace
CodeBase.SharedVariable
Assembly
4Experience.CodeBase.SharedVariables.Runtime.dll
[CreateAssetMenu(menuName = "4Experience/Shared Variable/FloatVariable")]
public class FloatVariable : SharedVariable
Inheritance
Object
ScriptableObject
FloatVariable
Inherited Members
Extension Methods

Fields

currentValue

protected float currentValue

Field Value

float

initialValue

[SerializeField]
protected float initialValue

Field Value

float

Properties

CurrentValue

public float CurrentValue { get; set; }

Property Value

float

InitialValue

protected float InitialValue { get; }

Property Value

float

Methods

OnAfterDeserialize()

public void OnAfterDeserialize()

OnBeforeSerialize()

public void OnBeforeSerialize()

Events

OnValueChanged

public event Action<float> OnValueChanged

Event Type

Action<float>