大约有 1,617 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0064 秒)
Laya_社区(1208) Laya2.0_文档(194) Laya_示例(55) Laya3.0_api(49) Laya3.0_文档(43) Laya2.0_示例(43) 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
...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
...缓存了一个场景用到的所有资源,但是下载完用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
...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
...象返回。</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