• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 114 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0043 秒)

71. FlashDevelop中第一个程序“Hello Layabox”(ActionScript-LayaAir基础篇(AS3)-快速上手) [ 63%]

...fffff';         //将文本内容添加到舞台     Laya.stage.addChild(txt);   }  } } ``` ​ **步骤三**:完成代码编写后,使用之前定义的编译快捷键(Alt+F5),把AS3代码编译成HTML5。 ​ ![图片](img/10.png) ​ 图(10) ​ 编译完成后,编...

来源: Laya2.0_文档 发布时间: 20210715

72. 加载的时候动画会卡 [ 63%]

...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

73. 显卡驱动停止响应,且大概率蓝屏,原来是Handler惹的祸,但原因是什么 [ 61%]

...教: soundManager如何停止正在播放的背景音乐 用Laya.stage.addChild(new testUI());后,原来让页面还在运行 怎么停止正在运行Laya.timer.frameLoop的回调函数 背景音乐问题,停止与播放状态与InnerAudioContext对象不同步 为什么编辑环境下的ui文...

来源: Laya_社区 发布时间: 20170330

74. 屏幕适配的缩放模式详解(JavaScript-2D基础篇(JS)-屏幕适配) [ 61%]

...     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

75. vivo小游戏 · LayaAir3.0文档 · LAYABOX [ 61%]

...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_文档 发布时间: 20240926

76. 摄像机跟随刚体移动,刚体出现抖动。 [ 60%]

...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

77. 屏幕适配的缩放模式详解(ActionScript-2D基础篇(AS3)-屏幕适配) [ 60%]

...     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

78. 屏幕适配的缩放模式详解(TypeScript-2D基础篇(TS)-屏幕适配) [ 60%]

...     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

79. 2D性能优化 · LayaAir3.0文档 · LAYABOX [ 59%]

...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_文档 发布时间: 20231008

80. 位图字体的制作与使用(JavaScript-LayaAir基础篇(JS)-文本) [ 59%]

...体 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