大约有 340 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0141 秒)
Laya_社区(97) Laya2.0_api(65) laya_api(62) Laya3.0_api(62) Laya2.0_文档(34) Laya_示例(12) Laya3.0_文档(7) Laya2.0_示例(1)
...ite = roleImg;//将自定义的layaSprite传入role 调用 role.layaSprite.getChildAt(0).alpha = 0;//Image实例1变透明 这样子可以实时改变作为基底的roleImg子节点上的图片的大小等参数,至于为什么不直接改变roleImg的参数,这个我试过,并不行。 2018-0...
来源: Laya_社区 发布时间: 20180827
...5, 0.5, 0.5); var aniSprite3d: Sprite3D = (<Sprite3D>this.layaMonkey.getChildAt(0)); //获取动画组件 var animator: Animator = (<Animator>aniSprite3d.getComponent(Animator)); //创建动作状态 var state: AnimatorState = new AnimatorState(); //动作名称 state.name = "run"; //动...
来源: Laya3.0_文档 发布时间: 20230303
...自身边界信息,从而避免比较消耗性能的计算。2.Sprite getChildAt(index:int):Node[override] 根据子节点的索引位置,获取子节点对象。 Panel getChildByName(name:String):Node[override] 根据子节点的名字,获取子节点对象。 Panel getChildIndex(chi...
来源: laya_api 发布时间: 20170929
...矩形显示区域。 注意:计算量较大,尽量少用。 Sprite getChildAt(index:int):Node[override] 根据子节点的索引位置,获取子节点对象。 Panel getChildByName(name:String):Node[override] 根据子节点的名字,获取子节点对象。 Panel getChildIndex(chi...
来源: Laya2.0_api 发布时间: 20190513
...mask='; for(let i = 0; i < target.numChildren; ++i){ let child = target.getChildAt(i); if(child.name.indexOf(prefix) == 0){ layerNodeName = child.name.replace(prefix,''); child.destroy(); break; } } if(!layerNodeName){ return; } let arr = layerNodeName.split('|'); this.removeAllLayers(target); fo...
来源: Laya_社区 发布时间: 20200110
...umChildren; i < n; i++) Tool.linearModel((<Laya.Sprite3D>sprite3D.getChildAt(i)), lineSprite3D, color); } constructor() { } } 3.4 代码使用 通过如下代码对工具类 Tool.linearModel 的使用,可以把一个 PixelLineSprite3D 对象的网格数据设置成像素线数据: onAwa...
来源: Laya3.0_文档 发布时间: 20251010
...exture drawToTexture3D event frameLoop frameOnce fromParentPoint getBounds getChildAt getChildByName getChildIndex getComponent getComponents getGraphicBounds getMousePoint getRepaint getSelfBounds get_height get_scaleX get_scaleY get_transform get_visible get_width globalToLocal hasHideFlag hasList...
来源: Laya3.0_api 发布时间: 20231102
...exture drawToTexture3D event frameLoop frameOnce fromParentPoint getBounds getChildAt getChildByName getChildIndex getComponent getComponents getGraphicBounds getMousePoint getRepaint getSelfBounds get_height get_scaleX get_scaleY get_transform get_visible get_width globalToLocal hasHideFlag hasList...
来源: Laya3.0_api 发布时间: 20231102
...一次某函数(基于帧率)。功能同Laya.timer.frameOnce()。 Node getChildAt(index:int):Node 根据子节点的索引位置,获取子节点对象。 Node getChildByName(name:String):Node 根据子节点的名字,获取子节点对象。 Node getChildIndex(node:Node):int 根据子节点...
来源: Laya2.0_api 发布时间: 20190513
...一次某函数(基于帧率)。功能同Laya.timer.frameOnce()。 Node getChildAt(index:int):Node 根据子节点的索引位置,获取子节点对象。 Node getChildByName(name:String):Node 根据子节点的名字,获取子节点对象。 Node getChildIndex(node:Node):int 根据子节点...
来源: Laya2.0_api 发布时间: 20190513