大约有 520 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0045 秒)
Laya_社区(399) Laya2.0_文档(39) Laya3.0_api(32) Laya_示例(19) Laya3.0_文档(15) Laya2.0_示例(9) laya_api(5) Laya2.0_api(2)
...集区别在哪? var 与 name 的详细区别是什么? Laya.Handler.create和new Laya.Handler有啥区别 LayaAir使用AS语言能直接挂断点吗? 关于几种文本的区别与用法 3d支持直接调手机的拍照和上传功能吗 Mesh.load()必须加载lm文件吗?lm和lh等有什...
来源: Laya_社区 发布时间: 20170811
...前面。 该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
... 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
....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
3d场景下载出错 loader.create 这个接口 能否支持不创建3Dscene对象, 或者新扩展一个接口 只下载对应的3D资源. 不创建3DScene, 因为 当网络异常的时候资源会下载失败,但是底层还是会创建3D对象, 底层一定会报错 {"message":"gameThirdSc...
来源: Laya_社区 发布时间: 20190515
...目是都导出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
...; /** *通过预制创建实例 */ __proto.create=function(){ if (this.json)return SceneUtils.createByData(null,this.json); return null; } return Prefab; })() 附件 : --> 2018-11-02 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20181102
.../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
... 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
...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