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

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

1121. Dialog.show 的 showEffect参数在微信真机上的问题 [ 53%]

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

1122. Sprite graphics的显示比例问题 [ 53%]

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

1123. Tiled Map 为啥始终显示在最上面,求解 [ 53%]

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

1124. 2.0版本,Particle2D is not a constructor [ 53%]

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

1125. unity3d导出的刚体模型,加载报错 [ 53%]

... 赞同来自: 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

1126. 关联shader的uniform(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 53%]

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

1127. 调用facebook分享接口后,键盘失效,无响应? [ 53%]

...缓存了一个场景用到的所有资源,但是下载完用Laya.loader.create 去打开这个场景时,这个时候,又去http请求网络资源了。这个是为啥呢。应该怎么去用这个缓存文件?难道需要自己去构建Laya.Scene? Laya_Aaron • 2018-07-04 17:36 @Mr.余:你...

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

1128. 能不能提供一下AS3对应的playerglobal.swc的源码? [ 53%]

...: 2 人 fftidus • 2017-07-30 10:55 我想添加一个方法,把handler.create功能绑定进去,让fun()直行的时候自动判断是否直行handler fftidus • 2017-07-30 10:57 因为目前项目里传入方法做参数,执行的时候都需要判断是Function还是Handler,很繁琐 Mo...

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

1129. 升级到1.78beta版后,包编译错误 [ 53%]

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

1130. 对象池 · LayaAir3.4 · 引擎文档 · LAYABOX [ 53%]

...象返回。</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