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

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

11. laya.device.media.Media [ 84%]

...s  MethodDefined By  Media()Media  getMedia(options:Object, onSuccess:Handler, onError:Handler):void[static] 获取用户媒体。 Media  supported():Boolean[static] 检查浏览器兼容性。 MediaConstructor DetailMedia()Constructorpublic function Media()Method DetailgetMedia()method publi...

来源: laya_api 发布时间: 20170929

12. laya.device.media.Media [ 84%]

...s  MethodDefined By  Media()Media  getMedia(options:Object, onSuccess:Handler, onError:Handler):void[static] 获取用户媒体。 Media  supported():Boolean[static] 检查浏览器兼容性。 MediaConstructor DetailMedia()Constructorpublic function Media()Method DetailgetMedia()method publi...

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

13. Laya.loader Progress回调形同虚设 [ 84%]

...2.png", "res/3.png", "res/4.png", "res/5.png", "res/6.png", "res/7.png" ], Handler.create(this, onLoaded),Handler.create(this, onProgress)); //Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded),Handler.create(this, onProgress)); } private function onProgress(v:Number):void { tra...

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

14. Laya.Handler.create 回调 [ 84%]

Laya.Handler.create 回调 Laya.Tween.to(right, {x: 0} , 700 ,null , Laya.Handler.create(this,this.onStartOver1, [anim])); onStartOver1(bads: Array<any>): void { alert("1" + bads.length) var animsf :Laya.Animation = bads[0] as Laya.Animation; animsf.play(); } 这样用会报错 2017-03-09 添...

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

15. Laya.loader.load("", Laya.Handler.create(this, this.console)); [ 84%]

Laya.loader.load("", Laya.Handler.create(this, this.console)); 为什么会打印两次 附件 : --> 2018-12-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 加载两次 2019-05-11 0 0 ...

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

16. Laya.Handler.create 回调参数问题 [ 83%]

Laya.Handler.create 回调参数问题 var ape ; function Init() { Laya.init(400, 800, Laya.WebGL); Laya.stage.bgColor = "#999911";  ape = new Laya.Sprite();     Laya.stage.addChild(ape); var ag = ["lsd",ape,1,"str"]; ape.loadImage("../laya/assets/res/to1.png",0,0,0,0,Laya.Handler.create(this,...

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

17. 使用Handler 返回name 始终是 undefined [ 83%]

使用Handler 返回name 始终是 undefined public function RegDlg() { this.btn_submit.name = Dialog.SURE; this.closeHandler = Handler.create(this ,this.onClose, ["123"],false); } private function onClose(name:String):void{ if(name == Dialog.SURE){ var di:NormalDlg = new NormalDlg(); di.popupConte...

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

18. 取handler有概率取错 [ 83%]

取handler有概率取错   如图:cid是唯一的,mid也是唯一的..但是加起来之后可能就跟别人重复了   附件 : --> 2019-09-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同...

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

19. 显存优化:纹理压缩的使用(TypeScript-2D进阶篇(TS)-性能优化) [ 83%]

...ndroid) { //注意这里的加载 Laya.loader.load("res/layabox.ktx", Laya.Handler.create(null, function (tex: Laya.Texture2D) { material.albedoTexture = tex; })); } else { //注意这里的加载 Laya.Texture2D.load("res/layabox.jpg", Laya.Handler.create(null, function (tex: Laya.Texture2D) { mater...

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

20. ios load后 声音播放问题 [ 81%]

...:8900/bin/comp/tap.mp3",type:Laya.Loader.SOUND});Laya.loader.load(resurls, Handler.create(this, onLoaded), Handler.create(this, onLoading, null, false)); function onLoaded(){ console.log(Laya.loader.getRes(src)); }   在chrome,安卓下都是正常的,在ios和mac Safari下是undefined 放在...

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