大约有 520 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0045 秒)
Laya_社区(399) Laya2.0_文档(39) Laya3.0_api(32) Laya_示例(19) Laya3.0_文档(15) Laya2.0_示例(9) laya_api(5) Laya2.0_api(2)
...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
...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
....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
... 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
...象返回。</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
...好的,导入手机里就不行了- - 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
...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
...PS的一些问题咨询! 想将以前的页游项目转成h5 Laya.loader.create 进度回调函数执行两次 drawTexture 画出来的数据会有以前的数据 问题状态 最新活动: 2017-07-18 10:10 浏览: 706 关注: 2 人
来源: Laya_社区 发布时间: 20170717
...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
...,使用对象池创建子弹 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