UnityEngine.Networking.NetworkHash128.Reset C# (CSharp) Method

Reset() public method

Resets the value of a NetworkHash to zero (invalid).

public Reset ( ) : void
return void
        public void Reset()
        {
            this.i0 = 0;
            this.i1 = 0;
            this.i2 = 0;
            this.i3 = 0;
            this.i4 = 0;
            this.i5 = 0;
            this.i6 = 0;
            this.i7 = 0;
            this.i8 = 0;
            this.i9 = 0;
            this.i10 = 0;
            this.i11 = 0;
            this.i12 = 0;
            this.i13 = 0;
            this.i14 = 0;
            this.i15 = 0;
        }

Usage Example

Esempio n. 1
0
        void SetupIDs()
        {
            GameObject prefab;

            if (ThisIsAPrefab())
            {
                if (LogFilter.logDev)
                {
                    Debug.Log("This is a prefab: " + gameObject.name);
                }
                AssignAssetID(gameObject);
            }
            else if (ThisIsASceneObjectWithPrefabParent(out prefab))
            {
                if (LogFilter.logDev)
                {
                    Debug.Log("This is a scene object with prefab link: " + gameObject.name);
                }
                AssignAssetID(prefab);
            }
            else
            {
                if (LogFilter.logDev)
                {
                    Debug.Log("This is a pure scene object: " + gameObject.name);
                }
                m_AssetId.Reset();
            }
        }
All Usage Examples Of UnityEngine.Networking.NetworkHash128::Reset