Skip to content

Tree API

Gentilhomme edited this page Jul 26, 2016 · 3 revisions

Tree API

This module allow a set of verification and interaction with the superpowers tree assets.

Examples

const sceneName : string = "Assets/Scenes/Game";
if(United.tree.exist(sceneName)) {
    Sup.loadScene(sceneName);
}
else {
    Sup.log(`${sceneName} was not found in the superpowers tree.`);
}

Functions

Test if the asset name exist or not !

exist(path: string) : Sup.Asset
Clone this wiki locally