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

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

451. 如何使用h5打开本地文件的浏览窗口? [ 72%]

...调用相关代码,下面附上一个小Demo,大家可以参考! /*[IF-SCRIPT-BEGIN]('var file= document.createElement("input")');('file.type = "file"'); ('document.body.appendChild(file)'); ('file.style.zIndex = 999999'); ('file.style.position = "absolute"'); ('file.style.top = 20'); ('docume...

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

452. tween有这个一个bug [ 72%]

... = 1; i <= 9; i++) { var line = share['l'+i]; var point = share['p'+i]; if(i==FocusNum){ point.skin = "simbols/trave_3f.png"; } if(i<9){ line.visible=false; line.scaleX = 0.1; Laya.Tween.to(line,{scaleX:1,update:Laya.Handler.create(line,function(){ this.visible = true; })},800,Laya.Ease.cubicI...

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

453. 对接上架字节跳动小游戏技术指南(TypeScript-小游戏适配文档-字节跳动小游戏) [ 72%]

... { GameRecorderMgr.instance = this; //判断是否已初始化录屏对象 if (!this._recorder) { //判断是否为字节小游戏环境 if (Browser.onTTMiniGame) { //初始化录屏对象 this._recorder = tt.getGameRecorderManager(); } } } static get instance(): GameRecorderMgr { if (!GameRecorderM...

来源: Laya2.0_文档 发布时间: 20210715

454. 【简单跑酷--JS版】---Lv.3 添加地板 [ 72%]

... 32 * 20 拼起来的 this.y = 32 * 6 + 32 * parseInt(8 * Math.random()); if(this.bg == null){ //贴图纹理 this.bgTexture = Laya.loader.getRes("res/floor.png"); this.bg = new laya.display.Sprite(); this.bg.graphics.clear(); //将当前的坐标向上移动32 方便后面处理人物的位置 this...

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

455. 骨骼动画-藤蔓 [ 72%]

...; } function completeHandler() { play(); } function play() { mCurrIndex++; if (mCurrIndex >= mArmature.getAnimNum()) { mCurrIndex = 0; } mArmature.play(mCurrIndex,false); } })();module laya { import Skeleton = Laya.Skeleton; import Templet = Laya.Templet; import Event = Laya.Event; import Browser = ...

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

456. 预制体添加刚体后,和其它刚体碰撞后不能修改角度和位置 [ 72%]

...act)     {         var n=this.owner.rotation;         if(other.label === "heng"){             console.log("角度"+this.owner.rotation);             this.owner.rotation=180-n;             console.log("角度"+this.owner.rotation);      ...

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

457. 更改innerHTML字体大小失败 [ 72%]

...ML的代码,并且内容已经正确显示了,除了字体大小没改 if(bagVo.group == GroupType.FollowerEquip || bagVo.group == GroupType.Equip){ for(var i:int=0;i<len;i++){ vo=bagVo.attr[i]; if(vo.attValue==0) continue; attrStr+="<font size='99999' color='#b031d5'>"+AttrNameCode.toN...

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

458. 摄像机捕捉目标(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 72%]

...事件 changeActionButton.on(Event.CLICK, this, function():void{ index++; if (index % 3 === 1 ){ //摄像机捕捉模型目标 camera.transform.lookAt(box.transform.position, _up); } else if (index % 3 === 2){ //摄像机捕捉模型目标 camera.transform.lookAt(cylinder.transform.position, _up); }...

来源: Laya2.0_文档 发布时间: 20210714

459. Node.prototype.removeChildren移除计数有问题 [ 72%]

...版本都存在: removeChildren(beginIndex = 0, endIndex = 0x7fffffff) { if (this._children && this._children.length > 0) { var childs = this._children; if (beginIndex === 0 && endIndex >= childs.length - 1) { var arr = childs; this._children = Node.ARRAY_EMPTY; } else { arr ...

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

460. 微信小游戏IDE加载位图字体,提示错误 [ 72%]

...,laya.core.js,805行加上: __proto.parseFont=function(xml,texture){ if (xml==null || texture==null)return; this._texture=texture; var tX=0; var tScale=1; + if (typeof xml === "string") { + var parser = new DOMParser(); + xml = parser.parser.parserFromString(xml,'text/xml'); + } var tI...

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