Hey all,
quick question:
Can I somehow use the undocumented onSceneGUIDelegate in javascript?
function Start() {
if(SceneView.onSceneGUIDelegate != this.OnSceneGUI)
{
SceneView.onSceneGUIDelegate += new SceneView.OnSceneFunc(OnSceneGUI);
}
}
function OnSceneGUI (scnView : SceneView) {
Debug.Log("bla");
}
That code won’t work, the console says: Operator ‘+’ cannot be used with a left hand side of type ‘function(UnityEditor.SceneView): void’ and a right hand side of type ‘function(UnityEditor.SceneView): void’.
So yeah, is this for C# only?