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

大约有 1,155 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0058 秒)

1001. 求如何在laya中优雅地使用第三方的JavaScript [ 52%]

...• 2016-12-28 10:34 不行,编译时提醒报错,warning:QUnit.module This variable is not defined.我想使用QUnit这个框架,请给一个完整的示例项目好吗 charley • 2016-12-28 16:56 @15068753667:需要在引用LayaAir引擎库之前,先引用第三方JS库,再通过引擎提...

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

1002. 如何为list内部的button添加事件 [ 52%]

...xx)就是list.datasource[xxx]吧? weiyongwill • 2017-01-06 11:21 "this.sList.getItem(...).getChildByName is not a function" weiyongwill • 2017-01-06 14:39 经过测试在List.mouseHandler中点其他的元素都能通过e.target.name获取到名字,唯独textinput通过e.target.nam...

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

1003. laya.d3.core.pixelline.PixelLineSprite3D_API3.0 [ 52%]

...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void clone clone(): Node Inherited from RenderableSprite3D.clone Defined in laya/d3/core/Sprite3D.ts:300 克隆。 Returns Node 克隆副本。 contains contains(n...

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

1004. clip里的WeakObject.I缓存的数据有问题 [ 52%]

...stage.scaleMode = Stage.SCALE_FULL; Stat.show(); Laya.stage.on(Event.CLICK,this,clickFun); } private function clickFun():void { if( clip == null ){ clip = new Clip("1.png",6,6); Laya.stage.addChild(clip); clip.play(); }else{ clip.dispose(); clip = null; } }   2017-11-28 0 0 分享 微博 QZONE 微...

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

1005. android旋转屏幕 半边黑屏 [ 52%]

..."; spr.addChild(te); Laya.stage.addChild(spr); Laya.stage.on(Event.CLICK, this, function():void { if (Laya.stage.screenMode == Stage.SCREEN_HORIZONTAL) { if (Browser.window.conchConfig) { Browser.window.conchConfig.setScreenOrientation(1); } Laya.stage.screenMode = Stage.SCREEN_VERTICAL; Laya.stage....

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

1006. 关于对象池Laya.Pool的用法 [ 52%]

...sh(sp); Laya.stage.addChild(sp); } } initialize(); Laya.stage.on("click", this, function() {     var sp;     for(var i = 0, len = sprites.length; i < len; i++)     {         sp = sprites.pop();         Pool.recover(SPRITE_SIGN, sp);         Laya...

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

1007. Clip属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 52%]

...Laya.loader.load([buttonSkin, clipSkin, bgSkin], laya.utils.Handler.create(this, onSkinLoaded)); })(); function onSkinLoaded() { showBg(); createTimerAnimation(); showTotalSeconds(); createController(); } function showBg() { var bg = new Image(bgSkin); bg.size(224, 302); bg.pos(Laya.stage.width - bg...

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

1008. Laya.stage.mouseEnabled = false;设置之后不生效,还是可以接收鼠标事件 [ 52%]

...3 人 yyqx1122 • 2018-04-17 10:51 代码如下: Laya.stage.on('click', this, function(){ console.log('click'); Laya.stage.mouseEnabled = false; }) 我给Laya.stage绑定了鼠标事件,然后我将Laya.stage.mouseEnabled手动设置为false,这个时候Laya.stage应该是不接收鼠标事...

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

1009. 3D粒子 · LayaAir3.3 · 引擎文档 · LAYABOX [ 52%]

... ret; } //粒子特效初始化 private Init(file_path:string): void { if (this._isInited) { return; } this._filePath = file_path; console.log("Particle3D"); //从拿到的粒子系统克隆一个 var res = Laya.loader.getRes(file_path); var particle = res.clone(); this._particle = particle; //获...

来源: Laya3.0_文档 发布时间: 20250214

1010. 3D粒子编辑模块 · LayaAir3文档 · LAYABOX [ 52%]

... ret; } //粒子特效初始化 private Init(file_path:string): void { if (this._isInited) { return; } this._filePath = file_path; console.log("Particle3D"); //从拿到的粒子系统克隆一个 var res = Laya.loader.getRes(file_path); var particle = res.clone(); this._particle = particle; //获...

来源: Laya3.0_文档 发布时间: 20250104