• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 2,033 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0054 秒)

1541. loop 我想在回调里暂停,然后在开启 [ 62%]

...想在回调里暂停,然后在开启 var i = 0;  Laya.timer.loop( 500, this, function () {       i = i < (arr.length - 1) * 6 ? i + 1 : 0;       this.noticeList.scrollBar.value = i * 5        if (i % 6 == 0) {         console.log("在这里停止", i)        }       el...

来源: Laya_社区 发布时间: 20170705

1542. LayaBox现在支持骨骼动画的具体骨骼旋转等操作么。findBone()获取的不是具体骨个么?用了后没有生效 [ 62%]

...取的不是具体骨个么?用了后没有生效 var bone:Laya.Bone = this.mTemplete.mRootBone.findBone("头"); let angle:number = Math.atan2(Laya.stage.mouseY - (this.y - bone.transform.y), Laya.stage.mouseX - (this.x - bone.transform.x))*180/Math.PI; angle = Math.floor(angle); bone.rotation =an...

来源: Laya_社区 发布时间: 20180607

1543. 使用UrlLoader加载图片,flash获取data为byteArray,翻译成h5后data为image? [ 62%]

...Loader; public function UrlImage() { super(); if(stage) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { urlLoader=new URLLoader(); urlLoader.dataFormat=URLLoaderDataFormat.BINARY; urlLoader.addEventListener(Event.COMPLETE,onImageLoa...

来源: Laya_社区 发布时间: 20151228

1544. 文本-复杂的文本样式 [ 62%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createText(); } createText() { const Text = Laya.Text; let txt = new Text(); Laya.stage.addChild(txt); //给文本的text属性赋值 txt.text = "Layabox是性能最强的HTML5引擎技术提供商与优秀的游戏发...

来源: Laya2.0_示例 发布时间: 20251219

1545. 预设/场景的导出(ActionScript-3D基础(AS3)-LayaAir3D之3D场景可视化编辑) [ 62%]

...直接使用页面定义的属性(通过IDE内var属性定义),比如this.tipLbll,this.scoreLbl,具有代码提示效果 * 建议:如果是页面级的逻辑,需要频繁访问页面内多个元素,使用继承式写法,如果是独立小模块,功能单一,建议用脚本方 *...

来源: Laya2.0_文档 发布时间: 20210715

1546. 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function [ 62%]

...ture1= new Laya.Texture(); Texture1.load("res/1.png",Laya.Handler.create(this,function(){     this.sprite.graphics.drawTexture(Texture1,0,0,50,50,null,1,"#FFFFF"); })); 2021-09-17 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 破...

来源: Laya_社区 发布时间: 20190508

1547. 有没有SoundChannel的示例? [ 62%]

...SoundChannel的示例? SoundManager.playSound(_url, _loop, new Handler(this, _fn)); var channel:SoundChannel = new SoundChannel(); SoundManager.addChannel(channel); _btn.on(Event.CLICK, this, soundClick); function soundClick(evt:Event){ alert("channel.isStoped:"+channel.isStoped); if (channel.isSt...

来源: Laya_社区 发布时间: 20170116

1548. 真机调试 开启子域后 提示出现window is not defined [ 62%]

...      ↓按钮回调 绘制子域到工程 bt_rank_call_back(body){   this.bt_rank.CALL_BACK = function () { console.log("排行榜") var player_rank = body.wxData.get_canvas_4_code("SHOW_PLAYER_RANK",0) var rankTexture = new Laya.Texture(sharedCanvas); rankTexture.bitmap.alwaysChange = true; v...

来源: Laya_社区 发布时间: 20181217

1549. 看了LayaAir引擎 HTML5 3D游戏开发基础(快速上手)以后按照示例写代码 [ 62%]

...() { Laya3D.init(600,400); } return LayaSample1;  }());   警告Warning!,this class[MiniAdpter] already exist: Object {init: } 运行后什么都没有白白的一片     var LayaSample=(function() { Laya3D.init(600,400);  }()); 正常看到黑屏 附件 : --> 2018-05-21 添加评论 免费帖 ...

来源: Laya_社区 发布时间: 20180521

1550. 关于event中只读属性touches,问题,求解 [ 62%]

...height = 100; txt.x = 200; txt.y = 100; txt.fontSize = 50; txt.on("click", this, onFunc); Laya.stage.addChild(txt); } private function onFunc(e:Event):void { var arr:Array = e.touches; console.log("e.touchId="+e.touchId); console.log("arr[0]"+arr[0]); } } }  输出为:       不明白touches...

来源: Laya_社区 发布时间: 20170519