Lysa.nodes  0.0
Lysa 3D Engine
Loader Class Referenceabstract

Detailed Description

Utility for loading scene files synchronously or asynchronously.

Lua full name: lysa.nodes.Loader

Public Member Functions

Node load (uri: string)static
 Loads a scene from the given virtual URI and returns its root node. More...
 
nil load_async (uri: string, fn: fun())static
 Loads a scene asynchronously from the given URI; calls fn on the main thread when loading is complete. More...
 

Member Function Documentation

Node load ( string  uri)
static

Loads a scene from the given virtual URI and returns its root node.

Parameters
uristring
Returns
Node
nil load_async ( string  uri,
fun()  fn)
static

Loads a scene asynchronously from the given URI; calls fn on the main thread when loading is complete.

Parameters
uristring
fnfun()