|
Hello, I am currently working on making buttons ans switches networked so that they perform what is needed on all client. I am running into the error "RPC call failed because the script couldn't be loaded. The function was 'ToggleSwitch'." on a few of my scripts. Most work fine though. Here is the code:
the exact same setup works in other scripts... Any ideas what is wrong?
(comments are locked)
|
|
This happens when you have a "Missing Monobehaviour" on the same gameobject (a missing script). Thanks Leepo, I dont know why I didnt spot that missing behaviour sooner. Guess its just the size of the scene. Anyway, thanks . . worked a treat for me.
Feb 20 '12 at 12:28 PM
Fehr
@Fehr: This question (+ Answer) is 1.5 years old and you post this comment, two times, as Answer... If you think your comment is that important, please use the "add new comment"-button. -> converted
Feb 20 '12 at 12:33 PM
Bunny83
Hey Bunny83. I tried that but something wierd was happening, and my comment wouldn't appear. For this reason I posted it as a answer instead, and even then it seemed not to appear. It seems it did, twice haha. I didnt feel it was paricularly important, just wanted to say thanks. Leepo's comment helped. Thanks for fixing that up, I wont let it happen again.
Feb 20 '12 at 11:38 PM
Fehr
thank you, Leepo.
Nov 14 '12 at 02:51 AM
yadoa
(comments are locked)
|
|
This can still happen if you have an script that is attached (not missing) but empty. For instance, a script, the entirity of which is wrapped in: Would produce this error when on a platform other than iOS. Its an edge case, but perhaps this kind of thing is what's causing this issue for you.
(comments are locked)
|
|
I've received the same runtime error message and I think that my GameObject hasn't got any missing script attatched to...I've revised a lot of times and well...I don't know what can be... Any idea?
(comments are locked)
|
