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

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

91. sound manager在MOUSE_OVER事件中无法播放 [ 82%]

...GL时自动切换至Canvas             Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL);              Laya.stage.alignV = Stage.ALIGN_MIDDLE;             Laya.stage.alignH = Stage.ALIGN_CENTER;              Laya.stage.scaleMode = "...

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

92. Text的中划线(删除线) [ 82%]

...awUnderline=function(align,x,y,lineIndex){             var lineWidth=this._lineWidths[lineIndex];             switch (align){                 case 'center':                     x-=lineWidth / 2;                     break...

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

93. Sprite-缓存为静态图像 [ 81%]

...andom() * 360; text.color = "#CCCCCC"; text.x = Math.random() * Laya.stage.width; text.y = Math.random() * Laya.stage.height; textBox.addChild(text); } //缓存为静态图像 textBox.cacheAsBitmap = true; Laya.stage.addChild(textBox); } })();module laya { import Sprite = Laya.Sprite; import Stage =...

来源: Laya_示例 发布时间: 20260303

94. layaUI.max.all.js 这个文件怎么生成的? [ 81%]

..."child":[{"props":{"x":0,"y":0,"skin":"comp/bg.png","sizeGrid":"30,4,4,4","width":600,"height":400},"type":"Image"},{"props":{"x":41,"y":56,"skin":"comp/button.png","label":"点我赋值","width":150,"height":37,"sizeGrid":"4,4,4,4","var":"btn"},"type":"Button"},{"props":{"x":401,"y":56,"skin":"comp...

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

95. 水平滚动条组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 81%]

...his.hscroll.skin = "atlas/comp/hscroll.png";//滚动条皮肤 this.hscroll.width = 300;//滚动条的宽度 this.hscroll.pos(300, 300);//滚动条的位置 this.hscroll.min = 0;//滑块的最小滚动位置 this.hscroll.max = 10;//滑块的最大滚动位置 this.hscroll.scrollSize = 1;//点击按...

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

96. Sprite中的width,height和size(width,height)感觉没作用啊 [ 81%]

Sprite中的width,height和size(width,height)感觉没作用啊 我的图片是800*600,懒得修改图片,想在程序中直接修改图片显示大小,可是貌似显示的还是800*600。width,height,size(width,height)是我理解问题,还是我写错了呢。。。。 ...

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

97. laya.ui.Dialog_API3.0 [ 81%]

...bg:Image = new Image("resource/ui/bg.png"); bg.sizeGrid = "40,10,5,10"; bg.width = 150; bg.height = 250; addChild(bg); var image:Image = new Image("resource/ui/image.png"); addChild(image); var button:Button = new Button("resource/ui/btn_close.png"); button.name = Dialog.CLOSE;//设置button的name...

来源: Laya3.0_api 发布时间: 20231115

98. rigidBody.applyForce 物体不会移动 [ 81%]

...aterial = material; //设置文本显示框位置 this.text.x = Laya.stage.width / 2 - 50; //显示文本显示框 this.text = new Laya.Text(); this.text.overflow = Laya.Text.HIDDEN; this.text.color = "#FFFFFF"; this.text.font = "Impact"; this.text.fontSize = 24; this.text.x = (Laya.stage.width / 5)...

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

99. laya.ui.Tree_API3.0 [ 81%]

...对象的属性 y 的值,用于控制 tree 对象的显示位置。 tree.width = 200;//设置 tree 的宽度。 tree.height = 100;//设置 tree 的高度。 Laya.stage.addChild(tree);//将 tree 添加到显示列表。 } } } import laya.ui.Box; import laya.ui.Clip; import laya.ui.Label; class Item...

来源: Laya3.0_api 发布时间: 20231115

100. 版本号:2.0.2 beta, 在sound文件夹下音乐播放不了,放入到res文件夹下可播放 [ 81%]

...n: Sprite = this.createButton("播放音效"); soundButton.x = (Laya.stage.width - soundButton.width * 2 + gap) / 2; soundButton.y = (Laya.stage.height - soundButton.height) / 2; Laya.stage.addChild(soundButton);  //创建一个Sprite充当音乐播放按钮 var musicButton: Sprite = this.createBut...

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