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

ToString() public method

Returns a string representation of a NetworkHash object.

public ToString ( ) : string
return string
        public override string ToString()
        {
            return string.Format("{0:x2}{1:x2}{2:x2}{3:x2}{4:x2}{5:x2}{6:x2}{7:x2}{8:x2}{9:x2}{10:x2}{11:x2}{12:x2}{13:x2}{14:x2}{15:x2}", new object[] { this.i0, this.i1, this.i2, this.i3, this.i4, this.i5, this.i6, this.i7, this.i8, this.i9, this.i10, this.i11, this.i12, this.i13, this.i14, this.i15 });
        }
    }

Usage Example

Esempio n. 1
0
    public void CmdSendGamePrefab(NetworkHash128 vHash)
    {
        //Debug.Log(vHash.ToString());
        //LobbyManager.Instance.spawnPrefabs.ForEach(x => Debug.Log(x.GetComponent<NetworkIdentity>().assetId.ToString()));

        GameObject hGamePrefab = LobbyManager.Instance.spawnPrefabs.Where(x => x.GetComponent<NetworkIdentity>().assetId.ToString() == vHash.ToString()).FirstOrDefault();
        if (hGamePrefab == null)
            throw new Exception("Requested Prefab Not Found!");

        PrefabToSpawn = hGamePrefab;
    }
All Usage Examples Of UnityEngine.Networking.NetworkHash128::ToString