大约有 520 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0048 秒)
Laya_社区(399) Laya2.0_文档(39) Laya3.0_api(32) Laya_示例(19) Laya3.0_文档(15) Laya2.0_示例(9) laya_api(5) Laya2.0_api(2)
...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
...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
...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
...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
...源,加载后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
...,不能加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
... 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
...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
...博 QZONE 微信 kylin 赞同来自: 第813行 Config.FunRestart=Handler.create(this,this.on重启); 定义的变量、函数名等,不要出现中文等非ASCII字符,变量的命名最好要符合规范。 LayaAirIDE里的压缩工具会分析代码,类似的中文命名的变量,通不...
来源: Laya_社区 发布时间: 20180806