Exemplo n.º 1
0
AHair::AHair()
{
 	// Set this actor to call Tick() every frame.  You can turn this off to improve performance if you don't need it.
	PrimaryActorTick.bCanEverTick = false;

	// Create default layer
	AddNewLayer();

	SetupMesh();
}
Exemplo n.º 2
0
void UPaperTileMap::InitializeNewEmptyTileMap(UPaperTileSet* InitialTileSet)
{
	if (InitialTileSet != nullptr)
	{
		const FIntPoint TileSetTileSize = InitialTileSet->GetTileSize();
		TileWidth = TileSetTileSize.X;
		TileHeight = TileSetTileSize.Y;
		SelectedTileSet = InitialTileSet;
	}

	AddNewLayer();
}