Version: 2021.2
言語: 日本語
public void Register (Guid messageId, UnityAction<MessageEventArgs> callback);

パラメーター

messageId The message ID that should cause the Action callback to be executed when received.
callback Action that is executed when a message with ID messageId is received by the Editor. The callback includes the data that is sent from the Player, and the Player ID. The Player ID is always 1, because only one Editor can be connected.

説明

Registers a listener for a specific message ID, with an Action to be executed whenever that message is received by the Editor. This ID must be the same as for messages sent from EditorConnection.Send().

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