Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

javascript and boo scope quick question

Discussion in 'Scripting' started by 1vo, Feb 22, 2011.

  1. 1vo

    1vo

    Joined:
    Feb 15, 2011
    Posts:
    7
    is it possible to make a class, defined in one of the two languages, visible to each other? I mean: I defined a class in a boo script and I want to instantiate it in a javascript one but looks like I'm unable make that happen 'cos I got 'unknown identifier' error.
     
  2. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    to each other is impossible but making one visible to the other is possible.
    see the manual page on compilation order to find out how to do it
     
  3. 1vo

    1vo

    Joined:
    Feb 15, 2011
    Posts:
    7
    thank you dreamora to remind me that - I knew that putting the main class script in the plugins folder I would have gained the right scope visibility and formerly I tried that but I missed a typo in the class name and so I thought was a scope problem between the two 'kids'. As a matter of fact now they see each other without fighting as before.
     
    Last edited: Feb 23, 2011