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.
Property | Description |
---|---|
Position | Change the Position of the specified TiledTile |
Rotation | Rotate the specified TiledTile |
Scale | Scale the specified TiledTile |
Color | Change the Color of the specified TiledTile |
Opacity | Adjust the Opacity of the specified TiledTile |
Skew | Adjust the Skew of the specified TiledTile |