Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SharedStatic<T>

A structure that allows to share mutable static data between C# and HPC#.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Struct
  • Namespace: Unity.Burst
  • Assembly: UnityEngine.BurstModule
public readonly struct SharedStatic<T> where T : struct

Properties

Property

Description

DataGet a writable reference to the shared data.
UnsafeDataPointerGet a direct unsafe pointer to the shared data.

Static Methods

Method

Description

GetOrCreateCreates a shared static data for the specified context and sub-context (usable from both C# and HPC#)
GetOrCreatePartiallyUnsafeWithHashCodeCreates a shared static data unsafely for the specified context and sub-context (usable from both C# and HPC#).
GetOrCreatePartiallyUnsafeWithSubHashCodeCreates a shared static data unsafely for the specified context and sub-context (usable from both C# and HPC#).
GetOrCreateUnsafeCreates a shared static data unsafely for the specified context and sub-context (usable from both C# and HPC#).