UNPKG

@megavr/ecsy-babylon

Version:

babylon.js ecsy binding and helpers

16 lines (15 loc) 585 B
import * as BABYLON from "@babylonjs/core"; import { ColorComponent, SceneColorProperties, TextureComponent, SceneTextureProperties } from "./types/index"; /** * @example * ``` * entity.addComponent(Scene, { color: { clear: "123ABCFF" } }); * ``` */ export class Scene implements ColorComponent<SceneColorProperties>, TextureComponent<SceneTextureProperties>{ object: BABYLON.Scene; /** @see https://doc.babylonjs.com/api/interfaces/babylon.sceneoptions */ options?: BABYLON.SceneOptions; color?: SceneColorProperties; texture?: SceneTextureProperties; }