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

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

311. 怎么像canvas那样做到每次循环去清空一次画布,我发现每次画的时候他会把上一次的坐标也画出来,导致变形了,该如何让他每次累加的同时清空上次的路径 [ 47%]

...default class Scene extends Laya.Sprite{ constructor(){ super(); Laya.init(500, 300, Laya.WebGL); var bg = new Laya.Sprite(); bg.loadImage("comp/hunter.jpg"); this.addChild(bg); Laya.timer.frameLoop(1,this,this.move); // drawSomething(); } move() { sp = new Laya.Sprite(); Laya.stage.addChild(sp); //...

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

312. 1.7.20.1beta 编译并导出到微信开发者工具无法运行 [ 47%]

...了报的错不一样,其他的症状和你一样。我报的错是大于500kb,code.js压缩,这样一个警告。然后黑屏,不编译,,,   2018-09-07 0 1 分享 微博 QZONE 微信 段文杰 赞同来自: 我刚下载了laya,测试下,出现了这个问题,我先清了所有...

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

313. 从Unity中编辑并导出摄像机(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 47%]

...aAir3D { public function LayaAir3D() { //初始化引擎 Laya3D.init(1000, 500,true); //适配模式 Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; //开启统计信息 Stat.show(); //预加载角色动画资源 Laya.loader.create("monkey/monkey.ls",Handler.creat...

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

314. 自定义panel类问题 [ 46%]

...g_uiScroll); m_talkScroll = new UIScroll(610.0, 250); m_talkScroll.pos(60, 500); this.addChild(m_talkScroll);     2017-11-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Monica - 知识达人 赞同来自: 应...

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

315. 模拟石头下落过程不明抖动 [ 46%]

...ssage); // }; // Game.inst.start(); setInterval( this.addball.bind( this ),500); } public addball(){ for( let i:number = 0 ; i < 6; i++){ let ball = this.getObj(); ball.x = (i%6) *150 ball.y = -200 Laya.Tween.to( ball,{y: 1500 } ,5000,Laya.Ease.linearOut,Laya.Handler.create(this,this.removeball,[...

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

316. UI模式下Dialog标签嵌套RadioGroup会导致编辑器卡死 [ 46%]

...导致编辑器卡死 <Dialog width="725" sceneColor="#000000" height="500" editorInfo="compId=1"> <Image y="46" x="0" width="687" skin="setting/gd2_n.png" sizeGrid="30,30,30,30" height="402" editorInfo="compId=4"> <Image y="0" x="241.5" skin="setting/log18-5_n.png" editorInfo="compId...

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

317. 求指点3d射线碰撞和UI点击穿透的问题 [ 46%]

...取所有检测碰撞到的物体 Physics.rayCastAll(ray, _outHitAllInfo, 500, 0);   这是通过屏幕当前鼠标位置获取一条射线碰撞集合,然后我又创建了一个Button,点击Button时发现射线也响应了,如何能让点击UI时不进行射线碰撞检测呢?谢谢 2018...

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

318. layaAir3.0适配导致应用重启的重大bug,急急急! [ 45%]

... 2、本来以为是内存的问题,但是在某些场景GPUMemory达到500MB以上、TextureMemory达到300MB以上,横竖来回切换又不出现此现象;           3、fixedauto模式在切换的时候,会自动申请内存,40-70mb不等,目前不同场景测试出来的,感...

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

319. LayaBox HelloWorld实战 [ 45%]

... World!'; button.name = Laya.Dialog.CLOSE; button.width=260; button.height=500; button.pos(35, 35); dialog.addChild(button); dialog.dragArea = '0,0,300,600'; dialog.show(); } onEnable() { this.btnShow.on(Laya.Event.CLICK,this,this.onBtnShowClick); } onDisable() { } } 是不是以为到了这一步...

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

320. 分享:销毁龙骨动画! [ 45%]

... mArmature = mFactory.buildArmature(0); mArmature.x = 400; mArmature.y = 500; mArmature.scale(0.5, 0.5); Laya.stage.addChild(mArmature); mArmature.on(Event.STOPPED, this, completeHandler); play(); } private function completeHandler():void { play(); } private function play():void { mCurrIndex++; if (...

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