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

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

251. 滤镜-模糊滤镜 [ 68%]

...howall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Handler.create(this, createApe)); })(); function createApe() { var ape = new Sprite(); ape.loadImage(apePath); ape.x = (Laya.stage.width - ape.width) / 2; ape.y = (Laya.stage.height - ape.height) / 2; Laya.stage.addChild(ape); applay...

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

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

...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

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

...,使用对象池创建子弹 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

254. 这个GetType=null的问题有大神解答下吗 [ 68%]

...myLaya/test/bin/libs/laya.physics.js:430:204)   at box2d.b2ContactFactory.Create (file:///D:/Documents/myLaya/test/bin/libs/laya.physics.js:576:81)   at box2d.b2ContactManager.AddPair (file:///D:/Documents/myLaya/test/bin/libs/laya.physics.js:586:140)   at box2d.b2BroadPhase.UpdatePairs (file:///...

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

255. list图片路径没问题.为什么图片就是不显示.啊啊啊也,求解答 [ 68%]

...temRender = FurnitureItemCell; this._furnitureList.renderHandler = Handler.create(this, this.__renderFurnitureItem, null, false); this._furnitureList.repeatX = 5; this._furnitureList.repeatY = 3; this._furnitureList.vScrollBarSkin = ""; this._furnitureList.array = []; this..addChild(this._...

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

256. 3d模型资源,加载后AddChild会报错,请教一下什么原因。 [ 68%]

...源,加载后AddChild会报错,请教一下什么原因。 Laya.loader.create("laya_assert/LayaScene_role/role.lh", Handler.create(_instance, OnCreateComplete1)); private static function OnCreateComplete1():void{ trace("complete load role"); var sprite3D:Sprite3D = Laya.loader.getRes("laya_asser...

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

257. httpReqest读取数据问题 [ 68%]

...,不能加return json;参考例子:Laya.loader.load("1.js",Handler.create(this,function(data:*):void{ Browser.window.eval(data); var obj = __JS__('json'); trace("ddd"); }),null,Loader.TEXT);   2016-11-02 0 0 分享 微博 QZONE 微信 Wx122065323 赞同来自: 虽然用这种方法能够获...

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

258. js继承模式 [ 68%]

... function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var BackGround = (function() { __extends(Class, Laya.Sprite); function Class() { Laya.Sprite.call(this); this.img = []; this.init(); } Class.prototype.init = function() {...

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

259. ShaderPass介绍(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 68%]

...Model/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", Laya.Handler.create(this, function(mesh) { var layaMonkey = scene.addChild(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, ...

来源: Laya2.0_文档 发布时间: 20210715

260. 使用js压缩工具报错 [ 68%]

...博 QZONE 微信 kylin 赞同来自: 第813行 Config.FunRestart=Handler.create(this,this.on重启); 定义的变量、函数名等,不要出现中文等非ASCII字符,变量的命名最好要符合规范。   LayaAirIDE里的压缩工具会分析代码,类似的中文命名的变量,通不...

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