大约有 1,492 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0048 秒)
...(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
...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
...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
...生效 请教下微信小游戏的内存和数据缓存? 通过laya嵌入iframe 后 原本laya禁止微信浏览器里面的上下滑动,又开始上下滑动了 ProgressBar赋值问题 怎么获得laya.input输入框里面的值 问题状态 最新活动: 2018-03-21 21:14 浏览: 956 关注: 4 ...
来源: Laya_社区 发布时间: 20180321
...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
... 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
...改为黑色 */ 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
..., 程序会优先读取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
...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
... */ 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