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

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

1521. 写的更换纹理的代码不生效,大佬帮忙看一下。(工程附件已经上传) [ 80%]

...()没有能够清除这个节点的纹理                 (this.owner as Laya.Sprite).graphics.clear();                 var t: Laya.Texture = Laya.loader.getRes("puzzlePic/pi-" +this.levelNum +"-"+this.owner.name.slice(4,1)+ "-2.png");            ...

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

1522. 怎样改变图片大小 [ 80%]

... 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: this.bg_img.skin = "ui/bg.jpg"; this.bg_img.width = Laya.stage.width; this.bg_img.height = Laya.stage.height; Image使用skin修改显示,改变宽高时,会拉伸显示内容 2018-01-30 0 0 分享 微博 QZONE 微信 为...

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

1523. 在安卓手机上drawToTexture不能正确返回纹理对象,是HTMLCanvas [ 80%]

...ID: number, sourceData?: any): void {let bounds = dragCom.getSelfBounds(); this._agentTexture = Laya.Sprite.drawToTexture(dragCom,Laya.SpriteConst.TEXTURE,bounds.width, bounds.height, -bounds.x + view.x, -bounds.y + view.y); this._agent.graphics.drawTexture(this._agentTexture, (this._agent.width - b...

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

1524. 话说Laya3D怎么自定义shader来实现后期处理呢? [ 80%]

...没有起作用啊cmd.blitScreenTriangle(sourceTexture, destTexture, null, this._shader, this._shaderData, 0); 2020-05-22 0 0 分享 微博 QZONE 微信 MQ 赞同来自: Try......................  render(context: { command: any; camera: { viewport: any; }; source: Laya.RenderTexture; def...

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

1525. XMLRequest在layaNative下请求崩溃,请求官方协助! [ 80%]

...,请求官方协助!  public post(url: string, data: any, callback: (this: void, data: JSON) => void): void {         let hr = new Laya.HttpRequest();         hr.once(Laya.Event.COMPLETE, this, (e: any): void => {             callback(JSON.parse(hr.data));         });  ...

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

1526. list删除元素,如果2个名字一样,他不会刷新颜色。 [ 80%]

...。   引用场景,卡牌融合。 比较常用的list功能。 ```  this.uiList.refresh(); 也无效 ```    this.uiList.array=[]; this.uiList.array=修改数组 this.uiList.refresh();  该数组情况,重新赋值也无效   临时解决方案: 关闭ui重新打开,这个功能比较...

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

1527. 电脑上跟手机上运行不一样(手机上判断是进不去的,但我打印出来是满足条件的,必现) [ 80%]

...断是进不去的,但我打印出来是满足条件的,必现) if(this._view && this._tableInfo.hasOwnProperty('players'))             {                 let data = this._tableInfo;                 alert(param.players[0].uid +' '+App.uid +' '...

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

1528. timeline 类动作节点回调 [ 80%]

..., alpha:1},2000,null,0); timeLine.play(0,true); timeLine.on(Event.COMPLETE,this,this.onComplete); timeLine.on(Event.LABEL, this, this.onLabel); } function onComplete() { console.log("timeLine complete!!!!"); } function onLabel(label) { console.log("LabelName:" + label); }少年 没仔细看官方的...

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

1529. 代码创建精灵监听不到事件? [ 80%]

...data: StorageRoom.map_storageData[0][0],tag:0}; box.on(Laya.Event.MOUSE_UP,this,this.onclick,[arr]);   var _proto = StorageUILayer.prototype;   _proto.onclick = function(params){ console.log("--------------------------------hhhhhhhhhhh- "); }   ----------------------------------------------------...

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

1530. 异步加载一个UI对象时的问题 [ 80%]

...View.json", type: Loader.JSON }, ] Laya.loader.load(assets, Handler.create(this, this.onLoaded)); } private onLoaded():void { this.createView(Laya.loader.getRes("view/MyView.json")); } } 因为加载是异步的,很有可能在加载过程中,用户或者其他行为逻辑已经反复开关这...

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