大约有 632 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0058 秒)
Laya_社区(254) Laya2.0_示例(114) Laya2.0_文档(94) Laya_示例(92) Laya3.0_api(34) Laya2.0_api(21) Laya3.0_文档(15) laya_api(8)
...x_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/check.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成!"); ...
来源: Laya3.0_api 发布时间: 20231115
...rs _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColor blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed direction disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalSca...
来源: Laya3.0_api 发布时间: 20231115
...HeightSet _isWidthSet active activeInHierarchy align alpha anchorX anchorY bgColor blendMode bold borderColor cacheAs color components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize editable filters focus font fontSize globalRotation globalScaleX globalScal...
来源: Laya3.0_api 发布时间: 20231115
...Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(compassImgPath, Handler.create(this, this.init)); } init() { const Gyroscope = Laya.Gyroscope, Event = Laya.Event; // 创建罗盘 this.createCompass(); // 创建方位指示器 this.crea...
来源: Laya2.0_示例 发布时间: 20241119
...Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; // 初始化蛇 this.initSnake(); // 监视加速器状态 Accelerator.instance.on(Event.CHANGE, this, this.monitorAccelerator); // 游戏循环 Laya.timer.frameLoop(1, this, this.animate); // 食物生...
来源: Laya2.0_示例 发布时间: 20241119
...Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; var res = [ "../../res/ui/vscroll.png", "../../res/ui/vscroll$bar.png", "../../res/ui/vscroll$down.png", "../../res/ui/vscroll$up.png", "../../res/ui/tree/clip_selectBox.png", "../../res/ui/tree/clip_tree...
来源: Laya2.0_文档 发布时间: 20210715
...Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; var res: Array = [ "res/ui/vscroll.png", "res/ui/vscroll$bar.png", "res/ui/vscroll$down.png", "res/ui/vscroll$up.png", "res/ui/tree/clip_selectBox.png", "res/ui/tree/clip_tree_folder.png", "res/ui/tree/cl...
来源: Laya2.0_文档 发布时间: 20210714
...``typescript //初始化引擎 Laya.init(600, 400, Laya.WebGL); Laya.stage.bgColor = "#ffcccc"; var data = "data:image/svg+xml," + '' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp = new Laya.Sprite(); sp.loadImage(data, 0, 0, 200, 200); Laya.stage.addChild(sp); ``` 通过data来当做...
来源: Laya2.0_文档 发布时间: 20210714
...Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; // 本地运行,需要在index.html中引用百度地图API文件 this.createDom(); this.initMap(); this.createInfoText(); let successHandler = new Handler(this, this.updatePosition); let errorHandler =...
来源: Laya2.0_示例 发布时间: 20241119
.../config.js 2019-06-18 13:34:09.380089+0800 test1[6479:65523] JSBridge bgColor: ["#000000"] 2019-06-18 13:34:09.380371+0800 test1[6479:65523] JSRuntime::callMethod {} 2019-06-18 13:34:09.380592+0800 test1[6479:65523] JSBridge setFontColor: ["#ffffff"] 2019-06-18 13:34:09.380823+0800 test1[6479...
来源: Laya_社区 发布时间: 20190618