文档

Unity Engine

Unity Engine

GetHashCode()

Returns the hash code for this window.
阅读时间1 分钟最后更新于 1 个月前

Definition

public override int GetHashCode()

Returns

Type

Description

intThe hash code for this window.

Examples

using UnityEngine;using UnityEngine.Windowing;public class WindowHashExample : MonoBehaviour{ void Start() { var window = GameWindow.Main; int hash = window.GetHashCode(); Debug.Log($"Window hash: {hash}"); }}