Version: 2023.2
public string ToString ();

描述

Convert a Hash128 to string.

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()); } }

See Also: Hash128.Parse.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961