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

大约有 2,743 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0078 秒)

351. 关于代码创建的遮罩会显示遮罩背景色的问题 [ 81%]

...IDE中创建的遮罩效果是正常的 onAwake(): void { let mask: Laya.Sprite = new Laya.Sprite(); Laya.stage.addChild(mask); mask.graphics.drawCircle(80,50,40,"#ffffff"); let sprite: Laya.Sprite = new Laya.Sprite(); Laya.stage.addChild(sprite); sprite.loadImage("myComp/loading_01.png"); //将遮...

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

352. 向TiledMap中的对象层中的矩形框添加精灵,不显示 [ 81%]

...,然后在Laya中,获取这个矩形,并且向矩形中添加一个sprite。虽然矩形的位置已经在窗口中,但是sprite无法显示。请问问题出在哪里?   附件 : --> 2017-05-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

353. 新手!谁懂得把下面两个文件转成layaair可以运行的代码 [ 81%]

...     import com.legend.manager.AppManager;       import flash.display.Sprite;     import flash.events.Event;     import flash.external.ExternalInterface;     import flash.net.URLVariables;     import flash.text.TextField;     import flash.text.TextFieldAutoSize;     import flash.tex...

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

354. U3D导出两个相同的特效。有一个不显示 [ 81%]

...机场景,以及两个粒子特效。在laya中代码如下: this._createSprite3D = 2; Laya.loader.create("res/h5/LayaScene_Effect/Effect.lh",Handler.create(this,this.onEffectOK),null,Laya.Sprite3D); Laya.loader.create("res/h5/LayaScene_aixin/aixin.lh",Handler.create(this,this.onEffectOK),null,Lay...

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

355. [LayaNative3]laya3.3.0使用sprite的drawToCanvas方法在APP上返回数据异常 [ 81%]

[LayaNative3]laya3.3.0使用sprite的drawToCanvas方法在APP上返回数据异常 在APP上new ImageData() 返回一个空对象{} 附件 : --> 2025-01-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么...

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

356. 3D模型无法用Tween类吗 [ 81%]

3D模型无法用Tween类吗 //载入并显示模型 var layaMonkey: Laya.Sprite3D =Laya.Sprite3D.load("LayaMonkey/LayaMonkey.lh") as Laya.Sprite3D; scene.addChild(layaMonkey); layaMonkey.transform.localScale = new Laya.Vector3(0.001,0.001,0.001); layaMonkey.transform.localPosition = new Laya.Vecto...

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

357. layaAir2.3克隆以及获取节点重大bug!!! [ 81%]

....Loader.getRes("res/my_res/guns_test.lh");          let a :Laya.Sprite3D = new Laya.Sprite3D();         a.addChild(guns_test.getChildAt(0).clone());         a.transform.translate(new Laya.Vector3(0,1.38,-60))//transform.localPositionX-=2;         a.transform.sc...

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

358. BackGround.super(this);这个报错 Cannot read property 'call' of undefined [ 81%]

..._super) { function BackGround() { BackGround.super(this); this.bg=new Laya.sprite; this.bg.loaImage("war/beijing.png"); this.addchild(this.bg);  }; Laya.class(BackGround,"BackGround",_super) return BackGround; })(Laya.sprite); BackGround.super(this);这个报错 Cannot read property 'call' of undef...

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

359. 关于从网络异步加载图片的问题 [ 81%]

...url对象;////我们先用第一种方式显示图片到舞台;var sp:Sprite = new Sprite();sp.loadImage(url);Laya.stage.addChild(sp);//添加到舞台   第2行代码,为什么是从第4个字节开始读取呢?   我尝试了下,发现这段代码无法成功创建sprite。而我改为...

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

360. 3D模型怎么删除?没回切换页面原来的模型都还在? [ 81%]

...his.scene); 3.新建模型,并且添加B页面的3D场景中 var map: Laya.Sprite3D = Laya.Sprite3D.load("cj/cj.lh"); this.scene.addChild(map);   4.切换页面 private playGame(): void { Laya.stage.removeChild(this.welcomePanel); this.gamePanel = new GamePanel();//不管是不是重新new的,模...

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