大约有 520 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0042 秒)
Laya_社区(399) Laya2.0_文档(39) Laya3.0_api(32) Laya_示例(19) Laya3.0_文档(15) Laya2.0_示例(9) laya_api(5) Laya2.0_api(2)
Texture.create截取一张图片的区域纹理后怎么把这个区域纹理保存成新的图片, var texture = Laya.Texture.create(this._headBitmapData, 100, 100, 200, 200);怎么获取texture的图片base64数据,或者是图片数据。用texture.bitmap.src获取的图片数据还是原图...
来源: Laya_社区 发布时间: 20170925
...stage.addChild(gameWorld); // 初始化物理引擎 engine = Matter.Engine.create( { enableSleeping: true }); Matter.Engine.run(engine); var render = LayaRender.create( { engine: engine, width: 800, height: 600, options: { background: '../../res/physics/img/background.png', wireframes: false } }); L...
来源: Laya_示例 发布时间: 20251209
...d("../../res/threeDimen/staticModel/LayaPlane/LayaPlane.lh")); Laya.loader.create([ "../../res/threeDimen/scene/Arena/Arena.ls", "../../res/threeDimen/staticModel/LayaPlane/LayaPlane.lh" ], Laya.Handler.create(this, onComplete)); function onComplete() { setMaterials(scene.getChildByName("scene")); l...
来源: Laya_示例 发布时间: 20251209
...p.png", clas: Laya.Texture2D, priority: 1, params: [true] } ]; Laya.loader.create(resource, Laya.Handler.create(this, onLoadFinish)); function onLoadFinish() { //初始化3D场景 this.scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/TerrainScene/XunLongShi.ls")); //删除原...
来源: Laya_示例 发布时间: 20251209
...url: "res/MainMenu.fui", type: laya.net.Loader.BUFFER } ], Handler.create(this, this.onLoaded)); 资源加载能用其他方式吗? 不可能一个一个加载吧 2019-11-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...
来源: Laya_社区 发布时间: 20191107
List表单renderHandler问题 通过Handler.create()方法创建的渲染函数中,只会在表单第一格渲染时调用一次,便再也不被调用。而通过new Handler()创建的则一切正常。请问这是为啥啊= = 2018-07-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20180704
matter用Render.create()创建渲染器时里面参数因该放在options[]里还是放到外面 附件 : --> 2019-01-06 添加评论 悬赏 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被折叠 ...
来源: Laya_社区 发布时间: 20190106
..., -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); Laya.loader.create("../../res/threeDimen/staticModel/lizardCal/lizardCaclute.lh", Laya.Handler.create(this, onComplete)); function onComplete() { var monster1 = this.scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticModel/liz...
来源: Laya_示例 发布时间: 20251209
...WDT/bin/main/SMain.ls) extension with: ls. at LoaderManager.__proto._create (file:///E:/LayaAir/ZJKZWDT/bin/libs/laya.core.js:12981:11) at LoaderManager.__proto.create (file:///E:/LayaAir/ZJKZWDT/bin/libs/laya.core.js:12969:21) at Function.Scene.load (file:///E:/LayaAir/ZJKZWDT/bin...
来源: Laya_社区 发布时间: 20180523
... if(!this.tempRect){ this.tempRect = Rectangle.create(); } if (this.cacheRect) this.cacheRect.recover(); this.cacheRect = null; return this; } _calculateCacheRect...
来源: Laya_社区 发布时间: 20210615