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

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

691. tiledmap对象层的东西无法显示 [ 64%]

tiledmap对象层的东西无法显示 一张girdwidth=5760, girdheight =3840的地图,viewRect设置为viewRect = new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height)时,对象层的东西无法显示出来,但是设置为 new Laya.Rectangle(0, 0, girdwidth, girdheight)却又能显...

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

692. 圆不跟谁 sprite 一起缩放? [ 64%]

...序入口 class GameMain{ constructor() { Laya.init(Browser.width, Browser.height, WebGL); this.CreateCircle(); // this.CreateRectangle(); } private firstSp: Laya.Sprite; private _adaptSp: Laya.Sprite; private _pointList : Point[]; private _rootSp : Laya.Sprite;  public CreateCircle() { this._rootS...

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

693. Laya3d加载Arena/Arena.ls报错 [ 64%]

...            UIID.DEFAULT_WIDTH = 960;             UIID.DEFAULT_HEIGHT = 640;             //Laya.init(UIID.DEFAULT_WIDTH,UIID.DEFAULT_HEIGHT, Laya.WebGL);             Laya3D.init(UIID.DEFAULT_WIDTH,UIID.DEFAULT_HEIGHT, false);             //添加3D场景           ...

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

694. app 截屏分享功能问题 [ 64%]

...:Texture; htmlCanvas = Laya.stage.drawToCanvas(Laya.stage.width,Laya.stage.height,0,0); texture = new Texture(htmlCanvas); texture.bitmap; 2018-03-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 qian 赞同来...

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

695. laya.ui.FontClip_API3.0 [ 64%]

...url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy align alpha anchorX anchorY autoPlay blendMode bottom cacheAs centerX centerY clipHeight clipWidth clipX clipY components customRenderEnable dataSource destroyed direction disabl...

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

696. 求助关于尺寸大小适配问题 [ 64%]

...放。。。   因为laya.init的时候我可以根据laya.browser.width/(height)来根据实际尺寸设置,但是UI编辑器里做的UI并不可以,然后他们是会怎么处理? 2016-08-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

697. 绘制三角形、多边形及根据数据绘制图案(JavaScript-LayaAir基础篇(JS)-矢量图) [ 64%]

...       canvas.graphics.drawPoly(Laya.stage.width / 2, Laya.stage.height / 2, path, "#FF7F50");        } })(); ``` 代码运行效果如下图所示: ​ ![blob.png](img/4.png) ​ (图4) ​ 通过上面的示例代码的写法,是不是感觉代码的可读性得到了...

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

698. 请教个问题:如何重绘sharedCanvas [ 64%]

...s = Laya.Browser.window.sharedCanvas; sharedCanvas.width = 0; sharedCanvas.height = 0; // let tempMatrix = message.matrix; // let matrix = new Laya.Matrix(); // matrix.a = tempMatrix.a; // matrix.b = tempMatrix.b; // matrix.c = tempMatrix.c; // matrix.d = tempMatrix.d; // Laya.stage._canvasTransform...

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

699. laya.ui.UIGroup [ 64%]

...e : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Component filters : Array滤镜集合。可以设置多...

来源: laya_api 发布时间: 20170929

700. 绘制三角形、多边形及根据数据绘制图案(TypeScript-LayaAir基础篇(TS)-矢量图) [ 63%]

...       canvas.graphics.drawPoly(Laya.stage.width / 2, Laya.stage.height / 2, path, "#FF7F50");       }     } } new laya.Sprite_DrawShapes(); ``` 代码运行效果如下图所示: ​ ![blob.png](img/4.png) ​ (图4) ​ 通过上面的示例代码的写法,是不...

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