TiledTile Component References

    Create an empty node under the Layer node automatically generated during the creation of the TiledMap component. Then select the empty node and click Add component -> TiledMap -> TiledTile under the Inspector panel to add the TiledTile component to the node. Then you can manipulate the map block by setting the properties on the TiledTile component.

    For related TiledTile script interface, please refer to the .

    Create by Code

    There are two ways to set up a map block in code. When setting the TiledTile in a Layer node, the TiledTile at the original location of that Layer node will be replaced.

    Create by adding a TiledTile Ccmponent to a node

    Get TiledTile by getTiledTileAt

    TiledTile can control the specified map block and apply the displacement, rotation and scaling of nodes to the map block. The user can change the map block style by changing the gid property of the TiledTile.

    PropertyDescription
    PositionChange the Position of the specified TiledTile
    RotationRotate the specified TiledTile
    ScaleScale the specified TiledTile
    ColorChange the Color of the specified TiledTile
    OpacityAdjust the Opacity of the specified TiledTile
    SkewAdjust the Skew of the specified TiledTile