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

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

61. Texture.create截取一张图片的区域纹理后怎么把这个区域纹理保存成新的图片, [ 82%]

Texture.create截取一张图片的区域纹理后怎么把这个区域纹理保存成新的图片, var texture = Laya.Texture.create(this._headBitmapData, 100, 100, 200, 200);怎么获取texture的图片base64数据,或者是图片数据。用texture.bitmap.src获取的图片数据还是原图...

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

62. 物理引擎-Slingshot [ 82%]

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

63. 高级应用-渲染纹理 [ 82%]

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

64. 高级应用-寻路导航 [ 82%]

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

65. laya接入fairyGUI的时候资源加载方式? [ 82%]

...url: "res/MainMenu.fui", type: laya.net.Loader.BUFFER }     ], Handler.create(this, this.onLoaded)); 资源加载能用其他方式吗? 不可能一个一个加载吧 2019-11-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

66. List表单renderHandler问题 [ 82%]

List表单renderHandler问题 通过Handler.create()方法创建的渲染函数中,只会在表单第一格渲染时调用一次,便再也不被调用。而通过new Handler()创建的则一切正常。请问这是为啥啊= = 2018-07-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

67. matter用Render.create()创建渲染器时里面参数因该放在options[]里还是放到外面 [ 82%]

matter用Render.create()创建渲染器时里面参数因该放在options[]里还是放到外面 附件 : --> 2019-01-06 添加评论 悬赏 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被折叠 ...

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

68. 材质-BlinnPhong-法线贴图 [ 81%]

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

69. 加载unity导出场景失败 [ 81%]

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

70. _calculateCacheRect函数有bug [ 81%]

...   if(!this.tempRect){                 this.tempRect = Rectangle.create();             }             if (this.cacheRect)                 this.cacheRect.recover();             this.cacheRect = null;             return this;         }   _calculateCacheRect...

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