|
Hello all, first post here. Bear with me. :) I am trying to compile my game into a Flash version and, no surprise, there are compile problems with the preview version. I am trying to do a workaround to the Messenger script. When compiling to Flash the function typeof() yields the following error: So I tried stuff like ObjectNames.GetClassName() on the class (which extends System.Object), but that yields the following error: So the point is to convert the class name into a string somehow. I'm new to Unity so my grasp on JavaScript / C# is shaky as of yet. Cheers in advance for any help!
(comments are locked)
|
|
This may help you: Thanks for your reply, Haze. We did look into getQualifiedClassName, but the problem is that there's apparently no function on Unity's end that would be converted into getQualifiedClassName upon compile to Flash. Fortunately I figured out a way to circumvent the issue having slept on it. :)
Mar 16 '12 at 08:03 AM
Dralamir
(comments are locked)
|
|
Thanks for the reply, Haze. Unfortunately we looked at getQualifiedClassName as well, forgot to mention that. The problem with that is that I should have a function that works in JavaScript/C# (instead of typeof) that is converted into getQualifiedClassName upon Flash compilation. Fortunately, having slept on it I figured out a workaround to circumvent the problem. Obviously a proper solution to the function conversion would be ideal at some point. :)
(comments are locked)
|
