Hey hey,
It would be nice if you could help me out using combu with Java Script.
I already moved all Combu scripts into the Plugins folder but still cant access the CombuManager by Java.
In my java script I tried this,
function Start(){
var cbManager : CombuManager = FindObjectOfType(CombuManager);
}
but Unity only gave me following error:
"Assets/Scripts/GUI_Ingame_Handler.js(43,17): BCE0018: The name 'CombuManager' does not denote a valid type ('not found'). "
How can I solve this?
Many thanks in advance.
Are you sure you have to place the folder in Plugins? As far as I know to communicate from JS to C# you should have the C# scripts inside "Standard Assets".
Also all core classes are inside the namespace Combu, now I'm not so experienced in UnityJS but may be you should have "import Combu;" as first line in the scripts that need to access the core classes.
Besides that, I see in your sample code you're using FindObjectOfType, you don't need it but just use instance:
while (!CombuManager.isInitialized)
yield;
// Now you can use CombuManager.instance
}
FRANCESCO CROCETTI @ SKARED CREATIONS
"import Combu;" does the trick!
Many thanks it works now!