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 callChartboostSDK.Chartboost.showInterstitial(CBLocation.Default);GameOver.js(10,9): BCE0

Discussion in 'Scripting' started by gclsoft, Dec 2, 2014.

  1. gclsoft

    gclsoft

    Joined:
    Sep 20, 2013
    Posts:
    5
    unity3d js file wanna use chartboost interstitial ads.

    Code (JavaScript):
    1. #pragma strict
    2.  
    3.  
    4. //var cb:Chartboost;
    5.  
    6.  
    7.  
    8. function Start () {
    9.  
    10. // cb.loadInterstital();
    11.  
    12.  
    13. Chartboost.loadInterstital();
    14.  
    15. }
    But build error: GameOver.js(10,9): BCE0005: Unknown identifier: 'Chartboost'.
     
  2. frankrs

    frankrs

    Joined:
    Aug 29, 2009
    Posts:
    300
    I think you have to import it first, on top
     
  3. SNA

    SNA

    Joined:
    May 29, 2014
    Posts:
    2
    Did you manage to resolve this? I am trying to do the same thing in JS and would greatly appreciate any help!
    Thanks!