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

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

381. 新手引导 挖洞 不用 cacheAs="bitmap" 希望能帮助那些和我一样有需求的码农!你好我好大家好才是真的好!请各位大佬批评指教! [ 35%]

...       // image.crossOrigin = "";         image.src = "res/atlas/pixel.png";         image.onload = function()         {             // 界面上按钮所在的位置以及按钮的宽高             drawImage(image, 462, 194, 156, 48, 0); // ...

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

382. 绘制图形 · LayaAir3.0文档 · LAYABOX [ 26%]

...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

383. 实体组件系统 · LayaAir3.0文档 · LAYABOX [ 10%]

...: 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