文档

Unity Engine

Unity Engine

GetOrCreateUnsafe(uint, long, long)

Creates a shared static data unsafely for the specified context and sub-context (usable from both C# and HPC#).
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: Unity.Burst
  • Assembly: UnityEngine.BurstModule
public static SharedStatic<T> GetOrCreateUnsafe(uint alignment, long hashCode, long subHashCode)

Parameters

alignment

The alignment (specified in bytes).

hashCode

The 64-bit hashcode for the shared-static.

subHashCode

The 64-bit sub-hashcode for the shared-static.

Returns

Type

Description

SharedStatic<T>A newly created or previously cached shared-static for the hashcodes provided.