大约有 3,291 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0092 秒)
...js文件的引用方式 <script src='LayaAirDemo.max.js' loader='laya'></script> 第三方的js文件下载layaAir主js文件之上,确保第三方js文件加载完成 如果是AS下调用js下的方法,请直接使用__JS__()即可,譬如__JS__('alert("aaa")') 2017-04-17 0 1 分...
来源: Laya_社区 发布时间: 20170417
...create("res/scenes/LayaScene_game/game.ls", Laya.Handler.create(this, () => { let gameScene = Laya.loader.getRes("res/scenes/LayaScene_game/game.ls") as Laya.Scene; Laya.stage.addChild(gameScene); }, null), Laya.Handler.create(this, (progress) => { console.log("当前进度:", progress) },null...
来源: Laya_社区 发布时间: 20190711
...a.com/re ... ot%3B, Laya.Loader.SPINE).then((templet: Laya.SpineTemplet) => { this.skeleton = new Laya.SpineSkeleton(); this.skeleton.templet = templet; console.log("动画数量:", this.skeleton.getAnimNum()); for (let i = 0; i < this.skeleton.getAnimNum(); i++) { ...
来源: Laya_社区 发布时间: 20250928
...r: Cannot read property 'call' of undefined at Function.<anonymous> (file:///Users/moos/Company/Emerson-AirWar/EmersonGame/bin/libs/laya.core.js:130:41) at new GameScene (file:///Users/moos/Company/Emerson-AirWar/EmersonGame/src/GameScene.js:4:19) at HomePageUI.onGameStart (file...
来源: Laya_社区 发布时间: 20180709
...ya.loader.load("skeleton/Dragon/Dragon.sk").then((templet: Laya.Templet) => { //创建模式为1,可以启用换装 this.mArmature = templet.buildArmature(0); this.mArmature.x = 300; this.mArmature.y = 350; this.mArmature.scale(0.5, 0.5); this.owner.addChild(this.mArmature); //设置动画播...
来源: Laya3.0_文档 发布时间: 20251010
...正常,我修改了下 __proto.addSize=function(add){ if (add){ if(add > 0){ if (this.autoRelease){ ((this._memorySize+add)> this.autoReleaseMaxSize)&& (this.garbageCollection((1-this._garbageCollectionRate)*this.autoReleaseMaxSize)); } this._memorySize+=add; } } } 但是貌似问题...
来源: Laya_社区 发布时间: 20170915
...E);//就是加上个2字节头 int32_t send_size = m_socket->send(asio::buffer(outMsg));//客户端能收到 std::string body_str; pbMsg.SerializeToString(&body_str);//protoBuf消息转二进制流 std::string outMsg2; wsEn...
来源: Laya_社区 发布时间: 20170822
...bjects reCaculateAllRenderObjects(baseRenders: SingletonList<BaseRender>): void Implementation of IVolumeManager.reCaculateAllRenderObjects Defined in laya/d3/component/Volume/VolumeManager.ts:137 重新更新所有Volume的信息 Parameters baseRenders: SingletonList<BaseRender> Returns...
来源: Laya3.0_api 发布时间: 20231115
...); xhr.open('GET','http://10.10.20.19:7766/version',true); xhr.onload=(e)=>{ var f = window.appcache.getCachePath()+'/version'; fs_writeFileSync(f,xhr.responseText);//把结果写到f文件中 url='';//自己决定url loadUrl(url); } xhr.onerror=()=>{ //TODO } xhr...
来源: Laya_社区 发布时间: 20170703
..."Cannon.js物理引擎库。\n\n安装后,可以在 “项目设置” => “引擎模块” => “3D” => “物理系统” 中选择使用Cannon.js", "icon": "editorResources/cannon.png", "author": "layabox", "contributes": { "engine": [ { "name": "laya.physics3D", "addons": [ { "name...
来源: Laya3.0_文档 发布时间: 20251010