Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ToString()

Convert a Hash128 to string.
Read time 1 minuteLast updated 9 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public override string ToString()

Returns

Type

Description

string

Remarks

This creates a string that is 32 characters long. Each of the 16 hash bytes is represented as two hexadecimal characters.
using UnityEngine;public class ExampleScript : MonoBehaviour{ void Start() { var hash = new Hash128(0x01020304, 0xaabbccdd, 0x12345678, 0xbaadc0de); // prints "04030201ddccbbaa78563412dec0adba", // because the hash values are in little-endian byte order Debug.Log(hash.ToString()); }}
Additional Resources: Hash128.Parse.