大约有 6,956 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0289 秒)
Laya_社区(6391) Laya2.0_文档(168) Laya3.0_文档(83) Laya3.0_api(76) Laya2.0_api(72) laya_api(68) Laya_示例(62) Laya2.0_示例(36)
...56 _graphics _graphics: AutoBitmap Inherited from Clip._graphics Overrides Sprite._graphics Defined in laya/ui/Clip.ts:151 _ownGraphics _ownGraphics: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in laya/...
来源: Laya3.0_api 发布时间: 20231115
Sprite 设置高度后,再次添加子对象,重新设置高度无效 第一次设置Sprite.height=1000;正常。当我点击一个按钮,给Sprite里面添加一些子对象后,1000高度不够,然后在设置Sprite.height=2000;无效了,还是1000的高度。没有变,我的Spri...
来源: Laya_社区 发布时间: 20170528
点击区域问题 var con1:laya.display.Sprite = new laya.display.Sprite; Laya.stage.addChild(con1); con1.x = con1.y = 100; var con:laya.display.Sprite = new laya.display.Sprite; con1.addChild(con); // con.scrollRect = new laya.maths.Rectangle(200,200,500,500); con.x = con.y = -200; var sp:laya.di...
来源: Laya_社区 发布时间: 20180106
Sprite设置宽度为0显示的是原图大小 const sp = new Laya.Sprite(); sp.texture = Laya.loader.getRes("res/progress_1.png"); sp.width = 0;Sprite设置宽度为0不生效,显示的是原图大小 附件 : --> 2022-03-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20220309
...显示。 > ## 一、遮罩API介绍 遮罩属性位于[laya.display.Sprite](https://layaair2.ldc2.layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=Core&category=display&class=laya.display.Sprite) API内(),该属性的说明如图1所示: (图1) ## 二、...
来源: Laya2.0_文档 发布时间: 20210714
...: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:641 _scene3D _scene3D: any Inherited from Scene._scene3D Defined in laya/display/Scene.ts:28 _skinBaseUrl _skinBaseUrl: string Inher...
来源: Laya3.0_api 发布时间: 20231115
设置了抗锯齿,sprite设置了cacheAs="bitmap", 绘制出来的图形会有锯齿 需要绘制矢量图形,但drawcall非常高,sprite设置cacheAs=“bitmap”,能够显著降低drawcall,但是会出现锯齿,怎么解决? 2018-03-13 添加评论 免费帖 --> 分享 微博 QZONE...
来源: Laya_社区 发布时间: 20180313
Sprite如何导出、导入 在一个项目里面用Sprite做了个人物小动画,现在想把他直接拷贝过来在新项目中用。发现在视图编辑界面复制再去新项目粘贴无效,导出也找不到相关设置,请问怎么操作? IDE版本:1.7.12beta 2017-11-25 添加...
来源: Laya_社区 发布时间: 20171125
有关Sprite3D使用lh资源文件的问题 var plane = this.scene.addChild(Laya.loader.getRes("res/LayaScene_plane/plane.lh")) as Laya.Sprite3D; 这样可以根据一个lh文件 来创建一个Sprite3D类型的对象。 那么请问,如果我写了一个类A,并继承与Laya.Sprite3D 我要怎...
来源: Laya_社区 发布时间: 20180227
...", type:number, default:5}*/ public horizontalSpace: number = 5; private sprite: Laya.Sprite; constructor() { super(); this.sprite = new Laya.Sprite(); } drawText(x: number, y: number, w: number, h: number) { console.log(2222); var j = 0;//控制行列 var printNumber = 0;//当前输出字数 var fo...
来源: Laya_社区 发布时间: 20191103