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

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

601. 资源加载(TypeScript-3D基础(TS)-LayaAir3D之资源加载) [ 73%]

....create(null,function(scene){ //加载完成获取到了Scene3d Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); //清除摄像机的标记 camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight = scene.addChild(new Laya.Dir...

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

602. 图片设置mask有毛边 [ 73%]

...ndex++; if (index >= views.length) { img.mask = imgMask; } })); imgMask.addChild(tmpMask);       附件 : --> 2020-06-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 157*****593 赞同来自: 哪个版本...

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

603. 引擎 TiledMap 居然不支持图块翻转 [ 73%]

...             }                                 this.addChild(tSprite);                                 this._gridSpriteArray.push(tSprite);                                 this._objDic[tObjectData.name] = tSprite;                      ...

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

604. 列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 73%]

... list.renderHandler = new Laya.Handler(this, this.updateItem); this.owner.addChild(list); // 设置数据源为对应图片的路径 var data: any[] = []; for (var i: number = 0; i < 10; ++i) { data.push("resources/res/ui/listskins/1.jpg"); data.push("resources/res/ui/listskins/2.jpg"); data.push...

来源: Laya3.0_文档 发布时间: 20251010

605. 创建[HTMLDivElement]时遇到错误(手动实例一次本组件可定位错误) [ 73%]

...写。 this.contentDiv = new Laya.HTMLDivElement(); this.contentT.parent.addChild(this.contentDiv); this.contentDiv.x = this.contentT.x; this.contentDiv.y = this.contentT.y; this.contentDiv.width = this.contentT.width; this.contentDiv.height = this.contentT.height; this.contentDiv.style.width = this...

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

606. 按照范例写的碰撞一直检测不到 this.outHitInfo.distance [ 73%]

....scene = Laya.loader.getRes("h5/LayaScene_scene03/scene03.ls"); Laya.stage.addChild(this.scene); //设置场景在2D界面最后(最底层为第0层) Laya.stage.setChildIndex(this.scene, 0); //获取场景模型中的角色移动碰撞区模型 var moveArea = this.scene.getChildAt(0).getChildByN...

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

607. Sprite-缓存为静态图像 [ 73%]

...() * Laya.stage.width; text.y = Math.random() * Laya.stage.height; textBox.addChild(text); } //缓存为静态图像 textBox.cacheAsBitmap = true; Laya.stage.addChild(textBox); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Stat = Laya.St...

来源: Laya_示例 发布时间: 20251209

608. [LayaAir3]LayaAir3.3使用Fairygui开发UI,滤镜效果对不上 [ 73%]

...ew = pkgs[0].createObject("View"); console.log(view); this.owner.addChild(view.displayObject); }); } 我提出的問題是,Fairygui編輯器和Laya編輯器,使用BlendMode和濾鏡的效果不相同。 格局豬 - 趙唐豬豬 • 2025-09-08 12:29 我重新描述問題 需求: 面板...

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

609. H5页面的骨骼动画不能显示完整,兼容性问题? [ 73%]

...Factory.buildArmature(0); this.mArmature.x = 0; this.mArmature.y = 0; this.addChild(this.mArmature); this.mArmature.play(this.SWIM_RIGHT_ANI_NAME, true); Laya.timer.frameLoop(1, this, this.swim); }   在大部分浏览器都是OK的,但是在部分浏览器中,骨骼动画并不完整,动画...

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

610. 关于video [ 73%]

... Bg = new Sprite(); Bg.loadImage("../laya/assets/bg_back.png"); Laya.stage.addChild(Bg); Bg.on(Laya.Event.MOUSE_DOWN, this, function(){ // 创建Video元素 var videoElement = Laya.Browser.createElement("video"); Laya.Browser.document.body.appendChild(videoElement); // 设置Video元素地样式和...

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