Away3D setRenderCallback() removed from View3D

What happened to Away3D’s setRenderCallback() function?

Was it deemed unnecessary, instead to call render() from your own frame handler?

In the past, View3D used to function to register the render callback

view.setRenderCallback(render);

public function render(event:Event):Void {
    view.render();
}

Is this no longer the proper way to register the render callback?

This was removed from the latest version of Away3D in favour of the original AS3 style implementation of using the standard ENTER_FRAME event listener and calling view.render() from within that method.

2 Likes