Method group is Obsolete

ClientScene.RegisterSpawnHandler

Cambiar al Manual
Obsolete public static void RegisterSpawnHandler (NetworkHash128 assetId, Networking.SpawnDelegate spawnHandler, Networking.UnSpawnDelegate unspawnHandler);

Parámetros

assetIdCustom assetId string.
spawnHandlerA method to use as a custom spawnhandler on clients.
unspawnHandlerA method to use as a custom un-spawnhandler on clients.

Descripción

This is an advanced spawning function that registers a custom assetId with the UNET spawning system.

This can be used to register custom spawning methods for an assetId - instead of the usual method of registering spawning methods for a Prefab. This should be used when no Prefab exists for the spawned objects - such as when they are constructed dynamically at runtime from configuration data.

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