UNPKG
@megavr/ecsy-babylon
Version:
latest (0.0.10)
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
babylon.js ecsy binding and helpers
github.com/megavr/ecsy-babylon
megavr/ecsy-babylon
@megavr/ecsy-babylon
/
packages
/
utils
/
sceneUtils.js
11 lines
(10 loc)
•
304 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
{ getWorld }
from
"./worldUtils"
;
import
{
SceneSystem
}
from
"../systems/SceneSystem"
;
/** *
@hidden
* Get runtime SceneSystem instance. *
@param
system A registered ecsy System class */
export
function
getSceneSystem
(
system
) {
return
getWorld
(system).
getSystem
(
SceneSystem
); }