RemoteFunctionクラス
ひとことで言うと
サーバーとクライアントのあいだで、問い合わせて答えを受け取るための部品です。RemoteEventと違い、返事(戻り値)を受け取れます。
公式の説明(英語):An object which facilitates synchronous, two-way communication across the client-server boundary. Scripts invoking a RemoteFunction yield until they receive a response from the recipient.
クラスの関係
メソッド(2)
| 名前と書き方 | 説明 |
|---|---|
InvokeClientRemoteFunction:InvokeClient(player: Player, arguments: Tuple): Tuple | Invokes the RemoteFunction which in turn calls the Class.RemoteFunction.OnClientInvoke|OnClientInvoke callback. |
InvokeServerRemoteFunction:InvokeServer(arguments: Tuple): Tuple | Invokes the RemoteFunction which in turn calls the Class.RemoteFunction.OnServerInvoke|OnServerInvoke callback. |
コールバック(2)
| 名前と書き方 | 説明 |
|---|---|
OnClientInvokeRemoteFunction:OnClientInvoke(arguments: Tuple): Tuple | Callback for when the RemoteFunction is invoked with Class.RemoteFunction:InvokeClient()|InvokeClient(). |
OnServerInvokeRemoteFunction:OnServerInvoke(player: Player, arguments: Tuple): Tuple | Callback for when the RemoteFunction is invoked with Class.RemoteFunction:InvokeServer()|InvokeServer(). |
受け継いでいるメンバー
Instance から受け継いでいるもの(46)
Archivable・Capabilities・IsInSandbox・Name・Parent・PredictionMode・Sandboxed・AddTag・ClearAllChildren・Clone・Destroy・FindFirstAncestor・FindFirstAncestorOfClass・FindFirstAncestorWhichIsA・FindFirstChild・FindFirstChildOfClass・FindFirstChildWhichIsA・FindFirstDescendant・GetActor・GetAttribute・GetAttributeChangedSignal・GetAttributes・GetChildren・GetDebugId・GetDescendants・GetFullName・GetStyled・GetStyledPropertyChangedSignal・GetTags・HasTag・IsAncestorOf・IsDescendantOf・IsPropertyModified・QueryDescendants・RemoveTag・ResetPropertyToDefault・SetAttribute・WaitForChild・AncestryChanged・AttributeChanged・ChildAdded・ChildRemoved・DescendantAdded・DescendantRemoving・Destroying・StyledPropertiesChanged
Object から受け継いでいるもの(4)
英語の説明とメンバーの一覧は、Roblox Creator Documentation(RemoteFunction)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。