Unity3d -Javascript Examples?
Posted: 04 Sep 2013, 12:49
Hi all, are there any examples of Noesis integrating with Javascript/Unityscript inside Unity3d?
I'm just trying to register a very simple button click in Unity button I am stumped at the start.
I'm getting the following error :BCE0164: Cannot infer generic arguments for method 'NoesisGUIPanel.GetRoot.<T>()'. Provide stronger type information through arguments, or explicitly state the generic arguments.
I get this error in the GetRoot command. Maybe I'm not using it right? It seems to be declared okay initially. Here's the code....
Thanks all!
Simon
I'm just trying to register a very simple button click in Unity button I am stumped at the start.
I'm getting the following error :BCE0164: Cannot infer generic arguments for method 'NoesisGUIPanel.GetRoot.<T>()'. Provide stronger type information through arguments, or explicitly state the generic arguments.
I get this error in the GetRoot command. Maybe I'm not using it right? It seems to be declared okay initially. Here's the code....
Code: Select all
//--------------------------Javascript---------------
var button01 : Noesis.Button;
var button02 : Noesis.Button;
var mainGUI : NoesisGUIPanel;
var grid : Noesis.Grid;
function Start () {
mainGUI = this.gameObject.GetComponent(NoesisGUIPanel);
grid = mainGUI.GetRoot();
}
//---------------------------Simon