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

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

751. 3D场景销毁后,仍有引用存在,内存中场景及引用其的对象无法销毁 [ 41%]

... this.m_cur_scence.destroy();//销毁场景 this.m_cur_scence = null; Laya.Resource.destroyUnusedResources();//销毁无用资源(没有被场景树引用,并且没有加资源锁的) if(Laya.Browser.onMiniGame) Laya.Browser.window.wx.triggerGC(); 2019-12-10 0 0 分享 微博 QZONE 微信 小程序K...

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

752. [LayaAirIDE3]Laya3.2.1命令行打包,编译错误也生成成功 [ 40%]

...or: Game is not defined at /C:/Users/God/AppData/Local/Programs/LayaAirIDE/resources/app.asar/game.js:2 importing ~/internal/Box.lm importing ~/internal/Capsule.lm importing ~/internal/Cone.lm importing ~/internal/Cylinder.lm importing ~/internal/Plane.lm native tools encoding set to cp936 importing...

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

753. 关于大量图片加载绘制后的内存暴增的疑问 [ 40%]

... package { import laya.display.Sprite; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; import laya.utils.Stat; import laya.webgl.WebGL; public class Demo { private var num:Number=0;//加载图片的个数 private var sp:Sprite;//显示图片的显示对象容器 priv...

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

754. 求ShuriKenParticle3D用法 [ 40%]

...r() {             let material = ShurikenParticleMaterial.load("resources/Assets/ArtResources/Effects/Materials/Effect_yu_jinbi_xulie.lmat");             super(material);             {                 let s = this.particleSystem;            ...

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

755. 自定义场景继承导出,会在自定义类中加入Laya.前缀导致layaMaxUI文件报错 [ 40%]

...改为自己使用的版本! /Applications/LayaAirIDE_beta.app/Contents/Resources/app/out/vs/layaEditor/h5/layabuilder.max.js 用windows的同学请自行找目录哈。 2.找到下面代码,具体行号不同版本可能不一样,仅供参考     24522                         if...

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

756. laya.d3.core.material.PBRSpecularMaterial [ 40%]

... class PBRSpecularMaterialInheritancePBRSpecularMaterial BaseMaterial laya.resource.Resource PBRSpecularMaterial 类用于实现PBR(Specular)材质。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By  albedoColor : Vector4 获取反射率颜...

来源: Laya2.0_api 发布时间: 20190513

757. Laya2.6、2.7等支持async、await编译经验分享 [ 40%]

...l": ".", "paths": { "tslib": [ "/Applications/LayaAirIDE_beta.app/Contents/Resources/app/node_modules/tslib/tslib.d.ts", "tslib/tslib.d.ts" ] }, "lib": [ "esnext", "dom", "es2015.promise" ] } } 此时就要考虑转es5了,拿微信小游戏来说,wxgame.json配置里面打开es6toes5"useMinJsLib...

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

758. 鼠标交互-拖动 [ 40%]

....Stage; import laya.events.Event; import laya.maths.Rectangle; import laya.resource.Texture; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class Interaction_Drag { private const ApePath:String = "../../../../res/apes/monkey2.png"; private var ape:Sprite; priva...

来源: Laya_示例 发布时间: 20251209

759. laya.d3.core.material.PBRStandardMaterial [ 40%]

... class PBRStandardMaterialInheritancePBRStandardMaterial BaseMaterial laya.resource.Resource PBRStandardMaterial 类用于实现PBR(Standard)材质。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By  albedoColor : Vector4 获取漫反射颜...

来源: Laya2.0_api 发布时间: 20190513

760. laya 2.0.1 下的 release-v2.0.2 layadcc热更新不了资源 [ 39%]

...de项目 5. 把第2步生成的layadccout下cache目录拷贝至xcode下的resource目录 6. 把第1步发布的所有文件上传至“http://xxx.xxx.com/”目录下 7. 把第3步生成的update目录上传至“http://xxx.xxx.com/”目录下 8. 在xcode下编译生成并运行游戏,可以正...

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