Version: Unity 6.6 Alpha (6000.6)
LanguageEnglish
  • C#

SharedStatic<T0>

struct in Unity.Burst

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

A structure that allows to share mutable static data between C# and HPC#.

Properties

Property Description
Data Get a writable reference to the shared data.
UnsafeDataPointer Get a direct unsafe pointer to the shared data.

Static Methods

Method Description
GetOrCreate Creates a shared static data for the specified context (usable from both C# and HPC#)
GetOrCreatePartiallyUnsafeWithHashCode Creates a shared static data unsafely for the specified context and sub-context (usable from both C# and HPC#).
GetOrCreatePartiallyUnsafeWithSubHashCode Creates a shared static data unsafely for the specified context and sub-context (usable from both C# and HPC#).
GetOrCreateUnsafe Creates a shared static data unsafely for the specified context and sub-context (usable from both C# and HPC#).