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

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

301. 【经验分享】如何让ts项目支持装饰器语法,以及自动化发布相关的一些东西 [ 74%]

...h(config); console.log(`Running 'rollup watcher'...`); let tS; watcher.on('event', (event) => { // event.code 会是下面其中一个: // START — 监听器正在启动(重启) // BUNDLE_START — 构建单个文件束 // BUNDLE_END — 完成文件束构建 // END — 完成所有文件...

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

302. 1.7的接口消失 [ 74%]

1.7的接口消失 // ZmyTestManager.Ani.on(Laya.Event.COMPLETE, this, this.OnCurrentAnimationCompleted);//循环动画完成播放单次循环 // ZmyTestManager.Ani.on(Laya.Event.STOPPED, this, this.OnCurrentAnimationStopped);//非循环动画停止播放 这个接口在2.0后就没有了 文档...

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

303. Laya.Event.RESIZE 栈溢出问题 [ 74%]

Laya.Event.RESIZE 栈溢出问题 下面是所有代码,会出现死循环,这是不是有问题?我要监听浏览器大小来改变游戏场景大小,怎么控制 , resize的方法有问题吧?为什么我第一次加载游戏的时候就会直接触发?   import WebGL = Laya.WebGL...

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

304. 版本号:2.0.2 beta, 在sound文件夹下音乐播放不了,放入到res文件夹下可播放 [ 74%]

... = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import SoundManager = Laya.SoundManager; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export default class Test_11_Sound {  //声明一个信息文本 private t...

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

305. 图集动画结束回调有延迟 [ 74%]

...画结束回调有延迟 this.ded.addLabel("animOver",9); this.ded.on(Laya.Event.LABEL, this, this.onHitOver);  this.ded.on(Laya.Event.COMPLETE, this, this.onHitOver);  两种方法都会有延迟,不能100%执行 2018-11-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

306. laya.resource.RenderTextureCube_API3.0 [ 74%]

... _removeReference _setCPUMemory _setCreateURL _setGPUMemory _start destroy event getData gpuCompressFormat hasListener isCreateFromURL off offAll offAllCaller on once recreate clearPool configRenderContextInstance createFromPool destroyUnusedResources recoverToPool Constructors constructor new Rende...

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

307. laya.d3.webxr.core.WebXRRenderTexture_API3.0 [ 74%]

...rTarget _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event getData gpuCompressFormat hasListener isCreateFromURL off offAll offAllCaller on once recreate clearPool configRenderContextInstance createFromPool destroyUnusedResources recoverToPool Constructors constructor new WebXR...

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

308. Laya.HttpRequest 没有调用回调方法? [ 74%]

...a.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.on(Event.PROGRESS,this,processHandler); xhr.send("https://www.baidu.com/","","get","text"); function processHandler(data){ console.log(data); ...

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

309. TextInput 监听事件 Laya.Event.INPUT 事件在IOS 环境下没动作 [ 74%]

TextInput 监听事件 Laya.Event.INPUT 事件在IOS 环境下没动作 TextInput 监听事件 Laya.Event.INPUT 事件在IOS 环境下没动作 附件 : --> 2022-02-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回...

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

310. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 74%]

...is, onLoading, null, false)); // 侦听加载失败     Laya.loader.on(Event.ERROR, this, onError);     this.moveover =true;     function onAssetLoaded(texture)     {         console.log("加载结束");         pic="res/castlebeyond.jpg";         this.bgimg =...

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