LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

Tilemap.SetEditorPreviewTransformMatrix

public void SetEditorPreviewTransformMatrix(Vector3Int position, Matrix4x4 transform);

Parameters

positionPosition of the editor preview Tile on the Tilemap.
transformThe transform matrix.

Description

Sets the transform matrix of an editor preview tile given the XYZ coordinates of a cell in the tile map.

The editor preview tile is used for previewing possible additions to the tile map.