大约有 32 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0035 秒)
...ement; for(var i:int = 0,n:int = _html._childs.length;i < n;i++) { tHTMLElement = _html.getChildAt(i) as HTMLElement; if(tHTMLElement) {...
来源: Laya_社区 发布时间: 20170307
...ng) { console.log('switchAnimation: ' + this.meshes.length); let anitemplet = this.anies[name]; for (let mesh of this.meshes) { let ani = mesh.getComponentByType(SkinAnimations, 0) as SkinAnimations; ...
来源: Laya_社区 发布时间: 20170608
...:cannot read property 'width' of null TypeError: Cannot read property 'length' of null Laya.stage报null 问题状态 最新活动: 2017-03-23 19:56 浏览: 1347 关注: 2 人 palgerrard • 2017-03-23 20:31 ok,其实还是有可能出现空的。
来源: Laya_社区 发布时间: 20170323
...: 1048 关注: 1 人 标 • 2018-05-14 15:36 n 的值大于 this._childs.length 的值,然后报错。 标 • 2018-05-14 15:47 偶然会报错。偶尔不会
来源: Laya_社区 发布时间: 20180514
...nt:HTMLElement; for(var i:int = 0,n:int = div._childs.length;i < n;i++) { tHTMLElement = div.getChildAt(i) as HTMLElement; if(tHTMLElement) { ...
来源: Laya_社区 发布时间: 20170314
...了 var mesh:Laya.MeshSprite3D; for(var i =0;i<this.sprite3D._childs.length;i++){ mesh = this.sprite3D.getChildAt(i) as Laya.MeshSprite3D; mesh.meshRender.material = material; mesh.meshRender.receiveShadow = true; mesh.meshRender.castShadow = true; console.log(mesh.name) } 附件 : --> 2017-11...
来源: Laya_社区 发布时间: 20171110
... var ape:Sprite = new Sprite; ape.x=(apesCtn._childs.length)*(stageWidth/4) var bl:Number=texture.width/texture.height ape.graphics.drawTexture(texture,0,0,stageWidth/4,stageWidth/4/bl); apesCtn.addChild(ape); ...
来源: Laya_社区 发布时间: 20161023
...er.sharedMaterial = customMaterial; } for (var i = 0, n = spirit3D._childs.length; i < n; i++) setCustomMaterial(spirit3D._childs[i]); } function initShader() { var attributeMap = { 'a_Position': Laya.VertexElementUsage.POSITION0, 'a_Normal': Laya.VertexElementUsage.NORMAL0, 'a_Texcoord0': Laya.Vert...
来源: Laya_示例 发布时间: 20251209
...; { agent.destination = pos; let paths = agent.getCurrentPath(); if (paths.length >= 2) { let points: any = [] paths.forEach((point) => { points.push(point.pos.x, point.pos.z); }); this._temp.graphics.drawLines(0, 0, points, "#00000030", 5); } }) this.hit.pos(pos.x, pos.y); } } 这样,鼠标...
来源: Laya3.0_文档 发布时间: 20251010
...g; var tHTMLElement:HTMLElement; for(var i:int = 0,n:int = htmlDiv._childs.length;i < n;i++) { tHTMLElement = htmlDiv.getChildAt(i) as HTMLElement; if(tHTMLElement) { tTxt= tHTMLElement.text; if(tTxt) { txt += tTxt; } } } trace("文本内容为"+txt); trace("文本的实际宽度为"+htmlDiv.cont...
来源: Laya_社区 发布时间: 20161027