Version: 2022.2
LanguageEnglish
  • C#

ContentBuildInterface.CalculatePlayerSerializationHashForType

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 Hash128 CalculatePlayerSerializationHashForType(Type type, Build.Player.TypeDB typeDB);

Parameters

type The type of the object.
typeDB The user script TypeDB for the player.

Returns

Hash128 The unique hash for a type's serialized layout.

Description

Returns a unique hash for a given type's serialized layout.

Passing in null will provide a hash for the serialized layout of the type as it exists in the editor, passing in a valid TypeDB for a player will provide a hash for the layout as it exists in the player.

Internal use only. See note on ContentBuildInterface.