C# Class tk2dTileMap, Malisse

Inheritance: MonoBehaviour, ISpriteCollectionForceBuild
Afficher le fichier Open project: Collegiennes/Malisse Class Usage Examples

Méthodes publiques

Свойство Type Description
buildKey int
data tk2dTileMapData,
editorDataGUID string
height int
partitionSizeX int
partitionSizeY int
renderData GameObject
serializeRenderData bool
serializedMeshPath string
width int

Méthodes publiques

Méthode Description
AreSpritesInitialized ( ) : bool
Awake ( ) : void
BeginEditMode ( ) : void
Build ( ) : void
Build ( BuildFlags buildFlags ) : void
ClearSpawnedInstances ( ) : void
CreateColorChannel ( ) : void
DeleteColorChannel ( ) : void
DeleteSprites ( int layerId, int x0, int y0, int x1, int y1 ) : void
DestroyMesh ( Mesh mesh ) : void
EndEditMode ( ) : void
ForceBuild ( ) : void
GetInterpolatedColorAtPosition ( Vector3 position ) : Color

Gets the tile at position. This can be used to obtain tile data, etc -1 = no data or empty tile

GetOrCreateMesh ( ) : Mesh
GetTileAtPosition ( Vector3 position, int &x, int &y ) : bool

Gets the tile coordinate at position. This can be used to obtain tile or color data explicitly from layers Returns true if the position is within the tilemap bounds

GetTileFracAtPosition ( Vector3 position, float &x, float &y ) : bool

Gets the tile coordinate at position. This can be used to obtain tile or color data explicitly from layers The fractional value returned is the fraction into the current tile Returns true if the position is within the tilemap bounds

GetTileIdAtPosition ( Vector3 position, int layer ) : int

Gets the tile at position. This can be used to obtain tile data, etc -1 = no data or empty tile

GetTileInfoForTileId ( int tileId ) : TileInfo

Returns the tile info chunk for the tile. Use this to store additional metadata

GetTilePosition ( int x, int y ) : Vector3

Returns the tile position in world space

HasColorChannel ( ) : bool
TouchMesh ( Mesh mesh ) : void
UsesSpriteCollection ( tk2dSpriteCollectionData, spriteCollection ) : bool

Method Details

AreSpritesInitialized() public méthode

public AreSpritesInitialized ( ) : bool
Résultat bool

Awake() public méthode

public Awake ( ) : void
Résultat void

BeginEditMode() public méthode

public BeginEditMode ( ) : void
Résultat void

Build() public méthode

public Build ( ) : void
Résultat void

Build() public méthode

public Build ( BuildFlags buildFlags ) : void
buildFlags BuildFlags
Résultat void

ClearSpawnedInstances() public méthode

public ClearSpawnedInstances ( ) : void
Résultat void

CreateColorChannel() public méthode

public CreateColorChannel ( ) : void
Résultat void

DeleteColorChannel() public méthode

public DeleteColorChannel ( ) : void
Résultat void

DeleteSprites() public méthode

public DeleteSprites ( int layerId, int x0, int y0, int x1, int y1 ) : void
layerId int
x0 int
y0 int
x1 int
y1 int
Résultat void

DestroyMesh() public méthode

public DestroyMesh ( Mesh mesh ) : void
mesh Mesh
Résultat void

EndEditMode() public méthode

public EndEditMode ( ) : void
Résultat void

ForceBuild() public méthode

public ForceBuild ( ) : void
Résultat void

GetInterpolatedColorAtPosition() public méthode

Gets the tile at position. This can be used to obtain tile data, etc -1 = no data or empty tile
public GetInterpolatedColorAtPosition ( Vector3 position ) : Color
position Vector3
Résultat Color

GetOrCreateMesh() public méthode

public GetOrCreateMesh ( ) : Mesh
Résultat Mesh

GetTileAtPosition() public méthode

Gets the tile coordinate at position. This can be used to obtain tile or color data explicitly from layers Returns true if the position is within the tilemap bounds
public GetTileAtPosition ( Vector3 position, int &x, int &y ) : bool
position Vector3
x int
y int
Résultat bool

GetTileFracAtPosition() public méthode

Gets the tile coordinate at position. This can be used to obtain tile or color data explicitly from layers The fractional value returned is the fraction into the current tile Returns true if the position is within the tilemap bounds
public GetTileFracAtPosition ( Vector3 position, float &x, float &y ) : bool
position Vector3
x float
y float
Résultat bool

GetTileIdAtPosition() public méthode

Gets the tile at position. This can be used to obtain tile data, etc -1 = no data or empty tile
public GetTileIdAtPosition ( Vector3 position, int layer ) : int
position Vector3
layer int
Résultat int

GetTileInfoForTileId() public méthode

Returns the tile info chunk for the tile. Use this to store additional metadata
public GetTileInfoForTileId ( int tileId ) : TileInfo
tileId int
Résultat tk2dRuntime.TileMap.TileInfo

GetTilePosition() public méthode

Returns the tile position in world space
public GetTilePosition ( int x, int y ) : Vector3
x int
y int
Résultat Vector3

HasColorChannel() public méthode

public HasColorChannel ( ) : bool
Résultat bool

TouchMesh() public méthode

public TouchMesh ( Mesh mesh ) : void
mesh Mesh
Résultat void

UsesSpriteCollection() public méthode

public UsesSpriteCollection ( tk2dSpriteCollectionData, spriteCollection ) : bool
spriteCollection tk2dSpriteCollectionData,
Résultat bool

Property Details

buildKey public_oe property

public int buildKey
Résultat int

data public_oe property

Tile map data, stores shared parameters for tilemaps
public tk2dTileMapData, data
Résultat tk2dTileMapData,

editorDataGUID public_oe property

This is a link to the editor data object (tk2dTileMapEditorData). It contains presets, and other data which isn't really relevant in game.
public string editorDataGUID
Résultat string

height public_oe property

Height of the tilemap
public int height
Résultat int

partitionSizeX public_oe property

X axis partition size for this tilemap
public int partitionSizeX
Résultat int

partitionSizeY public_oe property

Y axis partition size for this tilemap
public int partitionSizeY
Résultat int

renderData public_oe property

Tile map render and collider object
public GameObject renderData
Résultat GameObject

serializeRenderData public_oe property

public bool serializeRenderData
Résultat bool

serializedMeshPath public_oe property

public string serializedMeshPath
Résultat string

width public_oe property

Width of the tilemap
public int width
Résultat int