大约有 1,254 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0069 秒)
Laya_社区(850) Laya2.0_文档(116) Laya3.0_api(79) Laya2.0_api(73) laya_api(68) Laya3.0_文档(54) Laya2.0_示例(8) Laya_示例(6)
...rite(); ccc.graphics.drawRect(0,0,50,50,'#123000'); this.addChild(ccc); //ccc.x = -30 } Laya.class(layaSlot,null,Sprite); 代码是这样的 我的想法是 在viewport之外的 应该是不会显示的 在viwport之内显示的应该是会显示的 但是实际上...
来源: Laya_社区 发布时间: 20170323
如何添加对象到DialogManager层以上 例如我 Laya.stage.addChild(Sprite) 一个显示对象。但是dialogmanager自己有层级交换,一会儿刚addChild的Sprite就到dialogManager下一层了 有什么办法解决吗 2019-01-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20190112
...位置不正确问题 在loader资源完成的回调里首次 Laya.stage.addChild(new 页面1);然后调用laya.utils.Utils.getGlobalPosAndScale(Laya.stage); 打印缩放值, 移动端很大几率值是1,ios基本每次都是 这会导致首屏页面里的html元素调用 Laya.Utils.fitDOMElemen...
来源: Laya_社区 发布时间: 20170823
...统计信息 // Laya.Stat.show(); //添加3D场景 this.scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene; //添加照相机 this.camera = (this.scene.addChild(new Laya.Camera(0, 0.1, 100))) as Laya.Camera; this.camera.transform.translate(new Laya.Vector3(0, 3, 3)); this.camera.transform.r...
来源: Laya_社区 发布时间: 20180307
场景调用offAll会报错。 代码: scene = new Scene(); Laya.stage.addChild(scene); scene.offAll(); Laya.stage.removeChild(scene); scene = new Scene(); Laya.stage.addChild(scene); scene.offAll(); Laya.stage.removeChild(scene); scene = new Scene(); Laya.stage.addChild(scene); Laya.stage.remo...
来源: Laya_社区 发布时间: 20180913
...aded)); function onLoaded(){ var aa = new Sprite(); Laya.stage.addChild(aa); var texture = new Laya.Texture(); texture.load('comp/zzw.png' ); setTimeout( function(){ aa.graphics.drawTexture(texture,0,0); }, 1000 ) } 3Q 2017-12-26 添加评论 免费...
来源: Laya_社区 发布时间: 20171226
...('img/bg/tip_center_bg.png'); img.anchorX = 0.5; img.anchorY = 0.5; dialog.addChild(img); dialog.popup(); 版本是1.7.3 beta 2017-04-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: dial...
来源: Laya_社区 发布时间: 20170420
...dth >> 1, Laya.stage.height -bg.height >> 1); //加载到舞台 Laya.stage.addChild(bg); } /***创建计数器切片***/ private function createCounter():void { //实例化计数器切片 counter = new Clip(clipSkin, 10, 1); //自动播放 counter.autoPlay = true; //播放间隔时间1秒 counter.in...
来源: Laya2.0_文档 发布时间: 20210714
...l(); boxRender.sharedMaterial = boxMaterial; // 添加到场景 this.scene.addChild(box); // 设置位置 box.transform.position = new Laya.Vector3(2.0, 0.25, 0.6); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); /* 球体 */ let sphere = new Laya.Sprite3D; let sphereMesh = sphere.ad...
来源: Laya3.0_文档 发布时间: 20251010
...var testView:TestView = new TestView(); Laya.stage.addChild(testView); fairygui.UIPackage.addPackage ( "res/Bag" ); Laya.stage.addChild ( fairygui.GRoot.inst.displayObject ); fairygui.GRoot.inst.addChil...
来源: Laya_社区 发布时间: 20180513