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

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

281. 昨天一开始运行好好的,没动别的,运行就开始报错 [ 62%]

...shader compilation failed with skip optimization flags. (ps_5_0) Failed to create D3D shaders.   我蒙了,用Chrome调试还按不出F12的console模式,是用layaair调试出来的。我只知道和shader有关,但找不出错误来,请大神们帮忙看看。SkiingTest2包是LayaIDE2.5.0...

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

282. Android替换游戏启动logo看不到设置的图片 [ 62%]

...ya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 var testView:TestView = new TestView(); Laya.stage.addChild(testView); __JS__("if(window.conch)") { dd=__JS__("window.loadingView"); dd.loading(10...

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

283. 鼠标交互-Hold [ 62%]

....stage.bgColor = "#232628"; Stat.show(); Laya.loader.load(apePath, Handler.create(this, this.createApe)); } createApe() { const Sprite = Laya.Sprite, Event = Laya.Event; this.ape = new Sprite(); this.ape.loadImage(apePath); let texture = Laya.loader.getRes(apePath); this.ape.pivot(texture.width / 2,...

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

284. 打包APK运行,drag拖动出现问题;color="#0"程序直接崩溃 [ 62%]

...        Laya.loader.load([GameConfig.getAssetsFile("comp")],Handler.create(this, onComplet));                          }         private var imag:Image;         private function onComplet():void         {             imag=new Image("ui/comp/image.pn...

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

285. 对象池 · LayaAir3.3 · 引擎文档 · LAYABOX [ 62%]

...象返回。</p> * @param sign 对象类型标识字符。 * @param createFun 用于创建该类型对象的方法。 * @param caller this对象 * @return 此类型标识的一个对象。 */ static getItemByCreateFun(sign: string, createFun: Function, caller: any = null): any { var pool: any[...

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

286. 小游戏导入手机后Sprite.Mask没有正常显示 [ 62%]

...好的,导入手机里就不行了- -   Laya.loader.load(url, Handler.create(this, function () { var t = Laya.loader.getRes(url) var sp = new Sprite() sp.graphics.drawTexture(t, 0, 0, 80, 80) that.addChild(sp)  var cMask = new Sprite() cMask.graphics.drawCircle(40, 40, 37, "#ff0000") sp.mask = c...

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

287. 预加载图集文集在小游戏端导致内存过高 [ 62%]

...ng.json", type: Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded1)); 使用这种方法动态加载资源导致内存很高,该怎么办? 和官网推荐的material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); box.meshRender.material = material; L...

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

288. 以前问题的进度咨询 [ 62%]

...PS的一些问题咨询! 想将以前的页游项目转成h5 Laya.loader.create 进度回调函数执行两次 drawTexture 画出来的数据会有以前的数据 问题状态 最新活动: 2017-07-18 10:10 浏览: 706 关注: 2 人

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

289. laya.physics.js:430 Cannot read property 'GetType' of null [ 62%]

...2d.b2Fixture.GetType (laya.physics.js:430)     at box2d.b2ContactFactory.Create (laya.physics.js:576)     at box2d.b2ContactManager.AddPair (laya.physics.js:586)     at box2d.b2BroadPhase.UpdatePairs (laya.physics.js:308)     at box2d.b2ContactManager.FindNewContacts (laya.physics.js:584)  ...

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

290. bug,ChainCollider.points第二次设置,会报错! [ 62%]

...,使用对象池创建子弹 let flyer: Laya.Sprite = Laya.Pool.getItemByCreateFun("bullet", this.bullet.create, this.bullet); flyer.pos(Laya.stage.mouseX, Laya.stage.mouseY); this._gameBox.addChild(flyer); this._chains.points="35,35,80,80";     //****新增代码*****,需增加private _chain...

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