v1.0.0
Latest
2022.3+

Class PlayerProperty

Represents a property of a player.

Inheritance
System.Object
PlayerProperty
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Unity.Services.Multiplayer
Syntax
public class PlayerProperty : IValueProperty, IVisibilityProperty

Constructors

PlayerProperty(String, VisibilityPropertyOptions)

Creates a new PlayerProperty.

Declaration
public PlayerProperty(string value = null, VisibilityPropertyOptions visibility = VisibilityPropertyOptions.Public)
Parameters
TypeNameDescription
System.Stringvalue

The value of the property.

VisibilityPropertyOptionsvisibility

The visibility of the property.

Properties

Value

The value of the property.

Declaration
public string Value { get; }
Property Value
TypeDescription
System.String

Visibility

The visibility of the property.

Declaration
public VisibilityPropertyOptions Visibility { get; }
Property Value
TypeDescription
VisibilityPropertyOptions