zoukankan      html  css  js  c++  java
  • UE4——找不到"UnLuaInterface.h"

    菜鸟级错误。

    如果你要引用插件中的头文件,那么一定需要在UE4项目名.build.cs中这里添加上插件名字:

    using UnrealBuildTool;
    
    public class 项目名 : ModuleRules
    {
    	public 项目名(ReadOnlyTargetRules Target) : base(Target)
    	{
    		PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
    		// 这里添加上插件名字,如果找不到标题中的头文件,要在这里加上"UnLua"
    		PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "WebSockets", "UnLua"});
    
    		PrivateDependencyModuleNames.AddRange(new string[] {  });
    
    		// Uncomment if you are using Slate UI
    		// PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore" });
    		
    		// Uncomment if you are using online features
    		// PrivateDependencyModuleNames.Add("OnlineSubsystem");
    
    		// To include OnlineSubsystemSteam, add it to the plugins section in your uproject file with the Enabled attribute set to true
    	}
    }
    
    

    添加之后重新生成项目或者刷新项目即可。

    本博客文章默认使用CC BY-SA 3.0协议。
  • 相关阅读:
    asp.net文件操作类
    MSMQ是什么?
    Type.GetType()在跨程序集反射时返回null的解决方法
    ASP.NET反射
    VS单元测试入门实践教程
    详解Linq to SQL
    .Net资源文件全球化
    正则表达式使用详解
    C# 中的委托和事件详解
    python基础
  • 原文地址:https://www.cnblogs.com/yejianying/p/UE4_UnLuaInterface_header_not_found.html
Copyright © 2011-2022 走看看