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

大约有 226 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0050 秒)

71. Laya.loader.getRes的声音资源如何用Laya.SoundManager播放? [ 66%]

...览器播放mp3出现The AudioContext was not allowed to start. new Laya.Sprite();绘制形以后,怎么删除释放资源? 编辑了片 执行代码说加载不出来资源 这个是怎么回事? 播放背景音乐的问题 刚打开 桌面调试出现报错Uncaught (in promise) DOMExce...

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

72. 显示文本组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 66%]

...s() export class LabelControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.Label } ) public lab: Laya.Label; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { th...

来源: Laya3.0_文档 发布时间: 20251010

73. List组件的问题继续提问 [ 66%]

...是渲染器内部如果有几张大,拖动就肯定卡死了,而且sprite剧增是肯定的。我现在一个渲染器里面有一个背景,一个颜色边框,一个人物头像,这三张片都是300*500的大小。把这几张全部去掉可以基本平滑的滑动,但是仍...

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

74. LayaAir DebugPanel 调试工具(JavaScript-2D进阶篇(JS)-调试相关) [ 66%]

...//设置舞台背景色 Laya.stage.bgColor = "#ffffff"; var Img = new Laya.Sprite(); //添加到舞台 Laya.stage.addChild(Img); Img.loadImage("res/img/monkey1.png",200); ``` 运行效果如1所示 ![1](img/1.png) (1) ### 2、刷新显示对象节点树 默认状态下,显示对象节点...

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

75. 移动端适配,使用fixedwidth,一些手机下面会出现黑边,这个改怎么处理啊 [ 66%]

...tyPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale 分享:适配LayaAir版本的PureMVC框架 编译调试启动chrome出现错误: Error processing launch: Error Could not attach to main target La...

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

76. 新人求教!!! [ 66%]

...onkey2.png"; //切换状态 private flag:boolean = false; private img:Laya.Sprite; constructor() {       //初始化引擎       Laya.init(1334,750);      //设置舞台背景色      Laya.stage.bgColor = "#ffffff";      //加载多张片,在片资源加载成功后,通过...

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

77. 加载本地项目片资源 [ 66%]

...,然后把片放到"bin/res/atlas”下,  代码如下  var ape: Sprite = new Sprite();             Laya.stage.addChild(ape);             ape.loadImage("../../res/atlas/—.png"); 2017-11-08 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题...

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

78. 封装类的时候 怎么在类中表示自身? [ 65%]

...装类的时候 怎么在类中表示自身? class BackGround extends Laya.Sprite{ constructor() { super(); new init(); function init() { var bg1 = new Laya.Sprite(); var bg2 = new Laya.Sprite(); //背景 // box.loadImage("../bin/background.png"); // Laya.stage.addChild(box); bg1.loadImage("../bi...

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

79. Sprite设置mask属性为什么显示是透明的?怎样才能显示正常? [ 65%]

Sprite设置mask属性为什么显示是透明的?怎样才能显示正常? (function () { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var HitArea = Laya.HitArea; var WebGL = Laya.WebGL;  var red; var guideContainer; var tipContainer;  var hitArea; var interactionArea;  (function () { ...

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

80. SimpleButton不显示、Sprite的 buttonMode 无效 [ 65%]

SimpleButton不显示、Sprite的 buttonMode 无效        AS3 中的 SimpleButton 使用后 LayaFlash 编译完不显示,使用 AS3 中的 Sprite 仿写了一个根据状态切换背景的按钮类,编译后 buttonMode 与 useHandCursor 属性均无效,不能显示手型光标。  ...

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