textures -> controller -> sceneGraph
This means that at the point your controler init is called your sceneGraph data may not exist in the engine scene graph. If you want to be informed when it is there, simply hook the "ready" event from your controller module:
- Code: Select all
appCore.module('MyStateControllerModule', function ($ige, $game, IgeStreamComponent) {
var moduleSelf = this;
var MyStateControllerModule = function () {
var self = this;
moduleSelf.on('ready', function () {
// Your sceneGraph data will exist now
});
});
});