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

大约有 63 项符合查询结果, 库内数据总量为 30,978 项。 (搜索耗时: 0.0041 秒)

11. LAYA js 1.7.12 Tween 使用时回调时 core报错 [ 87%]

...rcuore 赞同来自: this.body = new Laya.Animation(); this.body.loadAtlas(config[this.type].imgBang, Laya.Handler.create(this, this.onLoad)); this.body.width = config[this.type].width this.body.height = config[this.type].height onLoad(){ Tween.to(this.body, { x: (config[this.type].width / 2) + 10, ...

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

12. 部署web后无法请求访问HTTP API接口数据,调试模式下可以访问获取 [ 86%]

...以下代码就可以了         //初始化                 _config = new HttpSelfHostConfiguration(url);                 //API路由                 _config.Routes.MapHttpRoute(                     "API Default",                     "api/{controller...

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

13. Sprite-屏幕截图 [ 83%]

...null; this.monkeyTexture = null; // 不支持WebGL时自动切换至Canvas Config.preserveDrawingBuffer =true; Laya.init(Browser.clientWidth, Browser.clientHeight); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_FIXED_AUTO; Laya.sta...

来源: Laya2.0_示例 发布时间: 20250425

14. Cannot read property 'rayCast' of undefined [ 82%]

....Ray(new Laya.Vector3(),new Laya.Vector3()); //1.开启第四个参数 let config3D = new Laya.Config3D(); config3D.isAlpha = true; Laya3D.init(0, 0, config3D); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; //2.设置舞台背景色为空 Laya.stage.bg...

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

15. laya.d3.physics.constraints.ConfigurableConstraint_API3.0 [ 81%]

...nherited Externals Only exported Menu Globals "laya/d3/physics/constraints/ConfigurableConstraint" ConfigurableConstraint Class ConfigurableConstraint ConfigurableConstraint类用于可设置的约束组件 Hierarchy ConstraintComponent ConfigurableConstraint Index Constructors constructor Propertie...

来源: Laya3.0_api 发布时间: 20231115

16. 多scene3d报内存不足问题 [ 80%]

...Laya.Scene3D()   第三个new 就报错 内存已经设置到512M window['Config3D'] && (window['Config3D']['_default']['_defaultPhysicsMemory'] = 512); 附件 : --> 2019-07-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...

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

17. Android替换游戏启动logo看不到设置的图片 [ 79%]

...续改进 目前的解决方式:开发者自定义加载进度 1、设置config.js的 loadingView.loadingAutoClose=false;//false:自定义进度条 ture:使用laya默认进度条 2、设置加载进度(需要写在项目代码内,并非config.js内) var per=0; loadingView.loading(per);//...

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

18. 打包安卓Android studio黑屏 [ 73%]

...rted. D/IMonitor: Load library imonitor_jni V/ActivityThread: Skipping new config:{1.0 ?mcc?mnc [zh_CN_#Hans] ldltr sw360dp w360dp h578dp 480dpi nrml long port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1080, 1808) mAppBounds=Rect(0, 0 - 1080, 1808) mWindowingMode=fullscreen mActivityTy...

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

19. Laya2.0 的3d截图 [ 72%]

...就没必要提供方案了。 在这之前还不能生效,还需要将Config的preserveDrawingBuffers设置为false,不然读取像素的时候rgb的通道值,别的论坛里有说这样会影响性能,实际用的时候没有看出有啥差别 还有一种思路是在每次清理buff前进...

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

20. 为何发生此类报错Uncaught TypeError: Cannot read property '_tf' of null [ 70%]

...赞同来自: (function(){ var Stage=Laya.Stage; var WebGL=Laya.WebGL; var config=Config; (function(){ console.log("运行程序。"); Laya.init(1280,720,WebGL); //设置适配模式 Laya.stage.alignH=Stage.ALIGN_CENTER; Laya.stage.alignV=Stage.ALIGN_MIDDLE; Laya.stage.scaleMode="showall"; Laya.Stat...

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