大约有 115 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0048 秒)
...fffff'; //将文本内容添加到舞台 Laya.stage.addChild(txt); } } } ``` **步骤三**:完成代码编写后,使用之前定义的编译快捷键(Alt+F5),把AS3代码编译成HTML5。  图(10) 编译完成后,编...
来源: Laya2.0_文档 发布时间: 20210715
...unction() { this.loadLayer = new Lload(); this.big.addChild(this.loadLayer); var imgArr = ; imgArr.push({url:"cont/cpf1.jpg",type:Loader.IMAGE}); imgArr.push({url:"cont/cpr1.jpg",type:Loader.IMAGE}); imgArr.push({url:"cont/cps1...
来源: Laya_社区 发布时间: 20160815
...教: soundManager如何停止正在播放的背景音乐 用Laya.stage.addChild(new testUI());后,原来让页面还在运行 怎么停止正在运行Laya.timer.frameLoop的回调函数 背景音乐问题,停止与播放状态与InnerAudioContext对象不同步 为什么编辑环境下的ui文...
来源: Laya_社区 发布时间: 20170330
... bg.skin = "res/img/loadingBg.jpg"; Laya.stage.addChild(bg); //实例一个文本 txt = new Text(); txt.text = "适配模式("+modes+") "; txt.bold = true; txt.pos(10, 350); ...
来源: Laya2.0_文档 发布时间: 20200307
...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_文档 发布时间: 20250103
...020-05-15 01:43 浏览: 3332 关注: 9 人 彪 • 2020-04-06 10:50 小球.addChild(摄像机) 微笑着拒绝 • 2020-04-14 20:44 大佬,你这个摄像机是怎么实现跟随刚体的呢,求帮助... 时光机器 • 2019-10-20 08:48 怎么才能同步呢?放同父物体下会导致摄像头...
来源: Laya_社区 发布时间: 20190528
... bg.skin = "res/img/loadingBg.jpg"; Laya.stage.addChild(bg); //实例一个文本 txt = new Text(); txt.text = "适配模式("+Stage.SCALE_EXACTFIT+") "; txt.bold = true; txt.pos(1...
来源: Laya2.0_文档 发布时间: 20200307
... bg.skin = "res/img/loadingBg.jpg"; Laya.stage.addChild(bg); //实例一个文本 this.txt = new Text(); this.txt.text = "适配模式("+this.modes+") "; this.txt.bold = true; thi...
来源: Laya2.0_文档 发布时间: 20200307
...CC"; this.text.x=Math.random()*550; this.text.y=Math.random()*400; textBox.addChild(this.text); } Laya.stage.addChild(textBox); } } 下面是笔者电脑上的运行时截图,FPS稳定于52上下。 (图2-1) 当我们对文字所在的容器设置为cacheAs之后,如下面的例子所示,...
来源: Laya3.0_文档 发布时间: 20240910
...体 txt.font = mFontName; txt.fontSize = 50; txt.leading = 5; Laya.stage.addChild(txt); } ``` ### **Text 类中相关接口:** **registerBitmapFont () 方法** public static function registerBitmapFont(name:String, bitmapFont:BitmapFont):void 注册位图字体。 参数 name:String — 位图字...
来源: Laya2.0_文档 发布时间: 20201114