大约有 1,442 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0057 秒)
Laya_社区(922) Laya2.0_文档(177) Laya_示例(132) Laya2.0_示例(115) Laya3.0_api(61) Laya3.0_文档(33) laya_api(1) Laya2.0_api(1)
...lic function LayaAirDemo() { Laya.init(Browser.width,Browser.height); Laya.stage.bgColor="#EEFFCC"; //预加载button的资源,用于tab的项皮肤 Laya.loader.load("button-4.png",Handler.create(this,onLoaded)); } private function onLoaded():void { //添加tab容器 var tab:Tab=new Tab(); Laya.st...
来源: Laya_社区 发布时间: 20170626
...率模式** ,并且使用了会有缩放的适配模式)可能会缩放stage,所以开发者在传值时需要注意统一参考系,关于适配模式具体可以查看文档 [屏幕适配的缩放模式详解](https://ldc2.layabox.com/doc/?nav=zh-as-1-8-3)。 (图1) 下面的...
来源: Laya2.0_文档 发布时间: 20210715
...继承BOX类 list.vScrollBarSkin =""; Laya.stage.addChild(list); list.array =this.arr; list.renderHandler =new Laya.Handler(this,this.updateItem); this.listArr.push(list); //----------------------------------------------...
来源: Laya_社区 发布时间: 20190522
...(); pic.graphics.drawTexture(Laya.loader.getRes(picUrl), picX, picY); Laya.stage.addChild(pic); } } } Main.as package { import laya.display.*; import laya.resource.Texture; import laya.ui.Image; import laya.utils.Handler; import addPic; public class Main { private var bgImage:Image; private var b...
来源: Laya_社区 发布时间: 20170522
.../Conventional/SceneMonkey.ls",Laya.Handler.create(this,function(res){ Laya.stage.addChild(res); //用于挂点的精灵 var box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this,...
来源: Laya2.0_文档 发布时间: 20210715
.../Conventional/SceneMonkey.ls",Laya.Handler.create(this,function(res){ Laya.stage.addChild(res); //用于挂点的精灵 var box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this,...
来源: Laya2.0_文档 发布时间: 20210714
...t.body.appendChild(this.mapDiv); // 适应窗口尺寸 this.refit(); Laya.stage.on(Laya.Event.RESIZE, this, this.refit); // 初始化地图 this.map = new this.BMap.Map(this.mapDiv); // 禁用部分交互 //this.map.disableDragging(); this.map.disableKeyboard(); this.map.disableScrollWheelZoom();...
来源: Laya2.0_文档 发布时间: 20210714
...heckBox_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
...Ape)); function showApe(){ this.ani.loadAnimation("TimeLine.ani"); Laya.stage.addChild(this.ani); this.ani.play(); } 运行时报 TypeError:Cannot read property '_create' of null at Animation._proto.timerLoop(file:///f:/........./bin/libs/laya.core.js:9493:14) at Animation._proto.p...
来源: Laya_社区 发布时间: 20171028
...nt.body.appendChild(this.mapDiv); // 适应窗口尺寸 this.refit(); Laya.stage.on(Laya.Event.RESIZE, this, this.refit); // 初始化地图 this.map = new this.BMap.Map(this.mapDiv); // 禁用部分交互 //this.map.disableDragging(); this.map.disableKeyboard(); this.map.disableScrollWheelZoom(); t...
来源: Laya3.0_文档 发布时间: 20240910