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

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

211. load 粒子的时候永远出错 [ 72%]

load 粒子的时候永远出错 永远报这个错误:Warning!,this class[MiniAdpter] already exist: Object {} [warn]Retry to load: res/rotate.part [error]Failed to load: res/rotate.part   我的代码:   Laya.loader.load("res/rotate.part", Handler.create(this, this.onAssetsLoaded),null,Laya...

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

212. 粒子-粒子演示1 [ 72%]

...r = "#232628"; Stat.show(); Laya.loader.load(partPath, Laya.Handler.create(this, this.onAssetsLoaded), null, Loader.JSON); } onAssetsLoaded(settings) { // 当load数组的时候,回调函数传入的参数不再是资源,可以通过以下方法获取资源 // let settings = Laya.loader.getRes(p...

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

213. UI-RadioGroup [ 72%]

...../../res/ui/radioButton (3).png"]; Laya.loader.load(skins, Handler.create(this, initRadioGroups)); })(); function initRadioGroups() { for (var i = 0; i ; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = ...

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

214. [LayaAir3]laya3.3正式版废弃了_cacheStyle,fgui还有用到他咋办 [ 72%]

...上的_cacheStyle,fgui的GObject的internalVisible属性,还调用了this._displayObject._cacheStyle.maskParent,咋改下 2025-07-30 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 不吃大米 赞同来自: ...

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

215. ReferenceError: Loader is not defined 搞不懂引擎原生的也会报这个错? [ 72%]

...每次获取组件带来不必要的性能开销 thi   s._loveControl = this.getComponent(LoveControl);  //点击提示文字,开始游戏 this.label_start.on(Laya.Event.CLICK, this, this.onTipClick); //this._loveControl.startGame();  //点击重置按钮,重新开始 this.button_reset.on(Lay...

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

216. Sprite-遮罩-放大镜 [ 72%]

...olor = "#232628"; Laya.loader.load([bgPath, maskPath], Laya.Handler.create(this, this.setup)); } setup() { const Sprite = Laya.Sprite; let bgRes = Laya.loader.getRes(bgPath), maskRes = Laya.loader.getRes(maskPath); let bg = new Sprite(); Laya.stage.addChild(bg); bg.graphics.drawTexture(bgRes); let b...

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

217. 聊天消息对话框中new一个HTMLDivElement 报错"Illegal constructor",请问这个该怎么处理? [ 72%]

...eView extends Laya.Box{ textfield : any = null; constructor(){ super(); // this.initLineView(); } public initLineView (data) : void { this.pos(0,0); console.log(this.textfield); if (this.textfield == null) { var stextfield = new HTMLDivElement(); } } 2018-07-09 添加评论 免费帖 --> 分享 微...

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

218. 横竖屏切换,此引擎渲染有BUG [ 72%]

... 横竖屏切换,此引擎渲染有BUG Laya.stage.on(Laya.Event.RESIZE, this, this.OnresizeFn); Laya.stage.alignH = "center";//"left";  Laya.stage.alignV = "middle";//"top";  Laya.stage.screenAdaptationEnabled=true;   oldWith: number = 0; oldheight: number = 0; HengPing(isFirst: boolean): void ...

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

219. UI-ComboBox [ 72%]

...ALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(skin, Handler.create(this, onLoadComplete)); })(); function onLoadComplete() { var cb = createComboBox(skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) / 2, 100); cb.autoSize = false; } function createComboBox(skin) { var comboBox ...

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

220. Sprite-轴心点 [ 72%]

... Laya.stage.height / 2); Laya.stage.addChild(sp2); Laya.timer.frameLoop(1, this, animate); } function animate(e) { sp1.rotation += 2; sp2.rotation += 2; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL...

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