Skip to main content

Struct NetworkBehaviorSyncvar

backing struct for a NetworkIdentity when used as a syncvar the weaver will replace the syncvar with this struct.

Syntax
public struct NetworkBehaviorSyncvar

Constructors

NetworkBehaviorSyncvar(NetworkBehaviour)

Declaration
public NetworkBehaviorSyncvar(NetworkBehaviour behaviour)
Parameters
TypeNameDescription
Mirage.NetworkBehaviourbehaviour

Properties

Value

Declaration
public NetworkBehaviour Value { get; set; }

Methods

GetAs<T>()

returns Value cast as T

Declaration
public T GetAs<T>()
where T : NetworkBehaviour
Returns
TypeDescription
T