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

大约有 158 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0039 秒)

121. [LayaAir2]在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 55%]

...LayaAir3.0引擎,那边实现videoTexture不用自己手动刷新 Laya.timer.frameLoop(1, this, this.updateVideo, [texture2D]); },true); } updateVideo(tempTexture:Laya.Texture2D){ if(this.htmlvideo.video.readyState === this.htmlvideo.video.HAVE_ENOUGH_DATA) { //更新视频纹理 tempTexture.loadI...

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

122. ProgressBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 55%]

...d(progressBar); //时间间隔循环,每100毫秒改变一次数据 Laya.timer.loop(100, this, changeValue); } /***时间间隔循环回调,更新进度条***/ private function changeValue():void { //最大为1,每次间隔更新5% if (progressBar.value >= 1) progressBar.value = 0; progressBar...

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

123. 在Canvas模式下 drawTexture出错 [ 55%]

...2 人 熊猫大侠 • 2018-01-19 09:20 public function Test1View() { Laya.timer.loop(10,this,draw); } private function draw():void { texture = Laya.loader.getRes("comp/lhjicon_5.png"); var temp:Texture = Texture.createFromTexture(texture,0,0,texture.sourceWidth/2,texture.height/2); IconSp...

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

124. 关于大量图片加载绘制后的内存暴增的疑问 [ 55%]

... Sprite(); Laya.stage.addChild(sp); //每隔0.05秒出现下张图片 Laya.timer.loop(50,this,onLoop); } private function onLoop():void { //更改texture的纹理,逐一显示不同的image chageTexture(); //如果texture有值,进行绘制并排序 if(texture) { sp.graphics.drawTexture(texture,...

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

125. 向TiledMap中的对象层中的矩形框添加精灵,不显示 [ 54%]

...,100,100,"#FF0000"); sp.zOrder=1000; mapLayer.addChild(sp); Laya.timer.loop(200,this,onLoop); } private var aaa:Number=0; private var bbb:Number=0; private function onLoop():void { aaa--; sp.x++; tiledMap.moveViewPort(aaa,bbb); } spooner • 2017-05-25 12:25 例子如何提供? cuixueyin...

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

126. rigidBody.applyForce 对刚体应用力,物体没有移动 [ 54%]

...  //rigidBody.linearVelocity = new Laya.Vector3(0,0,-1);         Laya.timer.loop(2000, this, function(){console.log(rigidBody.linearVelocity.z)});     } } //激活启动类 new PhysicsWorldBaseCollider(); 2019-10-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

127. 示例 骨骼动画换装 加不上点击事件 [ 53%]

...n); mArmature.showSkinByName(mSkinList[0]); play(); //changeSkin(); //Laya.timer.loop(1000, this, changeSkin); } 2017-08-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 10 个回复 cuixueying 赞同来自: 为你的mArmatu...

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

128. 没有预加载的图片怎么获取width和height ? [ 53%]

...getGraphicBounds().width,older.getGraphicBounds().height);     // Laya.timer.loop(1,this,showlog); } 2017-09-01 1 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 通过getBounds获取图片的宽高 2017-01-18 0 10 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回...

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

129. 播放音乐 失去焦点后回来内存会不断增加 [ 52%]

...候没得问题,但是不断切换音乐的时候也会增加,如 Laya.timer.loop(1000,this,function():void{ SoundManager.playMusic(UrlUtils.getSoundUrl("runbeard/Audio_Game_Back")); }); Laya_Aaron • 2018-02-08 20:10 都换了就不会切换也增加了 Laya_Aaron • 2018-02-08 20:1...

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

130. ScrollRect设置会引起其他的UI资源无法正在显示 [ 52%]

...id { trace("[TestView.StartMove]") // TODO Auto Generated method stub Laya.timer.loop(100,this,UpdatePath,[len]); } private function UpdatePath(len:int):void { // TODO Auto Generated method stub var show:int = len -1; for(var i=0;i<len;i++){ if(arr[i]){ arr[i].x+= speed; if(arr[i].x>= show* PA...

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