Mirror Networking
Mirror.SyncVarGameObject Class Reference
Inheritance diagram for Mirror.SyncVarGameObject:
Mirror.SyncVar< uint >

Public Member Functions

 SyncVarGameObject (GameObject value=null)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
- Public Member Functions inherited from Mirror.SyncVar< uint >
override void ClearChanges ()
 Discard all the queued changes More...
 
override void Reset ()
 Resets the SyncObject so that it can be re-used More...
 
 SyncVar (T value)
 
override void OnSerializeAll (NetworkWriter writer)
 Write a full copy of the object
 
override void OnSerializeDelta (NetworkWriter writer)
 Write the changes made to the object since last sync
 
override void OnDeserializeAll (NetworkReader reader)
 Reads a full copy of the object
 
override void OnDeserializeDelta (NetworkReader reader)
 Reads the changes made to the object since last sync
 
bool Equals (T other)
 
override string ToString ()
 

Static Public Member Functions

static implicit operator GameObject (SyncVarGameObject field)
 
static implicit operator SyncVarGameObject (GameObject value)
 
static bool operator== (SyncVarGameObject a, SyncVarGameObject b)
 
static bool operator!= (SyncVarGameObject a, SyncVarGameObject b)
 
static bool operator== (SyncVarGameObject a, GameObject b)
 
static bool operator!= (SyncVarGameObject a, GameObject b)
 
static bool operator== (GameObject a, SyncVarGameObject b)
 
static bool operator!= (GameObject a, SyncVarGameObject b)
 
- Static Public Member Functions inherited from Mirror.SyncVar< uint >
static implicit operator T (SyncVar< T > field)
 
static implicit operator SyncVar< T > (T value)
 

Protected Member Functions

override void InvokeCallback (uint oldValue, uint newValue)
 
- Protected Member Functions inherited from Mirror.SyncVar< uint >
virtual void InvokeCallback (T oldValue, T newValue)
 

Properties

new GameObject Value [get, set]
 
- Properties inherited from Mirror.SyncVar< uint >
virtual T Value [get, set]
 

Events

new Action< GameObject, GameObject > Callback
 
- Events inherited from Mirror.SyncVar< uint >
Action< T, T > Callback
 

Detailed Description

Definition at line 53 of file SyncVarGameObject.cs.

Constructor & Destructor Documentation

◆ SyncVarGameObject()

Mirror.SyncVarGameObject.SyncVarGameObject ( GameObject  value = null)

Definition at line 78 of file SyncVarGameObject.cs.

79 : base(GetNetId(value)) {}

Property Documentation

◆ Value

new GameObject Mirror.SyncVarGameObject.Value
getset

Definition at line 56 of file SyncVarGameObject.cs.

57 {
58 [MethodImpl(MethodImplOptions.AggressiveInlining)]
59 get => GetGameObject(base.Value);
60 [MethodImpl(MethodImplOptions.AggressiveInlining)]
61 set => base.Value = GetNetId(value);
62 }

Event Documentation

◆ Callback

new Action<GameObject, GameObject> Mirror.SyncVarGameObject.Callback

Definition at line 66 of file SyncVarGameObject.cs.