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

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

41. 新手引导在ios浏览器表现异常 [ 47%]

...   if (button) {                     if (button instanceof Laya.Button) {                         if (button.clickHandler) {                             button.clickHandler.run();                   ...

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

42. VR的demo有没有加载3D场景的啊,实在不知怎么加 [ 43%]

...t3D, renderMode, albedo, ambientColor, uvScale, shaderName) { if (spirit3D instanceof Laya.MeshSprite3D) { var meshSprite = spirit3D; var mesh = meshSprite.meshFilter.sharedMesh; if (mesh) { //可采用预加载资源方式,避免异步加载资源问题,则无需注册事件。 for (var i = 0; ...

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

43. Laya2自动同步cullingMask方案以及灯光裁剪补丁 [ 41%]

... if(this._scene.lightCullingMask && this._scene.lightCullingMask instanceof Function){this._scene.lightCullingMask(scene,this);} 3、对想要开启灯光裁剪的场景调用 LightCullingMask.enableLightCullingMask(scene3d)即可 //注意 ExtCullingMask并不是针对对象进行,而是...

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

44. 3D粒子 · LayaAir3.4 · 引擎文档 · LAYABOX [ 36%]

... < len; i++) { var child:Node = this._particle.getChildAt(i); if (child instanceof Laya.ShuriKenParticle3D) { this._shuriKenParticle3D.push(child); this._shurikenParticleSystem.push(child.particleSystem); } } this.addChild(this._particle); this._isInited = true; } //粒子特效播放,由于一...

来源: Laya3.0_文档 发布时间: 20251010

45. 3D粒子编辑模块 · LayaAir3文档 · LAYABOX [ 36%]

... < len; i++) { var child:Node = this._particle.getChildAt(i); if (child instanceof Laya.ShuriKenParticle3D) { this._shuriKenParticle3D.push(child); this._shurikenParticleSystem.push(child.particleSystem); } } this.addChild(this._particle); this._isInited = true; } //粒子特效播放,由于一...

来源: Laya3.0_文档 发布时间: 20250104

46. 正常运行的2.1升级到2.2.0出现循环依赖的错误,这是咋回事丫 ? [ 35%]

...t就没了。  无法去掉的import主要是类似 new B, extends B, instanceof B, 以及静态成员访问B.stM 这种形式 例如上面的改成 b=new B() 就真的是循环了。 对于真正的循环可以通过引入一个接口对象等方式解决。这个就要看具体项目了。  ...

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

47. Laya中Button等组件lose skin的问题 [ 33%]

...oreCache===void 0)&& (ignoreCache=false);         if ((url instanceof Array))return this._loadAssets(url,complete,progress,type,priority,cache,group);         var content=Loader.getRes(url);         if (content !=null){             Laya.timer.frameOnce(1,n...

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

48. 对游戏中各种控件字体样式使用“白鹭style”样式表 [ 31%]

...完成之后的回调函数 if (item.onComplete && item.onComplete instanceof Laya.Handler) { item.onComplete.runWith(content); } if (!content) success = false; if (loadedCount === itemCount && complete) { complete.runWith(success); } } function loadProgress(item, value) { if (progre...

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

49. UI运行时 · LayaAir3.4 · 引擎文档 · LAYABOX [ 28%]

...= 0; i < ui.numChildren; i++) { let child = ui.getChildAt(i); if (child instanceof Laya.Button) { console.log("发现Button"); this.onButtonScaleEvent(child); } else { //查找子节点 this.searchButton(child); } } } //处理按钮缩放事件 onButtonScaleEvent(target: Laya.Button) { target.on(...

来源: Laya3.0_文档 发布时间: 20251010

50. 自定义shader-地形shader [ 25%]

...ne.getChildAt(2)); }); function setCustomMaterial(spirit3D) { if (spirit3D instanceof Laya.MeshSprite3D) { var meshSprite3D = spirit3D; var customMaterial = new CustomTerrainMaterial(); customMaterial.setSplatAlphaTexture(Laya.Texture2D.load("../../res/threeDimen/scene/terrain/terrain/splatalpha 0.p...

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