class UOrama_Util

Overview

#include <Orama_Util.h>

class UOrama_Util: public UObject
{
public:
    // methods

    static void MagesDestroyActor(AActor* ToDestroy);
    static UStaticMesh* FindAsset(FString Name);
    static UMagesInstance* MagesInstance(const UObject* WorldContextObject);
    static class UMagesControllerClass* GetMagesControllerClass(const UObject* WorldContextObject);

    static void ThrowBlueprintError(
        const UObject* WorldContextObject,
        FString ErrorString
        );

    static void ThrowBlueprintWarning(
        const UObject* WorldContextObject,
        FString WarnString
        );

    static AActor* FindBlueprint(FString Name, UWorld* World);
    static void PrintMessage(FString Message);
    static float AngleBetweenVectors(const FVector& A, const FVector& B);
    static AActor* FindActor(const UWorld* World, const FString& Query);
    static TArray<AActor*> FindAllActors(const UWorld* World, const FString& Query);
    static FString EvalPath(FString Path);

    static void SetActorCollisionEnabled(
        AActor* Actor,
        ECollisionEnabled::Type Type
        );

    static AActor* FindActorByClass(const UWorld* World, UClass* ActorClass);

    static UActorComponent* FindComponentByName(
        AActor* Actor,
        FString ComponentName,
        TSubclassOf<UActorComponent> ComponentSubclass = UActorComponent::StaticClass()
        );

    static bool BlueprintClassHasComponent(
        class UBlueprintGeneratedClass* GenClass,
        UClass* ComponentClass
        );

    static UActorComponent* FindDefaultComponentByClass(
        const TSubclassOf<AActor>& ActorClass,
        const TSubclassOf<UActorComponent>& ComponentClass
        );

    static FString RemoveConsecutiveSeparators(const FString& Path);
    static TArray<UMagesInstance*> GetAllMagesInstances();
};

Detailed Documentation

Methods

static FString RemoveConsecutiveSeparators(const FString& Path)

Workaround for FSoftObjectPath::TryLoad crashing when dealing with multiple consecutive separators