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

SharedStatic<T0>.GetOrCreatePartiallyUnsafeWithHashCode

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

Declaration

public static SharedStatic<T> GetOrCreatePartiallyUnsafeWithHashCode(uint alignment, long hashCode);

Parameters

Parameter Description
alignment The alignment (specified in bytes).
hashCode The 64-bit hashcode for the shared-static.

Returns

SharedStatic<T> A newly created or previously cached shared-static for the hashcodes provided.

Description

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