21 lines
552 B
ActionScript

class AssetExplorer : DockPanel {
AssetType searchAssetType = AssetType::None;
string currentPath = "";
void onRender() {
UI::setupAutomaticColumns(128);
if (searchAssetType == AssetType::None) {
searchAssetType = renderRootAssets();
}
if (searchAssetType == AssetType::Mesh) {
currentPath = renderMeshExplorer(currentPath);
if (currentPath == "..") {
searchAssetType = AssetType::None;
currentPath = "";
}
}
}
}