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

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

161. WebGl下 graphics画出东西后 移动sprite 不起效果 [ 53%]

...wSomething()     {         sp = new Sprite();         Laya.stage.addChild(sp);               //绘制圆角矩形,自定义路径         sp.graphics.drawPath(0, 0, [             ["moveTo", 5, 0],             ["lineTo", 105, 0],             ["arcTo", 110, 0, ...

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

162. laya.d3.core.Sprite3D_API3.0 [ 53%]

...ildren parent scene timer transform url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getCompo...

来源: Laya3.0_api 发布时间: 20231115

163. 销毁 new 出的带有 PhysicsCollider 的正方体模型报错 [ 52%]

...new 出的带有 PhysicsCollider 的正方体模型报错 this.box = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(1, 1, 1))) as Laya.MeshSprite3D; this.box.addComponent(Laya.PhysicsCollider); this.box.destroy();引擎版本 LayaAirIDE2.0_beta.5 报错: Uncaught TypeError: Cannot read prop...

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

164. 我升级引擎到1.7.16beta,从Unity导入的模型就遇到问题了,可以帮我查看一下吗? [ 52%]

...tage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_CENTER; Laya.stage.addChild(Laya.Scene.load("res/LayaScene_Shark/Shark.ls")) as Laya.Sprite3D; } } new LayaAir3D(); 附件 : --> Shark.rar 2018-01-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

165. 使用官方文档中qrcode生成二维码的代码,打包APP后无效 [ 52%]

...", this, this.clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); } private clickHandler(): void { var url: string = this.qrcode._oDrawing._elImage.src;//获取,注意这里是异步的,开发者可以加个延时在获取。 this.qrcodeSp.loadImage(url, 0, 0, 1...

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

166. 使用以下代码打开超大分辨率图片 WebGL 模式无法正常显示 [ 52%]

...dImage("comp/hug.png"); //读取大分辨率图片 无法显示 Laya.stage.addChild(sp); } } new GameMain();//问题描述 客户要求使用LAYA引擎打开一张图片 可以随意拖动缩放, 由于图太大, 选择使用WebGL模式打开图片 以上代码当图片分辨率不太大时 正常...

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

167. 在开启webgl模式下,每次运行texture类的getPixels方法内存都会增加 [ 51%]

...,绘制到画布 this.img.skin = this.Res //添加到舞台 Laya.stage.addChild(this.img); } private cacheCanvas: Laya.HTMLCanvas private cacheTexture: Laya.Texture init(){ let rect = this.img.getSelfBounds() this.img.pivot(Math.round(rect.width / 2), Math.round(rect.height / 2)) let bound = this....

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

168. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 51%]

... bg.graphics.drawTexture(texture, 0, 0); //将bg添加到舞台 Laya.stage.addChild(bg);  我们再次刷新页面看看有什么效果   嗯 看来图片出来了~~~不错 现在我们可以开始继续了   //=======================  美丽的分割线 =======================   编写RunGame...

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

169. laya.d3.core.reflectionprobe.ReflectionProbe_API3.0 [ 50%]

...IndexInReflectionList _initialize _processActive _setIndexInReflectionList addChild addChildAt addChildren addComponent addComponentInstance addInputChild callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getCom...

来源: Laya3.0_api 发布时间: 20231102

170. Tween的to方法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个测试方法 [ 50%]

...x.x = Laya.Browser.width;     gamebox.visible = true;     Laya.stage.addChild(gamebox);     // Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,);     Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,Handler.create(this,onTweeed))     Tween.to(gamebox,{x:0},1000);     console...

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