文档

Unity Engine

Unity Engine

SharedStatic<T>

A structure that allows to share mutable static data between C# and HPC#.
阅读时间1 分钟最后更新于 1 个月前

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#).