v1.1.4
Latest
2022.3+

Enum VisibilityPropertyOptions

Indicates for whom the property should be visible.

Namespace: Unity.Services.Multiplayer
Syntax
public enum VisibilityPropertyOptions
Remarks

A Public property is visible to everyone and is included in query results.
A Member property is only visible to the members of the session (in other words, those who have successfully joined).
A Private property is only visible to the member who set it. Only the host can set and see private session properties.
For more information, see data access table.

Use in conjunction with the following methods:
SetProperty(String, SessionProperty)
SetProperties(Dictionary<String, SessionProperty>)
SetProperty(String, PlayerProperty)
SetProperties(Dictionary<String, PlayerProperty>)

Examples

Creating a public session property

var publicSessionProperty = new SessionProperty("value", VisibilityPropertyOptions.Public);

Creating a private player property

var privatePlayerProperty = new PlayerProperty("value", VisibilityPropertyOptions.Private);

Fields

NameDescriptionValue
Public

Enum Public for value: public

1
Member

Enum Member for value: member

2
Private

Enum Private for value: private

3