大约有 2,033 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0091 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
...Laya.loader.load("https://s2.d2scdn.com/2017/12/ ... ot%3B, Handler.create(this, function() { var t = Laya.loader.getRes("https://s2.d2scdn.com/2017/12/ ... 6quot;); var ape = new Sprite(); ape.scaleX = 0.5 ape.scaleY = 1 ape.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape); ape.pos(200, 0); ...
来源: Laya_社区 发布时间: 20171220
资源加载清除问题 Laya.loader.load(mapBit, Handler.create(this, onLoadCom)); 加载成功一个纹理后,用一个Sprite graphics.drawTexture(e); 在加载成功方法里面写Loader.clearRes(mapBit, true); 会立刻清掉了纹理,Sprite上面也没有了。 如果在加载成功后...
来源: Laya_社区 发布时间: 20161230
...test.atlas" ){ Laya.loader.load("res/atlas/test.atlas",Laya.Handler.create(this,this.onComplete)); } }.bind(this)); else Laya.loader.load("res/atlas/test.atlas",Laya.Handler.create(this,this.onComplete)); } onComplete(): void { console.log("complated"); //初始化rank排行榜 var rank = new BigRan...
来源: Laya_社区 发布时间: 20200314
... var glowFilter = new Laya.GlowFilter("#ffff00", 10, 0, 0); this.btnLoad.displayObject.filters = [glowFilter]; var ui_hpBarMask = new Laya.Sprite(); ui_hpBarMask.graphics.clear(); ui_hpBarMask.graphics.drawRect(0, 0, 154, 12, 0xffffff); ...
来源: Laya_社区 发布时间: 20220531
...0, 400, 400, 32, { layaSprite:Wall_TL,isStatic: true }) Matter.World.add(this.engine.world, [ Collision_Wall_TL, // Collision_Wall_R, // Collision_Wall_TL ]); 如何旋转这个对象 让它倾斜45度啊 2018-05-29 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复...
来源: Laya_社区 发布时间: 20180529
...it(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); this.stage.scaleMode = StageScaleMode.NO_SCALE; this.stage.align = StageAlign.TOP_LEFT; __JS__Test(); } private function __JS__Test():void { __JS__("window.alert('__JS__语句把我召唤出来了')"); } } } 上面的代码...
来源: Laya_社区 发布时间: 20151106
...种情况) Laya.Texture2D.load("res/skin/2.jpg",new Laya.Handler(this,this.loadfinish));//加载贴图 loadfinish(tex){ var mat=new Laya.UnlitMaterial();//创建材质 mat.albedoTexture=tex;//给材质添加贴图 //mat.albedoColorA = 0.5; //透明度 // mat.blend = Laya.RenderState.BLEND_EN...
来源: Laya_社区 发布时间: 20200626
...var并根据这个var添加点击事件 事件无法执行,控制台用this.var值输出对应图片,先是打印undifined 然后就报Could not find object with given id 求解什么原因 2017-04-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...
来源: Laya_社区 发布时间: 20170406
...mBtn();//这个对象内部有一个属性为testNum; this.addChild(_bottomBtn); trace("测试1 = " + _bottomBtn.testNum + "-" + _bottomBtn);// 测试1 = 1-[object Object] this.removeChildren(); trace("测试2 = " + ...
来源: Laya_社区 发布时间: 20170328
...t(0, 0); //定义一个命名空间的属性为app; Browser.window.app = this; } public static function getGameName():String { return "myGame"; } public function getVersion():String { return "1.2.0"; } } } ``` 编译运行,打开浏览器控制台,先后输入`app`、`app.name`、`app.getV...
来源: Laya2.0_文档 发布时间: 20210715