大约有 383 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0036 秒)
Laya_社区(319) Laya2.0_文档(40) Laya3.0_文档(12) Laya2.0_示例(4) Laya_示例(4) Laya3.0_api(2) Laya2.0_api(2)
... // image.crossOrigin = ""; image.src = "res/atlas/pixel.png"; image.onload = function() { // 界面上按钮所在的位置以及按钮的宽高 drawImage(image, 462, 194, 156, 48, 0); // ...
来源: Laya_社区 发布时间: 20200604
...dth, height, sizeGrid, false, color)); } 代码示例: Laya.loader.load("atlas/comp/image.png").then((res: Laya.Texture) => { let sp = new Laya.Sprite(); // 绘制九宫格纹理 sp.graphics.draw9Grid(res, 0, 0, 1024, 626, [0, 0, 0, 0, 1]); this.owner.addChild(sp); }); 运行效果: (图9-2...
来源: Laya3.0_文档 发布时间: 20231129
...: void { this.spr.size(512, 313); //设置Sprite大小 this.spr.loadImage("atlas/comp/image.png"); //添加纹理 } } 效果如图4-2所示: (图4-2) 4.1.2 3D节点的基础使用 首先,如动图4-3所示,将场景中已经添加好的3D节点Cube拖入到@property暴露的属性入口中...
来源: Laya3.0_文档 发布时间: 20240528