SyncAttributeclass

Automatically synchronize a property of a networked object from the owner to other clients.

objectAttributeSyncAttribute
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public class Sandbox.SyncAttribute : System.Attribute

Constructors2

Showing 2 constructors

Properties2

Showing 2 properties

public Sandbox.SyncFlags Sandbox.SyncAttribute.Flags { get; set; }PUBLICGETSET

Flags that describe how this property is synchronized.

Returns:SyncFlags

public bool Sandbox.SyncAttribute.Query { get; set; }PUBLICGETSETOBSOLETE

Query this value for changes rather than counting on set being called. This is appropriate if the value returned by its getter can change without calling its setter. Obsoleted: 13/12/2024

Obsolete: Use SyncFlags.Query

Returns:bool

On this page