大约有 1,493 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0053 秒)
Laya_社区(918) Laya2.0_文档(193) Laya_示例(125) Laya2.0_示例(101) Laya3.0_api(79) Laya3.0_文档(73) laya_api(2) Laya2.0_api(2)
...eError: tex.once is not a function 官方视频教程中飞机大战 "this.addChild is not a function" laya 2.0 微信小游戏排行榜提示wx.getFileSystemManager is not a function 问题状态 最新活动: 2017-09-29 19:16 浏览: 1077 关注: 2 人
来源: Laya_社区 发布时间: 20170929
...a.stage.bgColor = "#232628"; this.sp_video = new Laya.Sprite(); Laya.stage.addChild(this.sp_video);//添加到舞台 this.sp_video.pos(10,100); Laya.timer.loop(150, this, showframe); })(); function showframe() { var self = this; var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,com...
来源: Laya_社区 发布时间: 20170825
...h").then(res => { let girl : Laya.Sprite3D = res.create(); this.scene3D.addChild(girl); //获得Animator this._animator = girl.getComponent<Laya.Animator>(Laya.Animator); }); this.on( Laya.Event.MOUSE_DOWN, this, this.switchAni ); } switchAni(): void { if (this._isRun) { //播放对应的...
来源: Laya3.0_文档 发布时间: 20251010
...gt; { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) Laya.loader.loadPackage("sub2", this.printProgress).then(() => { Laya.loader.load("sub2/Sphere.lh").then((res: any) => { let sp3 = res.create(); this.scene3d.addChild(sp3); }); }) } printProgress(r...
来源: Laya3.0_文档 发布时间: 20251010
...r sp = new Laya.Sprite(); sp.graphics.drawTexture(texture,0,0); Laya.stage.addChild(sp); var ani: Laya.Animation = new Laya.Animation(); ani.loadAtlas("res/start.json"); // 加载图集动画 ani.interval = 30; // 设置播放间隔(单位:毫秒) ani.index = 1; // 当前播放索引 ani.play(...
来源: Laya_社区 发布时间: 20170329
...unction(scene:Scene3D):void { //加载完成获取到了Scene3d Laya.stage.addChild(scene); //获取摄像机 var camera:Camera = scene.getChildByName("Main Camera") as Camera; //清除摄像机的标记 camera.clearFlag = BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight:DirectionLight = ...
来源: Laya2.0_文档 发布时间: 20210715
...t(fontName); } createText(font) { let txt = new Laya.Text(); Laya.stage.addChild(txt); txt.width = 250; txt.wordWrap = true; txt.text = "Do one thing at a time, and do well."; txt.font = font; // 文本的字体名称,以字符串形式表示 txt.leading = 5; // 垂直行间距 txt.pos(Laya.sta...
来源: Laya_社区 发布时间: 20190221
...hics.drawTexture(new Laya.Texture(b)); Laya.stage.addChild(sp); let _picScale:number=1; //每点一下就缩小0.05倍 Laya.stage.on(Laya.Event.MOUSE_DOWN,this,()=>{ _...
来源: Laya_社区 发布时间: 20200422
... handler'); }); function clickHandler () { console.log('on click') } Stage.addChild(rightBtn); 请问一下,为什么事件不执行啊? 2018-03-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Monica - 知...
来源: Laya_社区 发布时间: 20180309
...=> { let sp = new Laya.Sprite(); sp.texture = res; sp.pos(0, 200); this.addChild(sp); });无法正常显示 检查发现 qg.downloadFile 报 error { "errCode": -3, "statusCode": 404, "errMsg": "com.nearme.instant.loopj.android.http.HttpResponseException" } ...
来源: Laya_社区 发布时间: 20250818