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

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

611. BlinnPhong材质详解(TypeScript-3D基础(TS)-模型材质详解) [ 56%]

...xture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置材质纹理 material.albedoTexture = texture; })); earth2.meshRenderer.material = material; ``` ![](img/4.png)(图4) ##### 法线贴图 **Normal maps(法线贴图)**是一个灰度图,可以将...

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

612. 微信开发者工具里播放音乐报错 [ 55%]

...错Invalid value used as weak map key;at audioContext.oncanplay callback function TypeError: Invalid value used as weak map key 2018-01-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Laya_Aaron 赞同来自: qi...

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

613. 关于stage的size问题 [ 55%]

...p.json", type: Loader.ATLAS }], Laya.Handler.create(this, this.onLoaded)); function onLoaded(): void { var sprite = new Laya.Sprite(); sprite.loadImage('comp/bg.png'); Laya.stage.addChild(sprite); } 上面这段代码如果把Laya.stage.size这行的注释去掉,运行时不能正常显示图片...

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

614. 关于多个小动画打包到一个图集动画的问题 [ 55%]

...现一个报错 laya.core.js:4467 Uncaught TypeError: url.indexOf is not a function 如果我单纯只想拿一张小图的话就不会报错,是可以执行的,请问这里的错误会是什么原因 cuixueying • 2017-04-18 11:02 你预加载之后,不需要再去除texture了,直接用...

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

615. 骨骼动画的使用(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 55%]

...("res/LayaScene_LayaMonkey/Conventional/LayaMonkey.ls",Handler.create(this,function(s:Scene3D):void{ Laya.stage.addChild(s); })); ``` ![](img/6.gif)(图6)

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

616. 自适应问题 [ 55%]

...ttp://localhost/layabox/layabox/layabox/res/bg.png'", Handler.create(this, function () {         var t = Laya.loader.getRes(skin);         var _sprite = new Sprite();         _sprite.graphics.drawTexture(t, 0, 0);         Laya.stage.addChild(_sprite); }); 但是出来的效果是这...

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

617. 怎么调用缓动动画的暂停方法?(JS) [ 55%]

...样暂停缓动报错啊, Uncaught TypeError: Laya.Tween.pause is not a function

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

618. 调用时间轴动画丢失皮肤问题? [ 55%]

...oad("res/atlas/comp.json", Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("XXXXX1.ani"); //添加到舞台 Laya.stage.addChild(tl); //播放Animation动画 tl.play(); q...

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

619. HTMLIframeElement加载html网页的问题 [ 55%]

...s/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); }运行会报错:见图:   求解~!   附件 : --> TestHtml.zip 2017-10-11 添加评论 免费帖 --> 分享...

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

620. 使用laya官方示例代码制作微信小游戏无法显示 [ 55%]

..., Handler.create(null, beginLoad), Laya.ResourceVersion.FILENAME_VERSION); function beginLoad(){ Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); } function onLoaded(): void { //实例UI界面 new laya.UI_Label(); }   上图为在layaIDE中的显示效果。   不知道具...

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