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

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

861. 保存数据的数组在回调的时候变为undifine [ 69%]

...:int = 0; i < leng; i++) { heroInfo = heros[i]; if (_heroItemList[i] == null) { item = new HeroResolveItem(this.onSelectedHeroChange); _heroItemList[i] = item; } _heroItemList[i].init(heroInfo); panelHeroInfo.addChild(_heroItemList[i]); _heroItemList[i].x = i%3*190; _heroItemList[i].y = parseInt(...

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

862. 安卓app加载场景错误 [ 69%]

...100/h5/layawe ... 6756: TypeError: Cannot read property 'createTexture' of null var glTexture=this._source=gl.createTexture(); ^ TypeError: Cannot read property 'createTexture' of null at Texture2D.__proto._createWebGlTexture (http://192.167.0.100/h5/layawe ... 756:32) at Texture2D.__proto.recreateR...

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

863. movieclip destroy 后重新加载失败 [ 69%]

...ayaSample, args: undefined} >>bomb: MovieClips {frames: 0, callback: null, _isRemove: false, _group: null, _start: 384…} Texture {offsetX: 0, offsetY: 0, sourceWidth: 232, sourceHeight: 176, _w: 232…} ==================test================ >>getMovieClipAtlas: res/swf/bomb.swf true F...

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

864. laya.d3.core.light.DirectionLight_API3.0 [ 69%]

...的函数的名称。例如,functionName。 Default value args: any[] = null 传递给 method 函数的可选参数列表。 Returns void clearTimer clearTimer(caller: any, method: Function): void Inherited from Node.clearTimer Defined in laya/display/Node.ts:609 清理定时器。功能同Laya.ti...

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

865. dialog的popup方法不会关闭其他弹窗 [ 69%]

...malDialog; constructor() { super();  this.btn_signin.on(Laya.Event.CLICK, null, () => { this.showDialog("登录成功") }); this.btn_register.on(Laya.Event.CLICK, null, () => { this.showDialog("注册功能暂未开放") });  }  showDialog(context: string) { // if (this.normalDialog) { // t...

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

866. 导入3D模型有问题 [ 69%]

...e(new Laya.Vector3(0, 0, 0), true, false);         camera.clearColor = null;   //添加自定义模型        var mesh = scene.addChild(new Laya.Sprite3D.load("res/dg/dg.lh"));        mesh.once(Laya.Event.HIERARCHY_LOADED, null, function (sprite) {        setMeshParams(sprite, Laya....

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

867. 关于资源回收的问题 [ 69%]

... { Laya.timer.clear(this, loop); video.pause(); video.destroy(true); video=null; }小提示:video.pause,1.7.4beta版本h还需要手动暂停,1.7.4beta以后的版本将会将pause加到destory下,开发者只需要调destroy即可,无需再手动暂停video 2017-05-09 0 5 分享 微博 QZ...

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

868. 鼠标 MOUSE_DOWN Event 回来的信息不符合 [ 69%]

...e); } 返回的信息: Event _stoped: false currentTarget: Stage {focus: null, designWidth: 1307, designHeight: 758, canvasRotation: false, canvasDegree: 0, …} nativeEvent: MouseEvent {isTrusted: true, screenX: 906, screenY: 460, clientX: 457, clientY: 278, …} target: Stage {focus: null, desig...

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

869. 节点的visible在初始化的时候生效,但是在Event的方法里面不生效 为什么呢? [ 69%]

...nNode = trainItem; 后续有一个事件 option.on(Laya.Event.MOUSE_DOWN, null, function(e){   option.startDrag({}, false, 1) }) option.on(Laya.Event.MOUSE_MOVE, null, function(){     questionNode.answers.visible = true; //这个不生效 }); 2017-09-22 0 0 分享 微博 QZONE 微信 为什么...

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

870. laya.map.TileAniSprite_API3.0 [ 69%]

...区域滚动效果,但scrollRect会保持0,0点位置不变。 default null Returns Rectangle Inherited from Text.viewport Defined in laya/display/Sprite.ts:1885 视口大小,视口外的子对象,将不被渲染(如果想实现裁剪效果,请使用srollRect),合理使用能提高渲染...

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