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

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

11. 播放视频只有声音没有图像 [ 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

12. 新手引导在ios浏览器表现异常 [ 75%]

...nit(this.width, this.height);             Laya.stage.setScreenSize(this.width, this.height);             Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_AUTO;             Laya.stage.screenMode = Laya.Stage.SCREEN_NONE;             Laya.stage.on(Lay...

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

13. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 73%]

...ext.text = "单击舞台播放和暂停"; text.color = "#FFFFFF"; text.fontSize = 100; text.valign = "middle"; text.align = "center"; text.size(Laya.stage.width, Laya.stage.height); } private function onSuccess(url:String):void { video = new Video(Laya.stage.width, Laya.stage.height); video.load(url...

来源: Laya2.0_文档 发布时间: 20210715

14. [LayaNative3]2d示例程序构建发布打包后,在OpenHarmony运行闪退 [ 73%]

...geSource: CreatePixelMapExtended success, imageId:1736156081504401, desiredSize: (0, 0),imageSize: (192, 192), cost 1489 us 01-06 17:34:41.506 797 1382 I C01719/ffrt: 31958:PushTask:51 push task gid=1535 to qid=13 [AbilityManagerService] 01-06 17:34:41.510 338 942 I C02d10/HiView-SysEventSource: Che...

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

15. 微信浏览器,input输入完成后,游戏不能还原 [ 70%]

... Laya.stage.addChild(scene);  var inputText = new Laya.Input(); inputText.size(350, 100); inputText.x = Laya.stage.width - 400; inputText.y = Laya.stage.height * 0.4; // 移动端输入提示符 inputText.prompt = "Type some word...";  // 设置字体样式 inputText.bold = true; inputText.bgColor...

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

16. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 68%]

...s[MiniAdpter] already exist: Object code.js:25623 ShaderCompile use time:5 size:4472/6067 code.js:25623 ShaderCompile use time:3 size:177/148 code.js:92311 Warning: discard property,please use transform's property instead. code.js:21065 Object WAGame.js:3 gameThirdScriptError Sprite3D: The .lh file ...

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

17. laya.display.Sprite [ 67%]

...过getBounds函数获取;也可手动设置宽高;还可以设置autoSize=true,然后再获取宽高。Sprite的宽高一般用于进行碰撞检测和排版,并不影响显示图像大小,如果需要更改显示图像大小,请使用 scaleX , scaleY , scale。 Sprite 默认不接...

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

18. ENOENT: no such file or directory, open 'D:\layaidehello eleasewxgameLayaSample.js.map [ 65%]

... file not found 微信游戏多次加载出现:copyFile:fail the maximum size of the file storage limit is exceeded 问题状态 最新活动: 2018-07-15 19:21 浏览: 1538 关注: 5 人 海货 • 2018-07-15 16:58 你意思是环境问题? 海货 • 2018-07-15 17:01 我的环境是上午刚搭...

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

19. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 63%]

...; tex.text = "单击舞台播放和暂停"; tex.color = "#ffffff"; tex.fontSize = 100; tex.valign = "middle"; tex.align = "center"; tex.size(Laya.stage.width, Laya.stage.height); } function onSuccess(url) { this.video = new Laya.Video(Laya.stage.width, Laya.stage.height); this.video.load(url); Laya....

来源: Laya2.0_文档 发布时间: 20210714

20. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 61%]

...; tex.text = "单击舞台播放和暂停"; tex.color = "#ffffff"; tex.fontSize = 100; tex.valign = "middle"; tex.align = "center"; tex.size(Laya.stage.width,Laya.stage.height); } private onSuccess(url:string):void{ this.video = new Laya.Video(Laya.stage.width,Laya.stage.height); this.video.load(url...

来源: Laya2.0_文档 发布时间: 20210715