Search Unity

Mixing Unity Script and C#

Discussion in 'Scripting' started by Nyozz, Sep 2, 2014.

  1. Nyozz

    Nyozz

    Joined:
    Jan 16, 2014
    Posts:
    6
    Hello,

    I have some Scripts in my project written in unity script and I want to access from an C# Script.
    But my C# script doesn't find the class written in unity script. I've found out that I can reference the DLL but everytime I reload my project unity overwrites this setting an I have to add the reference again.

    Is there maybe a better solution for this problem?
     
  2. smitchell

    smitchell

    Joined:
    Mar 12, 2012
    Posts:
    702
    one of the languages needs to compile before the other. Put one of the scripts in the special Plugins folder, and then you should be able to use it in the other language
     
  3. Nyozz

    Nyozz

    Joined:
    Jan 16, 2014
    Posts:
    6
    thanks I'm going to try it out
     
  4. AlucardJay

    AlucardJay

    Joined:
    May 28, 2012
    Posts:
    328