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

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

91. image的uv动画不能平铺 [ 90%]

..._bitmap.source.uv; var uv:any[] = []; uv[0] = ss[0] + 2/this.testScrollImg.width; uv[1] = ss[1]; uv[2] = ss[2] + 2/this.testScrollImg.width; uv[3] = ss[3]; uv[4] = ss[4] + 2/this.testScrollImg.width; uv[5] = ss[5]; uv[6] = ss[6] + 2/this.testScrollImg.width; uv[7] = ss[7]; this.testScrollImg._bitmap...

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

92. UI-ComboBox [ 90%]

...() { var cb = createComboBox(skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) / 2, 100); cb.autoSize = false; } function createComboBox(skin) { var comboBox = new ComboBox(skin, "item0,item1,item2,item3,item4,item5"); comboBox.labelSize = 30; comboBox.itemSize = 25; comboBox.selectHan...

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

93. UI-Input [ 90%]

...发语言、LayaAirIDE让项目开发更高效。let SPACING = 100, INPUT_WIDTH = 300, INPUT_HEIGHT = 50, Y_OFFSET = 50, skins; class UI_Input { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动...

来源: Laya2.0_示例 发布时间: 20260303

94. 区块地图-滚动地图 [ 90%]

...tion() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.scaleMode = Stage.SCALE_FULL; Stat.show(); createMap(); Laya.stage.on(Event.MOUSE_DOWN, this, mouseDown); Laya.stage.on(Event.MOUSE_UP, this, mouseUp); })(); //创建地图 func...

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

95. 弹窗视图组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 89%]

...场景类继承而来。 拖动区域 dragArea 拖动区域(格式:x,y,width,height),默认值为"0,0,0,0" 模式窗口 isModal 是否是模式窗口,默认为false。为模式窗口时,点击弹窗空白处,可自动关闭该弹窗 显示弹窗效果 isShowEffect 是否显示弹出效...

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

96. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 89%]

...area.w; this._doll_area.h = doll_area.h; }  // 设置容器的宽高 this.width = Math.max( this._blood_area.w, this._demon_area.w, this._doll_area.w );  this.height = this._blood_area.h + this._demon_area.h + this._doll_area.h;  this.graphics.drawRect( 0, 0, this.width, this.height, null, "#ff00...

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

97. 关于缓动函数from的一些问题记录 [ 89%]

...r letterText = new Laya.Text(); letterText.text ="hello world"; letterText.width = 400; letterText.height = 200; letterText.fontSize = 36; letterText.align = "center"; letterText.valign = "middle"; var offsetPos={offsetX:100,offsetY:100}; letterText.x = Laya.stage.width - letterText.width>>1 +...

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

98. UI-RefreshList [ 89%]

...加场景中需要使用的资源 this.baseBox = new Box(); this.baseBox.width = 443; this.baseBox.height = 622; this.baseBox.pos(30, 28); this.baseBox.bgColor = "#ffffff"; // 加载进度条 this.refreshLoading = new Box(); this.refreshLoading.pos(133, 0); this.refreshLoading.bottom = 10; this.refr...

来源: Laya2.0_示例 发布时间: 20260303

99. tiledmap有时尺寸不正确 [ 89%]

...._mTiledMap.createMap(conf.fileName + ".json", new Rectangle(0, 0, Browser.width, Browser.height), Handler.create(this, this.onCompleteHandler)); } /** * 销毁当前地图 */ public destroy():void{ if (this._mTiledMap) this._mTiledMap.destroy(); if (this._mLevelConf) this._mLevelConf = null; this._...

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

100. UI-Input [ 89%]

...ndler = Laya.Handler; var WebGL = Laya.WebGL; var SPACING = 100; var INPUT_WIDTH = 300; var INPUT_HEIGHT = 50; var Y_OFFSET = 50; var skins; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CEN...

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