[過去ログ] 【3Dゲームエンジン】Unity質問スレッド38 (1002レス)
1-

このスレッドは過去ログ倉庫に格納されています。
次スレ検索 歴削→次スレ 栞削→次スレ 過去ログメニュー
317: Unity縦臾大使 ◆SoVpkB15jY 2018/10/30(火)14:50 ID:l68JGp4p(1/4) AAS
質問でふ(^^
photonView.RPCで別のスクリプトの関数を呼び出すにはどうすればいいでふ?(^^
別スクリプト a=GetComponent<別スクリプト>();
photonView.RPC(a+"別スクリプトの関数", PhotonTargets.AllViaServer);
これだとこんなエラーが出まひた(^^
PhotonView with ID 311 has no method "Button (捨てるスクリプト)捨てるon" marked with the [PunRPC](C#) or @PunRPC(JS) property! Args:
UnityEngine.Debug:LogError(Object)
NetworkingPeer:ExecuteRpc(Hashtable, Int32) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:3077)
NetworkingPeer:OnEvent(EventData) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:2601)
ExitGames.Client.Photon.PeerBase:DeserializeMessageAndCallback(Byte[])
ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()
ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()
PhotonHandler:Update() (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonHandler.cs:158)

ここさえ超えれば装備が実装できまんこ(^^
1-
あと 685 レスあります
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル

ぬこの手 ぬこTOP 0.008s