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

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

751. 无法获取音频的时间长度 [ 58%]

...Laya.SoundManager.playMusic("resources/sound/dh/gril1.wav", 1,Laya.Handler.create(this,() => {       }));     console.log(soundChItem.position+"");     console.log(soundChItem.duration+""); 附件 : --> 2023-05-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

752. TextInput怎么执行focus()? [ 58%]

...or('button'); btn.addEventListener('click', function(){ let int = document.createElement('input'); int.type = 'text'; document.body.appendChild(int); // input.focus(); int.focus(); })我这样是可以直接直接打开键盘的,只要放到引擎里面就打不开键盘了,你们这对Input做...

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

753. layabox 网络加载异常慢 [ 58%]

...级,有时会20几秒,用的加载方式是 Laya.loader.load( url,Handler.create(this,comFun),null,Loader.IMAGE,0); 这个等待时间有没有大牛搞过啊   附件 : --> 2018-07-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...

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

754. laya.d3.component.staticmesh.StaticBatchMeshRender_API3.0 [ 58%]

...nder onReset onStart onUpdate setRenderbitFlag __init__ changeVertexDefine create shaderValueInit Properties Optional _extra _extra: IComponentExtra Inherited from Component._extra Defined in laya/components/Component.ts:36 _receiveShadow _receiveShadow: boolean Inherited from PixelLineRenderer._rec...

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

755. laya创建HTMLImage 怎么显示出来 [ 58%]

laya创建HTMLImage 怎么显示出来 var img:HTMLImage = HTMLImage.create(); 2017-04-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 这个是引擎内部的类,用于是想HTMLDivE...

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

756. Dialog 关闭效果无效 [ 58%]

...er); var _proto_ = CommonDlg.prototype; _proto_.closeEffect = Laya.Handler.create(null, this.onCloseEffect, null, true); _proto_.onCloseEffect = function () { console.log("in on close effect") this.close(); } return CommonDlg; })(Laya.Dialog);console.log并未输出任何东西 2017-11-07 添加评...

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

757. 创建树Tree 该怎么回调mouseHandler 形参该传什么 [ 58%]

... http 请求 once 的 回调参数,如何传递和接收? Laya.Handler.create 回调 IOS 二次开发 callbackToJSWithClass, JS没有收到OC的回调 load方法的progress回调进的次数太少了。是我哪里设置有问题么 本人想做个批量加载json文件,然后等这些文件...

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

758. 粒子图片错误 [ 58%]

粒子图片错误 Laya.loader.load("res/yan.part", Laya.Handler.create(this, this.onAssetsLoaded), null, Laya.Loader.JSON); var yan = new Laya.Particle2D(settings); yan.emitter.start(); yan.play(); this.particlesPos.addChild(yan);   编辑器里面设置是对的 但是在网页上运行,图片...

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

759. laya的prefab都没有明确生成使用资料 [ 58%]

...说。唯一的demo就一句: let box: Laya.Sprite = Laya.Pool.getItemByCreateFun("dropBox", this.dropBox.create, this.dropBox);天啊,this.dropBox都没有初始化,怎么知道是dropbox那个呢??? 2019-09-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

760. window.LayaRender和Laya.Render有什么区别 [ 58%]

...集区别在哪? var 与 name 的详细区别是什么? Laya.Handler.create和new Laya.Handler有啥区别 在初始化时候使用canvas 或者WebGL 两种模式对使用引擎有什么区别? Laya的Scene和View什么区别? Image和Sprite在应用上的区别 VBOX HBOX 的文档太少了...

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