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

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

3861. Laya.URL.basePath加载不到网络资源 [ 49%]

...1 fail @ code.js:21393 (anonymous) @ WAGame.js:3 (anonymous) @ WAGame.js:4 function.setTimeout @ gamePage.html:1 (anonymous) @ WAGame.js:3 (anonymous) @ WAGame.js:14 setTimeout (async) setTimeout @ WAGame.js:14 s @ gamePage.html:1 f.registerCallback @ gamePage.html:1 m.forEach @ gamePage.html:1 d @ ...

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

3862. 分离模式下使用自定义场景类 [ 49%]

..._proto.parseTsImport”,修改该函数体内容:__proto.parseTsImport=function(str){ var tStr = str.replace("import",""); str = 'from'; str = tStr.indexOf(str) > -1 ? str : '='; tStr = StringTool$1.trimSide(tStr.split(str)[0]); this.importDic[tStr] = true; }当然也可以把CodeManager.pars...

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

3863. 在线急等,发现你们这个编译器一个bug,不能实现负负得正,昨天明明解决了,过了一会又不行了,怎么回事 [ 49%]

... QZONE 微信 l13273866189 赞同来自: // 下落 _proto_.moveDownBall = function(){ this.ball.x -= this.vx; this.ball.y += this.vy; console.log("111111"); this.vy *= 0.99; this.vy += 0.25; console.log("222222"); if (this.ball.y + this.vy >= this.img1 ||this.ball.y + this.vy <= 0) { this.vy =...

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

3864. TileMap有明显的bug [ 49%]

...avascript):var WebGL = laya.webgl.WebGL; Laya.init(1920, 1080, WebGL); function _OnMapCreate() { console.log("map create ..."); } var viewRect = new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height); var tMap = new Laya.TiledMap(); tMap.createMap("res/isometric_grass_and_water.json", vie...

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

3865. laya.particle.ParticleSetting [ 49%]

...n计算结束弧度。Constructor DetailParticleSetting()Constructorpublic function ParticleSetting() 创建一个新的 ParticleSettings 类实例。 Method DetailcheckSetting()method public static function checkSetting(setting:Object):void Parameters setting:ObjectMon May 13 2019, 03:09 PM +08:00

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

3866. layaAir分包问题 [ 49%]

...endChild(script);") } chunjine • 2017-03-17 12:43 @chunjine:private function getModuleJs(moduleName:String):* { var codeConfig:* = GameConfig.loadConfig.moduleCode[moduleName]; var moduleJs:*; if (codeConfig) { moduleJs = Laya.loader.getRes(codeConfig.url); } return moduleJs; } chunjine • 2...

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

3867. MeshSprite3D在加了physicsCollider和Rigidbody3D后,调用destroy会报错 [ 49%]

... btCollisionObject undefined 导微信小程序报错window.focus is not a function 启动引擎报错 mPlugin.game_plugin_init(3); 官网示例摇一摇报错,就解决方案 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? 小游戏项目 加载有中文的json文件 ...

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

3868. 重力感应 Accelerator 发布微信游戏后失效。是因为什么? [ 49%]

...? Accelerator.instance.on(Laya.Event.CHANGE, this, monitorAccelerator); function monitorAccelerator(acceleration, accelerationIncludingGravity, rotationRate, interval) {         let x = accelerationIncludingGravity.x;         let y = accelerationIncludingGravity.y; }   发布微信游戏...

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

3869. [LayaAir3]LAYAAIR 3.3 和 LAYANATIVE 的VIDEO 支持 M3U8文件吗? [ 49%]

...eoTexture.element.load(); videoTexture["_video"] = videoTexture.element; } function playVideo(){ //这里就做一些video的参数设置,比如静音、循环、播放等设置即可 //video.muted = this._muted; //video.loop = this._loop; //video.onended = this._onended; //video.onclose = this._o...

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

3870. 天空-天空穹 [ 49%]

...meraMoveScript; /** * ... * @author */ public class SkyDomeSample { public function SkyDomeSample() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Stat.show(); var scene:Scene = Laya.stage.addChild(new Scene()) as Scene; var camera:Came...

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