在TileMapLayer中显示一个瓦块(Godot学习)

张开发
2026/4/7 17:45:25 15 分钟阅读

分享文章

在TileMapLayer中显示一个瓦块(Godot学习)
在TileMapLayer中显示一个瓦块下面是TileMapLayer的脚步using Godot; using System; public partial class TileMapLayer : Godot.TileMapLayer { public override void _Ready() { // 在地图上放置 tile假设 tileId 0 存在于 TileSet 中 SetCell(new Vector2I(1, 1), 0, Vector2I.Zero); } }

更多文章