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

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

771. 针对2.0.0 beta5 setLoadingPage 做增强 [ 71%]

...ndler otherHandler().then(res => { // 默认进度加1% this._loadScene.event("progress", .01) if (res) param = .concat((param || ), [res]) Laya.Scene.open(url, closeOther, param, complete, progress) }) } /** * 清除loading page */ clearLoadingPage() { this._loadScene = null Laya.Scene.setLoadin...

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

772. [LayaAirIDE3]Panel会使HSlider的拖拽结束检测事件失效 [ 71%]

...n);         if (sliderButton) {             sliderButton.on(Laya.Event.MOUSE_UP, this, () => {                  console.log("滑块按钮拖拽结束");             });         } HSlider是Panel的子物体,会导致这个事件失效,当HSlider拿出Panel的时...

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

773. laya.ui.ColorPicker [ 71%]

...Classes | Index | Frames No Frames ColorPickerProperties | Methods | Events Packagelaya.uiClasspublic class ColorPickerInheritanceColorPicker UIComponent Sprite Node EventDispatcher Object ColorPicker 组件将显示包含多个颜色样本的列表,用户可以从中选择颜色。 Public ...

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

774. 使用webgl之后toDataUrl返回黑色的图像 [ 71%]

...,请参考以下代码 package { import laya.display.Sprite; import laya.events.Event; import laya.utils.Browser; import laya.utils.Stat; import laya.webgl.WebGL; public class LayaAirDemo { private var sp:Sprite ; public function LayaAirDemo() { //初始化引擎 Laya.init(Browser.width, Browser.h...

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

775. 分享:Laya开发TS项目使用pomelo客户端SDK(pomelo-jsclient-websocket) [ 71%]

...elo/pomelo-client.js"></script> 另外,pomelo-client.js里的 var EventEmitter = window.EventEmitter;  修改为  var EventEmitter = window.Emitter; 不然可能会遇到EventEmitter未定义的报错。 最后,关于.d.ts文件,这只是代码提示的作用,没有也可以调用...

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

776. laya.d3.core.light.PointLight [ 71%]

... Classes | Index | Frames No Frames PointLightProperties | Methods | Events Packagelaya.d3.core.lightClasspublic class PointLightInheritancePointLight LightSprite Sprite3D Node EventDispatcher Object PointLight 类用于创建点光。 Public Properties Hide Inherited Public Properties Show I...

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

777. 为什么点击图片会有穿透事件的功能??费解 [ 71%]

...mp自带的组件。 下面的圆形金币是图片,我添加了 on(Laya.Event.MOUSE_DOWN, this,this.mouseHandlerDown,); on(Laya.Event.MOUSE_UP, this,this.mouseHandlerUp,[i]);[/i] [i] [/i] [i]为什么在这个bg.png上面点击,下面的金币也会有点击事件?[/i] 附件 : --> 2018-01-31...

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

778. laya.display.Animation [ 71%]

...l Classes | Index | Frames No Frames AnimationProperties | Methods | Events | Constants Packagelaya.displayClasspublic class AnimationInheritanceAnimation AnimationBase Sprite Node EventDispatcher Object Animation 是Graphics动画类。实现了基于Graphics的动画创建、播放、控...

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

779. 骨骼动画播放完了,回调隐藏,回调在哪里 [ 71%]

...Templet(); mFactory.loadAni("NiuXingTianXia/spine/start2.sk"); mFactory.on(Event.COMPLETE, this, function () { mArmature = mFactory.buildArmature(); mArmature.pos(650, 330); mArmature.play(0, false); this.addChild(mArmature); }); 2017-11-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

780. 龙骨动画的监听回调,有时能回调,有时不能回调 [ 71%]

...c initTemplet(){ this.mFactory = new Laya.Templet(); this.mFactory.on(Laya.Event.COMPLETE, this, this.parseComplete); // this.mFactory.on(Laya.Event.STOPPED,this,this.parseComplete); this.mFactory.on(Laya.Event.ERROR, this, this.onError); this.mFactory.loadAni("res/games/Game_ddz/animation/ddz_figur...

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