Documentation

Unity Engine


User Manual

Script Reference

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#).
Read time 1 minuteLast updated 10 days ago

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.