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

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

211. 直接new sprite 跟graphics.drawTexture 有什么区别 [ 70%]

...集区别在哪? var 与 name 的详细区别是什么? Laya.Handler.create和new Laya.Handler有啥区别 LayaAir使用AS语言能直接挂断点吗? 关于几种文本的区别与用法 3d支持直接调手机的拍照和上传功能吗 Mesh.load()必须加载lm文件吗?lm和lh等有什...

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

212. TileMap有明显的bug [ 70%]

...前面。   该bug尝试了2.0,依旧存在。   该bug尝试了cocoscreator引擎,cocoscreator不会发生这个bug。   附上测试的代码(javascript):var WebGL = laya.webgl.WebGL; Laya.init(1920, 1080, WebGL); function _OnMapCreate() { console.log("map create ..."); } var viewRect...

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

213. Laya tiledmap 监听事件未响应 [ 70%]

...       this.tiledMap = new Laya.TiledMap();          this.tiledMap.createMap("resource/tiledMap/isometric_grass_and_water.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(this, this.mapLoaded), null, new Point(1600, 800));      }      private mapLoaded():...

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

214. 2.0版API“loadImage”改了吗? [ 70%]

....0版API“loadImage”改了吗? sp.loadImage(_img, 0, 0, 0, 0, Handler.create(this, function(){                 trace("complete!!");   为何没有complete出现??  另外,有没有1.0和2.0 API更新对照表? 2018-10-09 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

215. 3d场景下载出错 [ 70%]

3d场景下载出错 loader.create  这个接口 能否支持不创建3Dscene对象, 或者新扩展一个接口  只下载对应的3D资源. 不创建3DScene, 因为 当网络异常的时候资源会下载失败,但是底层还是会创建3D对象, 底层一定会报错  {"message":"gameThirdSc...

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

216. 在脚本里自定义IDE属性预制体数组类型获取的结果不对 [ 70%]

...目是都导出json文件了,用prefab内容也是json的。 Laya.loader.create("prefab/car.json",Handler.create(this,onCar)); public function onCar(obj:Object):void{ var spr:Prefab = new Prafab();              spr.json=obj;             var car:Sprite = Pool.getItemByCreate...

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

217. app构建后在真机中运行报错 [ 70%]

...;     /**     *通过预制创建实例     */     __proto.create=function(){         if (this.json)return SceneUtils.createByData(null,this.json);         return null;     }      return Prefab; })() 附件 : --> 2018-11-02 添加评论 免费帖 --> 分享 ...

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

218. 3d坐标 转2d坐标 报错 我的 版本 是mac 和版本有关系么 [ 70%]

.../Documents/myLaya/demopos/src/script/GameUI.ts:38:25)     at SceneLoader.create (/Users/yons/Documents/myLaya/demopos/bin/libs/laya.core.js:22073:12)     at EventHandler.__proto.run (/Users/yons/Documents/myLaya/demopos/bin/libs/laya.core.js:1393:27)     at SceneLoader.__proto.event (/Users/yo...

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

219. rigidBody.applyForce 对刚体应用力,物体没有移动 [ 70%]

...    Laya.Texture2D.load("res/threeDimen/Physics/rocks.jpg", Laya.Handler.create(this, function (tex) {             this.mat1.albedoTexture = tex;         }));         Laya.Texture2D.load("res/threeDimen/Physics/plywood.jpg", Laya.Handler.create(this, function (tex) {           ...

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

220. 关联shader的uniform(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 70%]

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