Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Javascript .NET

Discussion in 'Scripting' started by Dafu, May 3, 2007.

  1. Dafu

    Dafu

    Joined:
    Aug 22, 2006
    Posts:
    124
    I'm trying to use some .NET libraries with Javascript instead of C#. For most part this is pretty straight forward. However, I'm having problems with some variable types. For example, I'm trying to call a .NET function that takes a byte array as a parameter. The compiler refuses to accept plain old javascript Arrays as the parameter, so how do I create and pass a byte array to a .NET function in Javascript?
     
  2. lgoss007

    lgoss007

    Joined:
    Dec 6, 2006
    Posts:
    88
  3. Dafu

    Dafu

    Joined:
    Aug 22, 2006
    Posts:
    124
    Ah, that's it. Thank you very much.