Class PaperTileMap
A tile map is a 2D grid with a defined width and height (in tiles). There can be multiple layers, each of which can specify which tile should appear in each cell of the map for that layer.
Inherited Members
Namespace: UE4.Paper2D
Assembly: UE4DotNet.dll
Syntax
public class PaperTileMap : UObject
Properties
| Improve this Doc View SourceAssetImportData
Importing data and options used for this tile map
Declaration
public AssetImportData AssetImportData { get; set; }
Property Value
| Type | Description |
|---|---|
| AssetImportData |
BackgroundColor
The background color displayed in the tile map editor
Declaration
public LinearColor BackgroundColor { get; set; }
Property Value
| Type | Description |
|---|---|
| LinearColor |
BodySetup
Baked physics data.
Declaration
public BodySetup BodySetup { get; set; }
Property Value
| Type | Description |
|---|---|
| BodySetup |
CollisionThickness
The extrusion thickness of collision geometry when using a 3D collision domain
Declaration
public float CollisionThickness { get; }
Property Value
| Type | Description |
|---|---|
| System.Single |
DefaultObject
Get UE4 Default Object for this Class
Declaration
public static PaperTileMap DefaultObject { get; }
Property Value
| Type | Description |
|---|---|
| PaperTileMap |
HexSideLength
The vertical height of the sides of the hex cell for a tile.
Declaration
public int HexSideLength { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Remarks
Note: This value should already be included as part of the TileHeight, and is purely cosmetic; it only affects how the tile cursor preview is drawn.
LayerGridColor
The color of the layer grid
Declaration
public LinearColor LayerGridColor { get; set; }
Property Value
| Type | Description |
|---|---|
| LinearColor |
LayerNameIndex
The naming index to start at when trying to create a new layer
Declaration
public int LayerNameIndex { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
MapHeight
Height of map (in tiles)
Declaration
public int MapHeight { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
MapWidth
Width of map (in tiles)
Declaration
public int MapWidth { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Material
The material to use on a tile map instance if not overridden
Declaration
public MaterialInterface Material { get; }
Property Value
| Type | Description |
|---|---|
| MaterialInterface |
MultiTileGridColor
The color of the multi tile grid
Declaration
public LinearColor MultiTileGridColor { get; set; }
Property Value
| Type | Description |
|---|---|
| LinearColor |
MultiTileGridHeight
Number of tiles the multi tile grid spans vertically. 0 removes horizontal lines
Declaration
public int MultiTileGridHeight { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
MultiTileGridOffsetX
Number of tiles the multi tile grid is shifted to the right
Declaration
public int MultiTileGridOffsetX { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
MultiTileGridOffsetY
Number of tiles the multi tile grid is shifted downwards
Declaration
public int MultiTileGridOffsetY { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
MultiTileGridWidth
Number of tiles the multi tile grid spans horizontally. 0 removes vertical lines
Declaration
public int MultiTileGridWidth { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
PixelsPerUnrealUnit
The scaling factor between pixels and Unreal units (cm) (e.g., 0.64 would make a 64 pixel wide tile take up 100 cm)
Declaration
public float PixelsPerUnrealUnit { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single |
ProjectionMode
Tile map type
Declaration
public byte ProjectionMode { get; }
Property Value
| Type | Description |
|---|---|
| System.Byte |
SelectedLayerIndex
The currently selected layer index
Declaration
public int SelectedLayerIndex { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
SeparationPerLayer
The Z-separation between each layer of the tile map
Declaration
public float SeparationPerLayer { get; }
Property Value
| Type | Description |
|---|---|
| System.Single |
SeparationPerTileX
The Z-separation incurred as you travel in X (not strictly applied, batched tiles will be put at the same Z level)
Declaration
public float SeparationPerTileX { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single |
SeparationPerTileY
The Z-separation incurred as you travel in Y (not strictly applied, batched tiles will be put at the same Z level)
Declaration
public float SeparationPerTileY { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single |
SpriteCollisionDomain
Collision domain (no collision, 2D, or 3D)
Declaration
public byte SpriteCollisionDomain { get; }
Property Value
| Type | Description |
|---|---|
| System.Byte |
StaticClass
Get UE4 Class
Declaration
public static Class StaticClass { get; }
Property Value
| Type | Description |
|---|---|
| Class |
TileGridColor
The color of the tile grid
Declaration
public LinearColor TileGridColor { get; set; }
Property Value
| Type | Description |
|---|---|
| LinearColor |
TileHeight
Height of one tile (in pixels)
Declaration
public int TileHeight { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
TileLayers
The list of layers
Declaration
public ObjectArrayField<PaperTileLayer> TileLayers { get; }
Property Value
| Type | Description |
|---|---|
| ObjectArrayField<PaperTileLayer> |
TileWidth
Width of one tile (in pixels)
Declaration
public int TileWidth { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
| Improve this Doc View SourceNew(UObject, Name)
Spawn an object of this class
Declaration
public static PaperTileMap New(UObject obj = null, Name name = default(Name))
Parameters
| Type | Name | Description |
|---|---|---|
| UObject | obj | |
| Name | name |
Returns
| Type | Description |
|---|---|
| PaperTileMap |
Operators
| Improve this Doc View SourceImplicit(IntPtr to PaperTileMap)
Convert from IntPtr to UObject
Declaration
public static implicit operator PaperTileMap(IntPtr p)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IntPtr | p |
Returns
| Type | Description |
|---|---|
| PaperTileMap |