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

大约有 3,979 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0062 秒)

2831. Ease.backIn 如何设置冲过幅度 [ 55%]

Ease.backIn 如何设置冲过幅度 如题 var ease: any = Laya.Ease.backIn(0,0,0,0, 1.2); Laya.Tween.to(this.SelectBox, {scaleX: 0 , scaleY : 0}, 150, ease /*Laya.Ease.backIn*/); 目前冲过的 抖动幅度有些大 看看能不能微调 但现在这样 冲过抖动都没有了 2017-08-07 添加...

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

2832. 循环自绘的性能问题 [ 55%]

...text = wx.getOpenDataContext(); let sharedCanvas = openDataContext.canvas; var texture:Laya.Texture = new Laya.Texture(sharedCanvas); this.graphics.drawTexture(texture, 0, 0, sharedCanvas.width, sharedCanvas.height) 目前性能很差,所以我想请教一下,有没有更优秀的方案? 2018-...

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

2833. 截图保存的时候可以设置图片的大小? [ 55%]

...h.saveAsPng(arrayBuff, width, height, conch.getCachePath() + "/test.png"); var url = "file:///" + conch.getCachePath() + "/test.png"; }); 如果:改变第二行的宽高,保存下来的图片就是雪花图了,但不设置宽高,图片又太大了,怎么解决..   2017-08-11 添加评论 免费帖 ...

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

2834. Graphics绘图在WebGL出现锯齿 [ 55%]

...* * 设置是否抗锯齿,只对2D(WebGL)、3D有效。 */ public static var isAntialias:Boolean = false;开启设置为true! 2017-04-19 0 0 分享 微博 QZONE 微信 25 赞同来自: 好像开启这个抗锯齿的 是在初始化引擎之前开启吗? 2018-05-22 0 0 分享 微博 QZONE 微...

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

2835. 如何获得特效的宽高 [ 55%]

如何获得特效的宽高 var bounds = ani.getGraphicBounds(); ani.scale(80/bounds.width ,80/bounds.height) 我想把特效设置为宽高都为80 80的 但是getGraphicBounds(); 有的特效获取出来的width和height 都为0 2017-06-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

2836. 目标纹理的使用(JavaScript-3D基础(JS)-LayaAir3D之Camera) [ 55%]

...RenderTarget属性的摄像机。 ```typescript //渲染到纹理的相机 var renderTargetCamera = scene.addChild(new Camera(0, 0.3, 1000)); renderTargetCamera.transform.position = new Vector3(-28.8, 8, -60); renderTargetCamera.transform.rotate(new Vector3(0, 180, 0), true, false); //选择渲染...

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

2837. Stage中删除不掉Scene [ 55%]

...不掉Scene Laya.stage.on(Laya.Event.MOUSE_UP, this, function () {     var str = "";     if (!hit.sprite3D) {         str = "点击选取的几何体";     } else {         Laya.stage.removeChild(scene3D);     }     console.log(str); });     每次删除scene3D后又被添加进...

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

2838. 遮罩出现黑边! [ 55%]

...nored 然而我的图片并没有2048这么大。。。。。 代码如下 var mask:Image = new Image(); mask.skin = "res/atlas/遮罩.png" mask.pos(0,0); _cloudSP.mask = mask; 附件 : --> 2017-12-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

2839. pivotX 和 AnchorX的区别 [ 55%]

...问题 用二的幂次方图集和非二的幂次方图集区别在哪? var 与 name 的详细区别是什么? Laya.Handler.create和new Laya.Handler有啥区别 在初始化时候使用canvas 或者WebGL 两种模式对使用引擎有什么区别? Laya的Scene和View什么区别? Image和Sp...

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

2840. Laya Label text不显示 [ 55%]

... public static showNativeGroup() { /* if (this.nativeGroup) { return; } */ var self = this; Laya.View.load(SdkUtil.sdkDomain + "sdkres/laya/native/NativeGroup.json", new Laya.Handler(this, function (group: Laya.View) { /* if (this.nativeGroup) { return; } */ self.nativeGroup = group; self.nigrop = n...

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