大约有 53 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0058 秒)
... if (button) { if (button instanceof Laya.Button) { if (button.clickHandler) { button.clickHandler.run(); ...
来源: Laya_社区 发布时间: 20200119
...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
... if(this._scene.lightCullingMask && this._scene.lightCullingMask instanceof Function){this._scene.lightCullingMask(scene,this);} 3、对想要开启灯光裁剪的场景调用 LightCullingMask.enableLightCullingMask(scene3d)即可 //注意 ExtCullingMask并不是针对对象进行,而是...
来源: Laya_社区 发布时间: 20200110
... < 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
... < 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
...t就没了。 无法去掉的import主要是类似 new B, extends B, instanceof B, 以及静态成员访问B.stM 这种形式 例如上面的改成 b=new B() 就真的是循环了。 对于真正的循环可以通过引入一个接口对象等方式解决。这个就要看具体项目了。 ...
来源: Laya_社区 发布时间: 20190730
...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
...完成之后的回调函数 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
...= 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
...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