大约有 103 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0034 秒)
...e = new Laya.Image(); image.texture = new Laya.Texture(videoTexTure); this.addChild(image); image.pos(100,100); }); 2024-03-04 1 1 分享 微博 QZONE 微信 phhh 赞同来自: 2d播放视频要事件触发 2023-08-25 0 1 分享 微博 QZONE 微信 木易楊 赞同来自: 尝试过是否是微信限...
来源: Laya_社区 发布时间: 20230825
...1754, 0.7341046333312988); let scene: Laya.Scene = new Laya.Scene(); scene.addChild(camera); scene.addScript(SceneScript); Laya.stage.addChild(scene); } } new GameMain(); g02test.zip 2018-02-01 0 0 分享 微博 QZONE 微信 qian 赞同来自: 自己new的摄像机和射线检测误差没有关系 ...
来源: Laya_社区 发布时间: 20180201
...? let fly = Laya.Pool.getItemByCreateFun("fly", this.fly, this); owner.addChild(fly); fly.play(0, true, "ani1"); fly() { let ani = new Laya.Animation(); ani.loadAnimation("plaen4.ani"); return ani; } 这样写是可以正常播放,但是会有这个警告 ani not found: plaen4.ani#ani1 201...
来源: Laya_社区 发布时间: 20181105
...10 0 0 分享 微博 QZONE 微信 时光123 赞同来自: 使用Laya.stage.addchild. 或。this.owner.addChild 一样的错 2022-08-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 时光123 相关问题 缓动...
来源: Laya_社区 发布时间: 20220809
...keleton = new SpineSkeleton(); this.skeleton.templet = templet; this.owner.addChild(this.skeleton); this.skeleton.pos( this.pageWidth / 2, this.pageHeight / 2 + 100); this.skeleton.scale(0.4, 0.4); this.skeleton.on(Laya.Event.STOPPED, this, this.play); this.play(); }); } private play(): void { if (+...
来源: Laya_社区 发布时间: 20230703
...er = new Laya.Handler(this, this.onChangeColor, [colorPicker]); this.owner.addChild(colorPicker); this.onChangeColor(colorPicker); } private onChangeColor(colorPicker: Laya.ColorPicker, e: any = null): void { console.log(colorPicker.selectedColor); } } 运行效果如下动图所示: (动图2-1...
来源: Laya3.0_文档 发布时间: 20251010
....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
...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
...label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor; } this.owner.addChild(label); return label; } } 效果预览: (图2-1) Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:59 img{cursor:pointer}
来源: Laya3.0_文档 发布时间: 20251010
...e.texture.sourceHeight = Laya.stage.height; //添加2D精灵, this.owner.addChild(this.spRole); this.spRole.pos(0, 0); this.spRole.size(Laya.stage.width, Laya.stage.height); }); 2025-01-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无...
来源: Laya_社区 发布时间: 20250109