UE4网络图片加载库,带内存缓存和磁盘缓存,支持自定义缓存大小,支持蓝图和C++代码调用
1、调用示例
2、对外暴露函数
3、源代码-网络模块
KeImageNet.h
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "WebImage.h"
#include "UObject/Object.h"
#include "KeImageNet.generated.h"
DECLARE_MULTICAST_DELEGATE_OneParam(FImageNetDelegate, UTexture2D* /*Texture*/);
UCLASS()
class PLANLOADER_API UKeImageNet : public UObject
{
GENERATED_BODY()
private:
FString CurUrl;
static int64 MaxDiskSize;
static int MaxTextureSize;
public:
FImageNetDelegate ImageNetDelegate;
static FStr