大约有 969 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0055 秒)
Laya_社区(501) Laya2.0_示例(94) Laya_示例(89) Laya2.0_文档(88) Laya3.0_api(63) Laya2.0_api(58) laya_api(54) Laya3.0_文档(22)
... let partIns = new Laya.Particle2D(settings); Laya.stage.addChild(partIns); // 开始发射粒子 partIns.emitter.start(); // 播放 partIns.play(); partIns.x = Laya.stage.width / 2; ...
来源: Laya_社区 发布时间: 20190704
...al/layaScene.ls", Handler.create(this, function(scene:Scene3D):void { Laya.stage.addChild(scene) as Scene3D; //获取cube对象 var cube:Sprite3D = scene.getChildByName("Cube"); //添加组件(脚本) var _script:SceneScript = cube.addComponent(SceneScript); //label用于显示 var _lab:Label = new ...
来源: Laya2.0_文档 发布时间: 20210715
...置,否则鼠标事件会有问题 如果一定要改的话需要先把stage适配的相关代码看明白 2018-01-16 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 erwer8363 相关问题 发起问题须知,必看!!!不按提...
来源: Laya_社区 发布时间: 20180116
...d(): void { //实例UI界面 var testUI: FishPonds = new FishPonds(); Laya.stage.addChild(testUI); Laya.timer.loop(1000, this, function () { testUI.rotation = 360 console.log("rotation!" + testUI.rotation); }); } 附件 : --> hitTestPoint.zip 2018-03-15 添加评论 免费帖 --> 分享 微博 QZONE...
来源: Laya_社区 发布时间: 20180315
... = new Sprite(); maskArea.alpha = 0; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); maskArea.setName("maskArea") mask.addChild(maskArea); //绘制一个圆形区域,利用叠加模式,从遮罩区域抠出可交互区 highLightArea = new Sprite(); highLightA...
来源: Laya_社区 发布时间: 20221010
...0, WebGL); Stat.show(0, 0); Laya.stage.scaleMode = "showall"; Again(); } private function onAssetLoaded(e:*=null):void { // var texture:Texture = Loader.getRes("res/Dragon...
来源: Laya_社区 发布时间: 20160902
...读]是否已经销毁。对象销毁后不能再使用。Node displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node editable : Boolean 是否可编辑。 Input filters : Array滤镜集合。可以设置多个滤镜组合。Sprite focus : Boolean 表示焦点是...
来源: laya_api 发布时间: 20170929
fixedwidth 有最大宽度限制吗? 使用 Laya.stage.scaleMode = "fixedwidth"; 宽度始终以屏幕为准,我希望可以有个 max-width : 768px 的限制,可以实现吗? 2017-03-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...
来源: Laya_社区 发布时间: 20170316
...mg.width; s.height = img.height; s.addChild(img); hbox.addChild(s); } Laya.stage.addChild(hbox); } 2017-06-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 lusky 相关问题 Layabox 2.0 bate5 运行编译之...
来源: Laya_社区 发布时间: 20170607
...a.TiledMap(); this.map.createMap(this.MAP_URL, new Laya.Rectangle(0,0,Laya.stage.width, Laya.stage.height), new Laya.Handler(this, this.onMap)) } private onMap(){ var idx = this.map.getLayerByIndex(0).getTileDataByScreenPos(20,20); var pass = this.map.getTileProperties(0,idx - 1,'pass'); console.l...
来源: Laya_社区 发布时间: 20190218