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

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

1. 打成ios包,运行时显示的测试扫码界面 [ 100%]

...22 18:21:21.542170+0800 layabox[3608:626785]  ShaderCompile use time:14  size:5011/5105 2020-04-22 18:21:21.549517+0800 layabox[3608:626785]  ShaderCompile use time:6  size:1980/5939 2020-04-22 18:21:21.559118+0800 layabox[3608:626785]  ShaderCompile use time:8  size:2636/4260 2020-04-22 18:21...

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

2. 自己写了个label继承官方的label,出现了问题,求指导~ [ 94%]

...laya.ui.Label = new laya.ui.Label(); // label.text = "Hello"; // label.fontSize = 50; // label.color = "#FF00FF"; // label.wordWrap = true; // label.width = 100; // label.height = 100; // label.x = 100; // label.y = 100; // Laya.stage.addChild(label); } } }自己写的label类:package { import lay...

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

3. 在画布上播放video问题的思路 [ 93%]

... htmlCanvas.source.width = 100; htmlCanvas.source.height = 100; htmlCanvas.size(100, 100); // 在单独的画布上绘制矩形。 htmlCanvas.getContext("2d").fillStyle = "#FFFF00"; htmlCanvas.getContext("2d").fillRect(20, 20, 60, 60); // 把单独画布绘制到舞台。 var texture:Texture = new T...

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

4. 3d物理引擎报错 [ 85%]

... (2) compile with  -s ALLOW_MEMORY_GROWTH=1  which allows increasing the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or (4) if you want malloc to return NULL (0) instead of this abort, compile with  -s ABORTING_MALLOC=0 "...

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

5. 关于LayaBox启动的问题。 [ 85%]

...aBox (12689): >>>>>>>>>>>>>bGLCanvasSizeChanged w=1920 h= 1080 I/LayaBox (12689): >>>>>>>>>>>>>>>>innerWidth:1920innerHeight:1080 I/GlobalPushManager( 4888): checkPollAndPopSend --> mSenderInfo = SenderInfo{mSe...

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

6. timer.loop里面修改Text.text在微信小程序上用iPhone打开出现闪屏 [ 83%]

...题,  this.myTest = new Laya.Text() this.myTest.pos(0, 0) this.myTest.size(100, 100) this.myTest.fontSize = 13 this.myTest.color = "#ffffff" this.myTest.align = "center" this.addChild(this.myTest) this.timer.loop(10, this, this.timerClick)     timerClick() {   this.myTest.changeText("改变的...

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

7. LayaIDE 2.3.0beta创建模型过多导致内存溢出 [ 81%]

... (2) compile with  -s ALLOW_MEMORY_GROWTH=1  which allows increasing the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or (4) if you want malloc to return NULL (0) instead of this abort, compile with  -s ABORTING_MALLOC=0 "...

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

8. 【字节小游戏】游戏中播放视频 [ 76%]

...rite(); Laya.stage.addChild(reference); reference.pos(100, 100); reference.size(600, 400); reference.graphics.drawRect(0, 0, reference.width, reference.height, "#CCCCCC"); // 每次舞台尺寸变更时,都会调用Utils.fitDOMElementInArea设置Video的位置,对齐的位置和refence重合 Lay...

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

9. 教学文档永恒之光的动画例子,运行效果与例子不符合 [ 76%]

... class[MiniAdpter] already exist: Object {init: } ShaderCompile use time:7 size:1426/6889 GradientDataNumber warning:the forth key is be force set to 1. GradientDataNumber warning:data count must lessEqual than 4 GradientDataNumber warning:the forth key is be force set to 1. GradientDataNumber warni...

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

10. 播放视频只有声音没有图像 [ 75%]

...照物 let reference = new Laya.Sprite(); reference.pos(0, 0); reference.size('100%', '100%'); this.addChild(reference); Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [videoElement,reference,0, 0,'100%','100%']); Laya.Utils.fitDOMElementInArea(videoElement,reference,0, 0,'10...

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