大约有 1,605 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0068 秒)
Laya_社区(974) Laya2.0_文档(192) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(61) Laya2.0_api(57) laya_api(53) Laya3.0_文档(29)
...h)); function onLoadFinish() { //初始化3D场景 this.scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/TerrainScene/XunLongShi.ls")); //删除原始资源中包含的默认相机 var camera = this.scene.getChildByName("Scenes").getChildByName("Main Camera"); camera.removeSel...
来源: Laya_示例 发布时间: 20241117
...teSampleText() { const Text = Laya.Text; let text = new Text(); Laya.stage.addChild(text); text.overflow = Text.HIDDEN; text.color = "#FFFFFF"; text.font = "Impact"; text.fontSize = 20; text.borderColor = "#FFFF00"; text.x = 80; text.text = "A POWERFUL HTML5 ENGINE ON FLASH TECHNICAL\n" + "A POWERFU...
来源: Laya2.0_示例 发布时间: 20241117
...蓝色方块,不被抠图 this.gameContainer = new Sprite(); Laya.stage.addChild(this.gameContainer); // 引导所在容器 this.guideContainer = new Sprite(); // 设置容器为画布缓存 this.guideContainer.cacheAs = "bitmap"; Laya.stage.addChild(this.guideContainer); this.gameContainer.on("cl...
来源: Laya_社区 发布时间: 20180116
...Loaded)); })(); function onAssetsLoaded() { ape = new Sprite(); Laya.stage.addChild(ape); ape.pivot(55, 72); ape.pos(Laya.stage.width / 2, Laya.stage.height / 2); // 显示默认纹理 switchTexture(); ape.on("click", this, switchTexture); } function switchTexture() { var textureUrl = (flag = !flag)...
来源: Laya_示例 发布时间: 20241117
.../ 2; this.sp.y = Laya.stage.height / 2; this.sp.size(200, 200); Laya.stage.addChild(this.sp); this.sp.on(ROTATE, this, this.onRotate); // 侦听自定义的事件 this.sp.on(Event.CLICK, this, this.onSpriteClick); } onSpriteClick(e) { let randomAngle = Math.random() * 180; //发送自定义事件 th...
来源: Laya2.0_示例 发布时间: 20241117
...ialog 里的数据已经获取到了,也赋值了但是页面没跟新,addChild好像无效果 var fooddata = []; for (var X = 0; X < res.data.length; X++) { var foodid = res.data[X]['n_food_id']; var foodtxt = res.data[X]['n_number']; fooddata[X] = { food: { skin: 'comp/food' + foodid + '.pn...
来源: Laya_社区 发布时间: 20181221
...tion onLoaded():void { createList(); createItems(); createLoading(); _list.addChild(_loadingBg); Laya.stage.addChild(_list); } protected function createList():void { _list = new List(); _list.itemRender = RecordItem; _list.repeatX = 1; _list.repeatY = 13; _list.spaceY = 3; _list.vScrollBarSkin = "";...
来源: Laya_社区 发布时间: 20170323
...e.width, Laya.stage.height); logger.text = "等待响应...\n"; Laya.stage.addChild(logger); } function onHttpRequestError(e) { console.log(e); } function onHttpRequestProgress(e) { console.log(e) } function onHttpRequestComplete(e) { logger.text += "收到数据:" + hr.data; } })();module laya { ...
来源: Laya_示例 发布时间: 20241117
...eContainer=new Sprite(); guideContainer.cacheAs = "bitmap"; this.addChild(guideContainer); maskArea = new Sprite(); maskArea.alpha = 0.3; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#0ef604"); guideContainer.addChild(maskArea); //EventManager.add(MyEven...
来源: Laya_社区 发布时间: 20171213
...e.width, Laya.stage.height); logger.text = "等待响应...\n"; Laya.stage.addChild(logger); } function onHttpRequestError(e) { console.log(e); } function onHttpRequestProgress(e) { console.log(e) } function onHttpRequestComplete(e) { logger.text += "收到数据:" + hr.data; } })();module laya { ...
来源: Laya_示例 发布时间: 20241117