Version: 2022.2

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 的注意事项。

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961