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
Type | Name | Description |
---|---|---|
Mirage.NetworkBehaviour | behaviour |
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
Type | Description |
---|---|
T |