Files
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

30 lines
1.0 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#if WITH_EDITOR
#include "UObject/SoftObjectPtr.h"
class UWorld;
class UBlueprint;
class ILevelInstanceInterface;
class FPackedLevelActorUtils
{
public:
static void GetPackedBlueprintsForWorldAsset(const TSoftObjectPtr<UWorld>& InWorldAsset, TSet<TSoftObjectPtr<UBlueprint>>& OutPackedBlueprintAssets, bool bInLoadedOnly = false);
static bool CanPack();
static void PackAllLoadedActors();
static bool CreateOrUpdateBlueprint(ILevelInstanceInterface* InLevelInstance, TSoftObjectPtr<UBlueprint> InBlueprintAsset, bool bCheckoutAndSave = true, bool bPromptForSave = true);
static bool CreateOrUpdateBlueprint(TSoftObjectPtr<UWorld> InWorldAsset, TSoftObjectPtr<UBlueprint> InBlueprintAsset, bool bCheckoutAndSave = true, bool bPromptForSave = true);
static void UpdateBlueprint(UBlueprint* InBlueprint, bool bCheckoutAndSave = true);
static void UpdateAllPackedBlueprintsForWorldAssetBlueprint(const TSoftObjectPtr<UWorld>& InWorldAsset, bool bInLoadedOnly = false);
};
#endif