大约有 1,491 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0068 秒)
Laya_社区(917) Laya2.0_文档(193) Laya_示例(125) Laya2.0_示例(101) Laya3.0_api(79) Laya3.0_文档(72) laya_api(2) Laya2.0_api(2)
....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
...ndex++; if (index >= views.length) { img.mask = imgMask; } })); imgMask.addChild(tmpMask); 附件 : --> 2020-06-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 157*****593 赞同来自: 哪个版本...
来源: Laya_社区 发布时间: 20200619
... } this.addChild(tSprite); this._gridSpriteArray.push(tSprite); this._objDic[tObjectData.name] = tSprite; ...
来源: Laya_社区 发布时间: 20220627
... 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
...写。 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
....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
...() * 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
...ew = pkgs[0].createObject("View"); console.log(view); this.owner.addChild(view.displayObject); }); } 我提出的問題是,Fairygui編輯器和Laya編輯器,使用BlendMode和濾鏡的效果不相同。 格局豬 - 趙唐豬豬 • 2025-09-08 12:29 我重新描述問題 需求: 面板...
来源: Laya_社区 发布时间: 20250829
...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
... 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