0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Unity 6.5でTilemapのSetTilesとSetTilesBlockにオーバーロードが増える

0
Posted at

Unity 6.5のベータ版が2026年3月下旬に公開されました。

Unity 6.5では、TilemapのSetTilesメソッドとSetTilesBlockにオーバーロードが増えそうです。該当のリリースノートはこちら。

2D: Added: Added new SetTiles APIs for the Tilemap using native buffers.

Tilemap.SetTiles

Unity 6.4までのTilemap型のSetTilesメソッドには、次の2つのオーバーロードがありました。

public void SetTiles(
  Vector3Int[] positionArray,
  TileBase[] tileArray
);
public void SetTiles(
  TileChangeData[] tileChangeDataArray, 
  bool ignoreLockFlags
);


Unity 6.5でTilemapに、次のシグネチャのSetTilesメソッドのオーバーロードが追加されました。

public void SetTiles(
  NativeArray<Vector3Int> positionArray,
  TileArray tileArray
);
public void SetTiles(
  NativeArray<Vector3Int> positionArray,
  TileArray tileArray,
  NativeArray<Color> colorArray,
  NativeArray<Matrix4x4> transformArray,
  bool ignoreLockFlags
);

Tilemap.SetTilesBlock

Unity 6.4までのTilemap型のSetTilesSetTilesBlockは、次のようなシグニチャを持つメソッドでした。

public void SetTilesBlock(
  BoundsInt position,
  TileBase[] tileArray
);


Unity 6.5からTilemap型のSetTilesSetTilesBlockに、次のようなシグニチャのオーバーロードが追加されました。

public void SetTilesBlock(
  BoundsInt position,
  TileArray tileArray
);

ひとこと

Unity 6.4でいくつかのメソッド、そしてメソッドのオーバロードが追加されましたが、Unity 6.5でもさらに追加されそうですね。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?