Tile

Class in Nostalgia / Inherits from: AssetObject

Description

Data of the tile.

Fields

Field Name Description
animation Number of frames to the frame animation. The image of the animation, you must be arranged to the right from the coordinates that you specify in the Tile.position.
animationFrameRate Animation frame rate.If you specify a negative value to reverse playback.
color Tile of color
combinationGroupName Combination group nameIf the tile of the same combinationGroupName is adjacent to combine. combinationGroupName does not bind to other than the same tile in the case of empty.
combinationSideFlags It controls the combination of each side.
height height
position Upper left coordinates on the texture (pixels).
size Width of one tile (pixels).
type Type of tile.
uvShiftInside Texel value of how far the UV is shifted inside the tile.
width width

Properties

Property Name Description
collider Presence or absence of the Collider.
isTrigger Is Trigger be set to Collider.
physicsMaterial PhysicsMaterial2D be set to Collider.
tileCollider Tile Collider.
tileColliderObj Returns an Object of TileCollider.
tileComponentCount Returns the number of TileComponent
tileSet The tile set.

Methods

Method Name Description
AddComponent Adds the TileComponent.
Changed Notify that the tile has been changed.
ChangedCollider Notify that you have changed the tile Collider.
GetComponent Gets the TileComponent.
GetComponents Gets the TileComponents.
GetPartsWidth Gets the width of the parts.
GetTileComponentFromIndex Returns a TileComponent from index.
GetTileComponentObjectFromIndex Returns an Object of TileComponent from index.
IndexToPos Get the Texture position from the index of the part.
IsCombinationTile Adjacent tile it is determined whether or not to Combining.
MoveComponent Move the order of TileComponent.
RemoveComponent Remove the TileComponent.
SetTileCollider Sets the TileCollider

Enums

Type Name Description
Type Type of tile.