Version: 2021.1

ContentBuildInterface.CalculatePlayerSerializationHashForType

切换到手册
public static Hash128 CalculatePlayerSerializationHashForType (Type type, Build.Player.TypeDB typeDB);

参数

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

返回

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

描述

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.

仅限内部使用。请参阅有关 ContentBuildInterface 的注意事项。