Tile
クラス in Nostalgia / 継承元: AssetObject
説明
タイルのデータ。
フィールド
| フィールド名 | 説明 |
|---|---|
| animation | コマアニメするフレーム数。 |
| animationFrameRate | アニメーションのフレームレート。 |
| color | タイルの色 |
| combinationGroupName | 結合グループ名 |
| combinationSideFlags | 各辺の接続を制御。 |
| height | 通常タイルの縦幅 |
| position | テクスチャ上の左上座標(ピクセル) |
| size | 1タイルの幅(ピクセル) |
| type | Tileのタイプ |
| uvShiftInside | UVをタイルの内側にどれくらいずらすかのテクセル値。 |
| width | 通常タイルの横幅 |
プロパティ
| プロパティ名 | 説明 |
|---|---|
| collider | Colliderの有無。 |
| isTrigger | Colliderに設定するIs Trigger。 |
| physicsMaterial | Colliderに設定するPhysicsMaterial2D。 |
| tileCollider | TileのCollider。 |
| tileColliderObj | TileColliderのObjectを返す。 |
| tileComponentCount | TileComponentの数を返す |
| tileSet | TileSet |
メソッド
| メソッド名 | 説明 |
|---|---|
| AddComponent | TileComponentを追加する。 |
| Changed | タイルを変更したことを通知する。 |
| ChangedCollider | タイルのColliderを変更したことを通知する。 |
| GetComponent | TileComponentを取得する。 |
| GetComponents | TileComponentの配列を取得する。 |
| GetPartsWidth | パーツの横幅を取得。 |
| GetTileComponentFromIndex | indexからTileComponentを返す。 |
| GetTileComponentObjectFromIndex | indexからTileComponentのObjectを返す。 |
| IndexToPos | パーツのインデックスからテクスチャ座標を取得。 |
| IsCombinationTile | 隣り合うTileが結合するかを判定する。 |
| MoveComponent | TileComponentの順番を移動する。 |
| RemoveComponent | TileComponentを削除する。 |
| SetTileCollider | TileColliderを設定する |
列挙型一覧
| 型名 | 説明 |
|---|---|
| Type | Tileのタイプ |