大约有 13 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0067 秒)
....stage.on(Laya.Event.CLICK, this, function(res:Laya.Event){ if (res.target instanceof Laya.Button){ // click button } }) 2018-12-01 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 183*****288 相关问题 两个对象new了一个相同的...
来源: Laya_社区 发布时间: 20180706
...inAnimation动画组件 function addSkinComponent(spirit3D) { if (spirit3D instanceof Laya.MeshSprite3D) { var meshSprite3D = spirit3D; var skinAni = meshSprite3D.addComponent(Laya.SkinAnimations); skinAni.templet = Laya.AnimationTemplet.load(skinAniUrl[0]); skinAni.player.play(); } for (var i = 0, ...
来源: Laya_示例 发布时间: 20260930
...e) return; var dialog = this.getChildAt(this.numChildren - 1); if ((dialog instanceof laya.ui.Dialog)) dialog.close("side"); } cheche062 • 2017-12-21 16:31 就此埋下一个坑。。。 灬懂不丨懂丿 • 2018-10-10 23:53 真的没明白 155*****359 • 2018-04-14 20:34 实例化窗...
来源: Laya_社区 发布时间: 20170316
...function() { var extendStatics = Object.setPrototypeOf || { __proto__: [] }instanceof Array && function(d, b) { d.__proto__ = b } || function(d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p] } ; return function(d, b) { extendStatics(d, b); function __() { this.constructor = d } ...
来源: Laya_社区 发布时间: 20171212
...ra.renderTarget; }); })); } function setMaterials(spirit3D) { if (spirit3D instanceof Laya.MeshSprite3D) { var meshSprite = spirit3D; for (var i = 0; i < meshSprite.meshRender.sharedMaterials.length; i++) { var mat = meshSprite.meshRender.sharedMaterials[i]; mat.disableLight(); } } for (var i = 0; i...
来源: Laya_示例 发布时间: 20260930
...象列表里添加2d显示对象,我看3d的addChild源码 if (!((node instanceof laya.d3.core.Sprite3D ))) throw new Error("Sprite3D:Node type must Sprite3D."); 是不支持的,请问有其他方式么? 麟。 • 2018-09-12 18:44 我的目的是想2d的ui可以有3d的坐标系Tran...
来源: Laya_社区 发布时间: 20180912
...var i = 0; i < this._childs.length; i++){ var e = this._childs[i]; if(e instanceof HTMLElement && e._text.words){ for(var j = 0; j < e._text.words.length; j++){ var w = e._text.words[j]; w.y = (this.height - tArray[1])/2 + w.y; } }else{ e.y = (this.height - tArray[1])/2 + e.y; } } } } ...
来源: Laya_社区 发布时间: 20180104
... if(this._scene.lightCullingMask && this._scene.lightCullingMask instanceof Function){this._scene.lightCullingMask(scene,this);} 3、对想要开启灯光裁剪的场景调用 LightCullingMask.enableLightCullingMask(scene3d)即可 //注意 ExtCullingMask并不是针对对象进行,而是...
来源: Laya_社区 发布时间: 20200110
...= 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
...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