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

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

561. 如何获取HTMLDivElement对象的文本值 [ 69%]

...    var tHTMLElement:HTMLElement;                 for(var i:int = 0,n:int = _html._childs.length;i < n;i++)                 {                     tHTMLElement = _html.getChildAt(i) as HTMLElement;                     if(tHTMLElement)    ...

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

562. 骨骼动画-换装 [ 69%]

...tartY:Number = 500; private var mFactory:Templet; private var mActionIndex:int = 0; private var mCurrIndex:int = 0; private var mArmature:Skeleton; private var mCurrSkinIndex:int = 0; private var mSkinList:Array = ["goblin","goblingirl"]; public function Skeleton_ChangeSkin() { WebGL.enable(); Laya....

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

563. 小游戏子域程序加载到图集后,取图集内资源报错。 [ 68%]

...it(","); var split:String = url.indexOf("/") >= 0 ? "/" : "\\"; var idx:int = url.lastIndexOf(split); var folderPath:String = idx >= 0 ? url.substr(0, idx + 1) : ""; for (var i:int = 0, len:int = toloadPics.length; i < len; i++) { toloadPics[i] = folderPath + toloadPics[i]; } } else { //不...

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

564. laya.d3.core.particleShuriKen.module.StartFrame [ 68%]

... constantMin : Number[read-only] 最小固定帧。 StartFrame  type : int[read-only] 始帧类型,0常量模式,1随机双常量模式。 StartFramePublic Methods  MethodDefined By  StartFrame() 创建一个 StartFrame,不允许new,请使用静态创建函数。 实例。 StartFrame  cl...

来源: laya_api 发布时间: 20170929

565. laya.d3.core.particleShuriKen.module.StartFrame [ 68%]

... constantMin : Number[read-only] 最小固定帧。 StartFrame  type : int[read-only] 始帧类型,0常量模式,1随机双常量模式。 StartFramePublic Methods  MethodDefined By  StartFrame() 创建一个 StartFrame,不允许new,请使用静态创建函数。 实例。 StartFrame  cl...

来源: Laya2.0_api 发布时间: 20190513

566. 关于Button Skin 切图问题 [ 68%]

...maxWith = max( maxWith, im.width) maxHeight = max( maxHeight, im.height) print im.width, im.height length=len(pngs) maxHeight += 2 if length > 0: finalHeight = maxHeight*length outIm = Image.new('RGBA',(maxWith, finalHeight), (0,0,0,0)) index=0 for im in pngs: left = (maxWith - im.width)*0.5 top ...

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

567. 性能测试-卡通人物2 [ 68%]

...ation = new Animation(); this.animation.loadImages(images); this.animation.interval = 70; this.animation.play(0); this.addChild(this.animation); } createBloodBar() { const Sprite = Laya.Sprite; this.bloodBar = new Sprite(); this.bloodBar.loadImage("res/cartoon2/blood_1_r.png"); this.bloodBar.x = 20;...

来源: Laya2.0_示例 发布时间: 20260303

568. 有震屏的算法吗 [ 68%]

...  */     public function stageShake(callBack:Function = null, times:uint = 2, offset:uint = 12, speed:uint = 32):void   {    if(_isShake) return;        _isShake = true;    var num:int = 0;    var offsetArr:Array = [0, 0];    var point:Point = new Point(this.x, this.y);   ...

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

569. [LayaAir3][LayaAir3]Laya.Scene.Open的param参数没有传入runtime脚本的onOpen [ 68%]

...ed Dispather.event参数传的是数组,为什么收到的参数却是个int类型? 子节点的 getChildIndex(node:Node):int 根据子节点对象,获取子节点的索引位置。参数是什么 脚本组件添加对象问题 问题状态 最新活动: 2025-06-04 16:06 浏览: 2778 关注: 2...

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

570. 请问我看错了吗??文档问题 [ 68%]

... var tempResouList:Vector.<Resource> = resouList.slice(); for (var i:int, n:int = tempResouList.length; i < n; i++) { res = tempResouList[i]; if (!res.lock && res._referenceCount === 0) res.destroy(); } } } else { for (var k:String in _idResourcesMap) { res = _idResourcesMap[k]; if ...

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