Skip to content

Action Value and Lobby Action Value

Action Value

The ActionValue class is a generic class that allows you to create a value that can be updated and listened to.

Properties

Value

Type: T

OnChanged

Type: event<T value, T oldValue>

Event only triggered when the value is updated, sending the new and old value.

Methods

SetValueWithoutNotify

Declaration

void SetValueWithoutNotify(T value)

Parameters

Parameter Type Description
value* T The new value to be set.

* Required parameter.

Description

Sets the Value of the action value without triggering the OnChanged event.

Lobby Action Value

The LobbyActionValue class is a generic class that implements the ActionValue class and the ILobbyValue interface. It has the same properties and methods as the ActionValue class, but it also enables the LocalPlayer and LocalLobby classes to use it as a custom value, detecting changes and sending them to the server.