大约有 2,311 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0069 秒)
Laya_社区(1514) Laya2.0_文档(259) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(80) Laya3.0_文档(75) Laya2.0_api(74) laya_api(70)
...apMode = 2; //播放模式为pingpong播放模式(PINGPONG) this.owner.addChild(Animation) //添加节点 } } 效果如动图3-1所示: (动图3-1) Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:54 img{cursor:pointer}
来源: Laya3.0_文档 发布时间: 20251010
...tends Laya.Script { onAwake(): void { let img = new Laya.Image; Laya.stage.addChild(img); img.pos(500,100); img.skin = "resources/layabox.png"; //纹理压缩的图片的路径 } onStart() { Laya.Stat.show(0, 0); //性能面板 } } 发布后,使用的图片就是压缩后的图片了。 3.2 图集...
来源: Laya3.0_文档 发布时间: 20251010
...1.ls", Laya.Handler.create(this, function(scene){ this._scene = Laya.stage.addChildAt(scene, 0); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 1, 0)); camera.addComponent(CameraMoveScript); })); } ``` 我们点击加载场景,再来看状...
来源: Laya2.0_文档 发布时间: 20210715
...e3D: Laya.PixelLineSprite3D = new Laya.PixelLineSprite3D(3500); this.scene.addChild(sphereLineSprite3D); //设置像素线渲染精灵线模式 Tool.linearModel(sphere, sphereLineSprite3D, Laya.Color.GREEN); } 到此,像素线代码部分就介绍完了,往往我们也可以对一个外部模型...
来源: Laya3.0_文档 发布时间: 20251010
...m url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance advanceTime bubbleEvent callLater clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce...
来源: Laya3.0_api 发布时间: 20231115
...m url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fromParentP...
来源: Laya3.0_api 发布时间: 20231115
... Inherited Public Methods Show Inherited Public Methods MethodDefined By addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node clearAll():void 清理 TileAniS...
来源: laya_api 发布时间: 20170929
...t visible width x y zOrder Methods _initialize _processActive addAniSprite addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearAll clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fr...
来源: Laya3.0_api 发布时间: 20231115
...touren.lm"); var wolf = new Laya.SkinnedMeshSprite3D(wolfmesh); this.scene.addChild(wolf);抛出异常信息见附件 附件 : --> 2018-02-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 14 个回复 qian 赞同来自...
来源: Laya_社区 发布时间: 20180202
...Loaded(){ //实例UI界面 var testView = ui.test.TestPageUI(); Laya.stage.addChild(testView); } ``` `WorkerLoader.workerPath = "libs/worker.js";`设置worker.js的路径,这个worker.js是Laya官方提供的,我们把他拷贝复制到我们自己设置的路径,这个js在Laya的引擎库当...
来源: Laya2.0_文档 发布时间: 20210715