• 大小: 95.58MB
    文件类型: .zip
    金币: 2
    下载: 2 次
    发布日期: 2023-06-08
  • 语言: 其他
  • 标签: UE4插件  

资源简介

该文件为样例项目文件,下载后即可使用。插件在Plugins文件夹内,可复制到其他项目下的Plugins文件夹下使用。有问题请查看样例项目根目录下的使用说明.docx文件。里面有我的联系方式,有问题可以联系我进行修改。

资源截图

代码片段和文件信息

// Some copyright should be here...

using UnrealBuildTool;
using System.IO;

public class RecordVideoPlugin : ModuleRules
{

    private string ThirdPartyPath
    {
        get { return Path.GetFullPath(Path.Combine(ModuleDirectory “../ThirdParty/“)); }
    }

    private string GameBinariesPath
    {
        get { return Path.GetFullPath(Path.Combine(ModuleDirectory “../../../../Binaries/Win64“)); }
    }

    public RecordVideoPlugin(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;

        bEnableExceptions = true;
        //UEBuildConfiguration.bUseLoggingInShipping = true;
        bEnableUndefinedIdentifierWarnings = false;

        PublicIncludePaths.AddRange(
new string[] {
// ... add public include paths required here ...
}
);


PrivateIncludePaths.AddRange(
new string[] {
// ... add other private include paths required here ...
}
);


PublicDependencyModuleNames.AddRange(
new string[]
{
“Core“
                “Engine“
                “Projects“
// ... add other public dependencies that you statically link with here ...
}
);


PrivateDependencyModuleNames.AddRange(
new string[]
{
“CoreUobject“
                “RenderCore“
                “RHI“
                “Engine“
“Slate“
“SlateCore“
// ... add private dependencies that you statically link with here ...
}
);


DynamicallyLoadedModuleNames.AddRange(
new string[]
{
// ... add any modules that your module loads dynamically here ...
}
);

        string dllLibPath = Path.GetFullPath(Path.Combine(ThirdPartyPath “ffmpeg_4_2_1_win64/“));

        if (!Directory.Exists(GameBinariesPath))
        {
            Directory.CreateDirectory(GameBinariesPath);
        }
        if (!File.Exists(Path.Combine(GameBinariesPath “avcodec-58.dll“)))
        {
            File.Copy(Path.Combine(dllLibPath “avcodec-58.dll“) Path.Combine(GameBinariesPath “avcodec-58.dll“) true);
        }
        if (!File.Exists(Path.Combine(GameBinariesPath “avdevice-58.dll“)))
        {
            File.Copy(Path.Combine(dllLibPath “avdevice-58.dll“) Path.Combine(GameBinariesPath “avdevice-58.dll“) true);
        }
        if (!File.Exists(Path.Combine(GameBinariesPath “avfilter-7.dll“)))
        {
            File.Copy(Path.Combine(dllLibPath “avfilter-7.dll“) Path.Combine(GameBinariesPath “avfilter-7.dll“) true);
        }
        if (!File.Exists(Path.Combine(GameBinariesPath “avformat-58.dll“)))
        {
            File.Copy(Path.Combine(dllLibPath “avformat-58.dll“) Path.Combine(GameBinariesPath “avformat-58.dll“) true);
        }
        if (!File.Exists(Path.Combine(GameBinariesPath “avutil-56.dll“)))
        {
            File.Copy(Path.Combine(dllLibPath “avutil-56.dll“) Path.Combine(GameBinariesPath “avutil

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-12-06 12:45  RecordVideoPro4_23\
     目录           0  2019-12-06 11:03  RecordVideoPro4_23\Binaries\
     目录           0  2019-12-06 11:03  RecordVideoPro4_23\Binaries\Win64\
     文件    46985728  2019-09-15 22:46  RecordVideoPro4_23\Binaries\Win64\avcodec-58.dll
     文件     2635776  2019-09-15 22:46  RecordVideoPro4_23\Binaries\Win64\avdevice-58.dll
     文件     7836160  2019-09-15 22:46  RecordVideoPro4_23\Binaries\Win64\avfilter-7.dll
     文件    10319872  2019-09-15 22:46  RecordVideoPro4_23\Binaries\Win64\avformat-58.dll
     文件      793088  2019-09-15 22:46  RecordVideoPro4_23\Binaries\Win64\avutil-56.dll
     文件      135168  2019-09-15 22:46  RecordVideoPro4_23\Binaries\Win64\postproc-55.dll
     文件      428544  2019-09-15 22:46  RecordVideoPro4_23\Binaries\Win64\swresample-3.dll
     文件      544768  2019-09-15 22:46  RecordVideoPro4_23\Binaries\Win64\swscale-5.dll
     目录           0  2019-12-06 10:59  RecordVideoPro4_23\Config\
     目录           0  2019-12-06 10:59  RecordVideoPro4_23\Config\Android\
     文件         195  2019-12-06 10:59  RecordVideoPro4_23\Config\Android\AndroidEngine.ini
     文件           0  2019-12-06 10:59  RecordVideoPro4_23\Config\DefaultEditor.ini
     文件        2813  2019-12-06 13:26  RecordVideoPro4_23\Config\DefaultEngine.ini
     文件          93  2019-12-06 10:59  RecordVideoPro4_23\Config\DefaultGame.ini
     目录           0  2019-12-06 10:59  RecordVideoPro4_23\Config\IOS\
     文件         187  2019-12-06 10:59  RecordVideoPro4_23\Config\IOS\IOSEngine.ini
     目录           0  2019-12-06 10:59  RecordVideoPro4_23\Config\Linux\
     文件         189  2019-12-06 10:59  RecordVideoPro4_23\Config\Linux\LinuxEngine.ini
     目录           0  2019-12-06 10:59  RecordVideoPro4_23\Config\Mac\
     文件         186  2019-12-06 10:59  RecordVideoPro4_23\Config\Mac\MacEngine.ini
     目录           0  2019-12-06 10:59  RecordVideoPro4_23\Config\PS4\
     文件         186  2019-12-06 10:59  RecordVideoPro4_23\Config\PS4\PS4Engine.ini
     目录           0  2019-12-06 10:59  RecordVideoPro4_23\Config\Switch\
     文件         194  2019-12-06 10:59  RecordVideoPro4_23\Config\Switch\SwitchEngine.ini
     目录           0  2019-12-06 10:59  RecordVideoPro4_23\Config\Windows\
     文件         191  2019-12-06 10:59  RecordVideoPro4_23\Config\Windows\WindowsEngine.ini
     目录           0  2019-12-06 10:59  RecordVideoPro4_23\Config\XboxOne\
     文件         191  2019-12-06 10:59  RecordVideoPro4_23\Config\XboxOne\XboxOneEngine.ini
............此处省略2144个文件信息

评论

共有 条评论