大约有 6,906 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0169 秒)
Laya_社区(6235) Laya2.0_文档(147) Laya3.0_api(118) laya_api(102) Laya2.0_api(90) Laya_示例(86) Laya3.0_文档(71) Laya2.0_示例(57)
...} render: { sprite: { texture: texture, xOffset: 20.5, yOffset: 28 ...
来源: Laya_社区 发布时间: 20170102
...//等待可调试 Laya.timer.once(1000, null, ()=>{ let mask = new Laya.Sprite() let sprite = new Laya.Sprite() sprite.mask = mask Laya.stage.addChild(sprite) //正方形 sprite.graphics.drawPoly(0, 0, [100, 100, 100, 200, 200, 200, 200, 100], "#ffffff") //一挑粗直线 遮挡正方形的左半...
来源: Laya_社区 发布时间: 20180224
...er = 1):void 绘制一系列曲线。 富文本下划线绘制bug new Laya.Sprite();绘制图形以后,怎么删除释放资源? 使用滤镜、遮罩、或者绘制频率很高的时候回出现黑屏闪烁 如何给Sprite的graphics绘制的线条添加发光滤镜? 用sprite.graphics绘制...
来源: Laya_社区 发布时间: 20201214
....3 使用Mesh2DRender会导致ColorFilter影响其他对象 先创建一个Sprite设置texture,并设置ColorFilter。再创建一个Sprite添加Mesh2DRender(这两者层级关系必须是mesh在上层) 后续层级在他们上面的Sprite,不管是使用graphics绘制,还是设置texture...
来源: Laya_社区 发布时间: 20250605
... @regClass() export class Script extends Laya.Script { declare owner: Laya.Sprite3D; @property(Laya.Scene3D) private scene: Laya.Scene3D; private videoPlane: Laya.Sprite3D; private videoTexture = new Laya.VideoTexture(); onAwake(): void { //获取场景中要添加视频纹理的3D节点 this.videoP...
来源: Laya3.0_文档 发布时间: 20251010
...面执行的绘制给清理掉。代码如下: // 程序入口 import Sprite = Laya.Sprite; import Stage = Laya.Stage; class GameMain{ private sp:Sprite; constructor() { Laya.init(600,400); this.sp = new Laya.Sprite(); Laya.stage.addChild(th...
来源: Laya_社区 发布时间: 20170316
...然不重合?? 我使用一个Button创建的按钮,和使用 this.sprite_show = new Laya.Sprite(); this.sprite_show.graphics.drawTexture(Laya.loader.getRes(this.resStr), 0, 0, this.width, this.height); 画出来的两个对象,sprite_show的图形竟然被缩小了一点点。。。都是...
来源: Laya_社区 发布时间: 20171102
又一个tiledmap的问题 tiledmap它的基类是object不是sprite,就没法用tiledmap.addchild这种方式去在地图上添加单位 这样实现角色在地图上行走或者固定在地图上就不是很方便 有什么好的方法吗?(地图本身是可以卷动的,要让角色跟着地...
来源: Laya_社区 发布时间: 20161130
...url: "../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", clas: Laya.Sprite3D, priority: 1 } ]; Laya.loader.create(resource, Laya.Handler.create(this, onLoadFinish)); function onLoadFinish() { this.scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/ColliderScene/ColliderDe...
来源: Laya_示例 发布时间: 20260303
...ine", true); // 设置画布上的对齐参照物 let reference = new Laya.Sprite(); Laya.stage.addChild(reference); reference.pos(100, 100); reference.size(600, 400); reference.graphics.drawRect(0, 0, reference.width, reference.height, "#CCCCCC"); // 每次舞台尺寸变更时,都会调用Utils....
来源: Laya2.0_示例 发布时间: 20260303