大约有 1,614 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0047 秒)
Laya_社区(1206) Laya2.0_文档(194) Laya_示例(55) Laya3.0_api(49) Laya2.0_示例(43) Laya3.0_文档(42) Laya2.0_api(13) laya_api(12)
...og 代码如下: Laya.loader.load(["res/atlas/comp.atlas"], Laya.Handler.create(this, function(){ console.log("load atals ok"); var dlg1:ui.TestDlgUI = new ui.TestDlgUI(); Laya.stage.addChild(dlg1); dlg1.show(); }));在微信小游戏的模拟器上是正常的,但是在手机上就看不到UI...
来源: Laya_社区 发布时间: 20180525
Sprite graphics的显示比例问题 function createCharacter(skin) { var character = new Laya.Sprite(); character.loadImage(skin, 0, 0, 200, 200, Laya.Handler.create(this, function () {console.log('KO!~'); })); character.graphics.drawLine(0, 200, 200, 0, "#ff0000", 1); character.graphics.drawLine(...
来源: Laya_社区 发布时间: 20170828
....TiledMap(); var viewRect:Laya.Rectangle = new Laya.Rectangle(); this.tMap.createMap("res/TiledMap/orthogonal-test-movelayer.json",viewRect,Laya.Handler.create(this,this.onMapLoaded)); this.tMap.scale = 1; var ape = new Laya.Sprite(); Laya.stage.addChild(ape); ape.loadImage("res/lhg.png"); ape.po...
来源: Laya_社区 发布时间: 20180514
...Laya.loader.load([{url:"res/213.part",type:Laya.Loader.JSON}],Laya.Handler.create(this,this.onAssetsLoaded)); } onAssetsLoaded(){ let pg = Laya.loader.getRes("res/213.part"); let pd = new Laya.Particle2D(pg); } }213.part是设计模式下生成 附件 : --> 2018-11-20 添加评论 免费帖 --> ...
来源: Laya_社区 发布时间: 20181120
... 赞同来自: Uncaught TypeError: Cannot read property 'layaMotionState_create' of undefined at Rigidbody3D._onAdded (libs/laya.d3.js:4824) at MeshSprite3D._addComponentInstance (libs/laya.core.js:13911) at MeshSprite3D.addComponent (libs/laya.core.js:13958) at Function._cre...
来源: Laya_社区 发布时间: 20201204
...缓存了一个场景用到的所有资源,但是下载完用Laya.loader.create 去打开这个场景时,这个时候,又去http请求网络资源了。这个是为啥呢。应该怎么去用这个缓存文件?难道需要自己去构建Laya.Scene? Laya_Aaron • 2018-07-04 17:36 @Mr.余:你...
来源: Laya_社区 发布时间: 20180704
...: 2 人 fftidus • 2017-07-30 10:55 我想添加一个方法,把handler.create功能绑定进去,让fun()直行的时候自动判断是否直行handler fftidus • 2017-07-30 10:57 因为目前项目里传入方法做参数,执行的时候都需要判断是Function还是Handler,很繁琐 Mo...
来源: Laya_社区 发布时间: 20170730
...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...
来源: Laya2.0_文档 发布时间: 20210715
...tly extends base class static side 'typeof Texture'. Types of property 'create' are incompatible. Type '(w: number, h: number, surfaceFormat?: number, surfaceType?: number, depthStencilFormat?: number,...' is not assignable to type '(source: any, x: number, y: number, width: number, height:...
来源: Laya_社区 发布时间: 20170721
...中的container去掉了,不知道该怎么用了 engine = Matter.Engine.create( { enableSleeping: true, render: { container: gameWorld, controller: LayaRender, options: { width: stageWidth, height: stageHeight, wireframes: false } } }); 2017-01-06 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20170106