PAPER2UPaperTileMapComponent::CreateNewTileMap

Creates a new tile map of the specified size, replacing the TileMap reference (or dropping the previous owned one)

Windows
MacOS
Linux

References

Module

Paper2D

Header

/Engine/Plugins/2D/Paper2D/Source/Paper2D/Classes/PaperTileMapComponent.h

Include

#include "PaperTileMapComponent.h"

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="Sprite")
void CreateNewTileMap
(
    int32 MapWidth,
    int32 MapHeight,
    int32 TileWidth,
    int32 TileHeight,
    float PixelsPerUnrealUnit,
    bool bCreateLayer
)

Remarks

Creates a new tile map of the specified size, replacing the TileMap reference (or dropping the previous owned one)

Parameters

Parameter

Description

MapWidth

Width of the map (in tiles)

MapHeight

Height of the map (in tiles)

TileWidth

Width of one tile (in pixels)

TileHeight

Height of one tile (in pixels)

bCreateLayer

Should an empty layer be created?

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss