# SharedStatic<T>

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

## Definition

* **Type:** Struct
* **Namespace:** [Unity.Burst](/engine/6000.7/script-reference/unity/burst.md)
* **Assembly:** UnityEngine.BurstModule

```csharp
public readonly struct SharedStatic<T> where T : struct
```

## Properties

| Property                                                                                            | Description                                     |
| --------------------------------------------------------------------------------------------------- | ----------------------------------------------- |
| [Data](/engine/6000.7/script-reference/unity/burst/sharedstatic1/data.md)                           | Get a writable reference to the shared data.    |
| [UnsafeDataPointer](/engine/6000.7/script-reference/unity/burst/sharedstatic1/unsafedatapointer.md) | Get a direct unsafe pointer to the shared data. |

## Static Methods

| Method                                                                                                                                              | Description                                                                                                     |
| --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| [GetOrCreate](/engine/6000.7/script-reference/unity/burst/sharedstatic1/getorcreate.md)                                                             | Creates a shared static data for the specified context and sub-context (usable from both C# and HPC#)           |
| [GetOrCreatePartiallyUnsafeWithHashCode](/engine/6000.7/script-reference/unity/burst/sharedstatic1/getorcreatepartiallyunsafewithhashcode.md)       | Creates a shared static data unsafely for the specified context and sub-context (usable from both C# and HPC#). |
| [GetOrCreatePartiallyUnsafeWithSubHashCode](/engine/6000.7/script-reference/unity/burst/sharedstatic1/getorcreatepartiallyunsafewithsubhashcode.md) | Creates a shared static data unsafely for the specified context and sub-context (usable from both C# and HPC#). |
| [GetOrCreateUnsafe](/engine/6000.7/script-reference/unity/burst/sharedstatic1/getorcreateunsafe.md)                                                 | Creates a shared static data unsafely for the specified context and sub-context (usable from both C# and HPC#). |
