Steam Lobby Game Object Enabler

Enable or disable a game object based on the condition of a target Steam Lobby Data. This is useful for hiding or showing UI elements based on the state of a given lobby.
Fields and Attributes
Target Lobby
public SteamLobbyData targetLobby;
The SteamLobbyData
component this enabler listens to. Its state is evaluated against the configured conditions to determine whether the GameObject should be active.
Conditions
public EnableWhenRule[] conditions;
A list of conditions that control when the GameObject should be enabled. Each condition is evaluated against the state of targetLobby
.
Available rules:
IsSet → True if the lobby exists and is valid.
IsNotSet → True if no lobby is assigned or the lobby is invalid.
AmITheOwner → True if the local user is the owner of the lobby.
AmINotTheOwner → True if the local user is not the lobby owner.
AmIMember → True if the local user is a member of the lobby.
AmINotMember → True if the local user is not a member.
IsParty → True if the lobby is marked as a party.
IsSession → True if the lobby is marked as a session.
IsNotParty → True if the lobby is not a party.
IsNotSession → True if the lobby is not a session.
Mode
public ConditionMode mode = ConditionMode.OR;
Defines how multiple conditions are combined:
OR → The GameObject is enabled if any condition is met.
AND → The GameObject is enabled only if all conditions are met.
Last updated