Skip to content

Instantly share code, notes, and snippets.

@cupsster
cupsster / PackageDownloader.cpp
Created April 14, 2020 01:15 — forked from emrahgunduz/PackageDownloader.cpp
Package Downloader And Mounter For Unreal Engine 4 -- Do not forget to correct the include and api name if you are copy pasting this code
#include "HitMe.h"
#include "PackageDownloader.h"
#include "IPlatformFilePak.h"
#include "HitMeSingleton.h"
UPackageDownloader* UPackageDownloader::GetPackageDownloader(FString PackageName, FString URL, bool& IsValid)
{
IsValid = false;
UPackageDownloader *Object = NewObject<UPackageDownloader>();
@cupsster
cupsster / FAsyncQueue.h
Created December 6, 2017 22:45 — forked from grisevg/ FAsyncQueue.h
Utility class for asynchronous/coroutine style programming in UE4 C++
#pragma once
/**
* FAsyncQueue can be used to run asynchronous delegates in sequence, parallel and combinations of the above
*
* Use Add() to enqueue delegates matching FAsyncDelegate signature:
* a void function that accepts a single argument of another void function with no arguments.
*
* Static factories MakeSync, MakeSequence and MakeParallel can be used to wrap different type of delegates and
* delegate collections into a single FAsyncDelegate which can be enqueued with Add().
@cupsster
cupsster / FFMpegSoundWave.cpp
Created February 10, 2017 14:17 — forked from drouarb/FFMpegSoundWave.cpp
Unreal FFMpeg decoder
// Fill out your copyright notice in the Description page of Project Settings.
#include "RIVR.h"
#include "FFMpegSoundWave.h"
UFFMpegSoundWave::UFFMpegSoundWave(const FObjectInitializer &ObjectInitializer)
{
bProcedural = true;
bCanProcessAsync = true;
bStreaming = true;