C# 클래스 tk2dTileMap, Malisse

상속: MonoBehaviour, ISpriteCollectionForceBuild
파일 보기 프로젝트 열기: Collegiennes/Malisse 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
buildKey int
data tk2dTileMapData,
editorDataGUID string
height int
partitionSizeX int
partitionSizeY int
renderData GameObject
serializeRenderData bool
serializedMeshPath string
width int

공개 메소드들

메소드 설명
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

메소드 상세

AreSpritesInitialized() 공개 메소드

public AreSpritesInitialized ( ) : bool
리턴 bool

Awake() 공개 메소드

public Awake ( ) : void
리턴 void

BeginEditMode() 공개 메소드

public BeginEditMode ( ) : void
리턴 void

Build() 공개 메소드

public Build ( ) : void
리턴 void

Build() 공개 메소드

public Build ( BuildFlags buildFlags ) : void
buildFlags BuildFlags
리턴 void

ClearSpawnedInstances() 공개 메소드

public ClearSpawnedInstances ( ) : void
리턴 void

CreateColorChannel() 공개 메소드

public CreateColorChannel ( ) : void
리턴 void

DeleteColorChannel() 공개 메소드

public DeleteColorChannel ( ) : void
리턴 void

DeleteSprites() 공개 메소드

public DeleteSprites ( int layerId, int x0, int y0, int x1, int y1 ) : void
layerId int
x0 int
y0 int
x1 int
y1 int
리턴 void

DestroyMesh() 공개 메소드

public DestroyMesh ( Mesh mesh ) : void
mesh Mesh
리턴 void

EndEditMode() 공개 메소드

public EndEditMode ( ) : void
리턴 void

ForceBuild() 공개 메소드

public ForceBuild ( ) : void
리턴 void

GetInterpolatedColorAtPosition() 공개 메소드

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
리턴 Color

GetOrCreateMesh() 공개 메소드

public GetOrCreateMesh ( ) : Mesh
리턴 Mesh

GetTileAtPosition() 공개 메소드

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
리턴 bool

GetTileFracAtPosition() 공개 메소드

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
리턴 bool

GetTileIdAtPosition() 공개 메소드

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
리턴 int

GetTileInfoForTileId() 공개 메소드

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

GetTilePosition() 공개 메소드

Returns the tile position in world space
public GetTilePosition ( int x, int y ) : Vector3
x int
y int
리턴 Vector3

HasColorChannel() 공개 메소드

public HasColorChannel ( ) : bool
리턴 bool

TouchMesh() 공개 메소드

public TouchMesh ( Mesh mesh ) : void
mesh Mesh
리턴 void

UsesSpriteCollection() 공개 메소드

public UsesSpriteCollection ( tk2dSpriteCollectionData, spriteCollection ) : bool
spriteCollection tk2dSpriteCollectionData,
리턴 bool

프로퍼티 상세

buildKey 공개적으로 프로퍼티

public int buildKey
리턴 int

data 공개적으로 프로퍼티

Tile map data, stores shared parameters for tilemaps
public tk2dTileMapData, data
리턴 tk2dTileMapData,

editorDataGUID 공개적으로 프로퍼티

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
리턴 string

height 공개적으로 프로퍼티

Height of the tilemap
public int height
리턴 int

partitionSizeX 공개적으로 프로퍼티

X axis partition size for this tilemap
public int partitionSizeX
리턴 int

partitionSizeY 공개적으로 프로퍼티

Y axis partition size for this tilemap
public int partitionSizeY
리턴 int

renderData 공개적으로 프로퍼티

Tile map render and collider object
public GameObject renderData
리턴 GameObject

serializeRenderData 공개적으로 프로퍼티

public bool serializeRenderData
리턴 bool

serializedMeshPath 공개적으로 프로퍼티

public string serializedMeshPath
리턴 string

width 공개적으로 프로퍼티

Width of the tilemap
public int width
리턴 int