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

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

1321. 分享:Dragonbones/Spine的换肤操作 [ 47%]

...(text); text.pos(35,5); } private function onChangeSkin():void { curNum++; if(curNum%2!=0) { skeleton.replaceSlotSkinByIndex('head',0,1);//head插槽下,让索引为1的皮肤替换索引为0的皮肤 } else { skeleton.replaceSlotSkinByIndex('head',0,0);//head插槽下,让索引为0的皮肤替...

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

1322. [LayaAir2] 在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 47%]

...teVideo, [texture2D]); },true); } updateVideo(tempTexture:Laya.Texture2D){ if(this.htmlvideo.video.readyState === this.htmlvideo.video.HAVE_ENOUGH_DATA) { //更新视频纹理 tempTexture.loadImageSource(this.htmlvideo.video); } } }使用上述代码遇到问题,可以在继续追问。 2024-03-06...

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

1323. 寻路系统(JavaScript-3D基础(JS)-LayaAir3D之高级应用) [ 47%]

...ndow.astar.search(this.graph, start, end, { closest: this.opts.closest }); if (_everyPath && _everyPath.length > 0) { getRealPosition(start, this._everyPath); } }); ``` > 通过3D世界的x,z换算出对应的网格索引,并且通过astar路径再转换为3D世界路径 ```typescript /** * 得...

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

1324. 数据、图片路径已加载到数组里面,要如何将图片路径赋值给skin?然后显示到list? [ 47%]

...生效 请教下微信小游戏的内存和数据缓存? 通过laya嵌入iframe 后 原本laya禁止微信浏览器里面的上下滑动,又开始上下滑动了 ProgressBar赋值问题 怎么获得laya.input输入框里面的值 问题状态 最新活动: 2018-03-21 21:14 浏览: 956 关注: 4 ...

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

1325. 使用UrlLoader加载图片,flash获取data为byteArray,翻译成h5后data为image? [ 47%]

...der:URLLoader; private var l:Loader; public function UrlImage() { super(); if(stage) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { urlLoader=new URLLoader(); urlLoader.dataFormat=URLLoaderDataFormat.BINARY; urlLoader.addEventListe...

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

1326. Web Storage数据存储(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 47%]

... Laya.init(100,100); var sessionStorage:* = Browser.window.sessionStorage; if(sessionStorage.pagecount){ sessionStorage.pagecount = parseInt(sessionStorage.pagecount)+1; } else{ sessionStorage.pagecount = 1; } trace(sessionStorage.pagecount); } } } ``` var sessionStorage:* = Browser.window.sessionSt...

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

1327. 物理碰撞脚本和触发器脚本(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 47%]

...改为黑色 */ public onCollisionEnter(collision:Laya.Collision):void { if (collision.other.owner === this.kinematicSprite) ((this.owner as MeshSprite3D).meshRenderer.sharedMaterial as Laya.BlinnPhongMaterial).albedoColor = new Laya.Vector4(0.0, 0.0, 0.0, 1.0); } public onCollisionStay(collision:La...

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

1328. dcc更新失效, 有代码, 100%复现, 三楼附临时解决办法 [ 47%]

..., 程序会优先读取assets\scripts\index.js 此时可以魔改一下 if (_inline) { yield updateDcc(); if (!isDccOk) { console.log("init dcc fail"); return; } } if( !(yield dj_hook.OnDccOk()) ) { if (window["onLayaInitError"]) { window["onLayaInitError"]("Update index error"); } return; } var da...

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

1329. 类似古文显示方式脚本,文字垂直显示,可以控制显示速度出现打字效果等 [ 46%]

...this.sprite.graphics.fillText(element, _x, _y, fonts, this.color, "left"); if (yAction(printNumber + 1) > h) { j++; printNumber = 0; } else { printNumber++; } } } drawTextBySprite(sprite: Laya.Sprite) { sprite.addChild(this.sprite); this.drawText(sprite.x, sprite.y, sprite.width, sprite.height); ...

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

1330. 物理碰撞脚本和触发器脚本(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 46%]

... */ override public function onCollisionEnter(collision:Collision):void { if (collision.other.owner === kinematicSprite) ((owner as MeshSprite3D).meshRenderer.sharedMaterial as BlinnPhongMaterial).albedoColor = new Vector4(0.0, 0.0, 0.0, 1.0); } override public function onCollisionStay(collision:Col...

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