engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | 所有成员列表
IProjectManager类 参考abstract

ProjectAndPluginManager manages available code and content extensions (both loaded and not loaded.) 更多...

#include <IProjectManager.h>

Public 成员函数

virtual PROJECTS_API void AddSuppressProjectFileWrite (const FName InName)=0
 Suppress project file writes.
 
virtual bool CheckModuleCompatibility (TArray< FString > &OutIncompatibleModules)=0
 Checks if the modules for a project are up to date 更多...
 
virtual void ClearSupportedTargetPlatformsForCurrentProject ()=0
 Clear the list of supported target platforms for the current project
 
virtual void ClearSupportedTargetPlatformsForProject (const FString &FilePath)=0
 Clear the list of supported target platforms for the target project
 
 DECLARE_EVENT_TwoParams (IProjectManager, FLoadingModulesForPhaseEvent, ELoadingPhase::Type, bool)
 Callback for when modules for when LoadModulesForProject() completes loading for a specific phase.
 
 DECLARE_MULTICAST_DELEGATE (FOnTargetPlatformsForCurrentProjectChangedEvent)
 Called when the target platforms for the current project are changed
 
virtual const TArray< FString > & GetAdditionalPluginDirectories () const =0
 Returns the list of additional directories to be scanned for plugins (aside from the engine and project plugin directories).
 
virtual const FString & GetAutoLoadProjectFileName ()=0
 Gets the name of the text file that contains the most recently loaded filename. 更多...
 
virtual const FProjectDescriptor * GetCurrentProject () const =0
 Gets the current project descriptor. 更多...
 
virtual TArray< FModuleContextInfo > & GetCurrentProjectModuleContextInfos ()=0
 Access array used to cache current project's list of module context infos
 
virtual bool HasDefaultPluginSettings () const =0
 Checks whether the current project has default settings for plugins (ie. 更多...
 
virtual bool IsCurrentProjectDirty () const =0
 Checks whether the current loaded project has been modified but not saved to disk
 
virtual PROJECTS_API bool IsEnterpriseProject ()=0
 Gets the enterprise flag value on the current project 更多...
 
virtual bool IsSuppressingProjectFileWrite () const =0
 Returns true if project file write should be suppressed.
 
virtual bool LoadModulesForProject (const ELoadingPhase::Type LoadingPhase)=0
 Loads all modules for the currently loaded project in the specified loading phase 更多...
 
virtual bool LoadProjectFile (const FString &ProjectFile)=0
 Loads the specified project file. 更多...
 
virtual bool QueryStatusForCurrentProject (FProjectStatus &OutProjectStatus) const =0
 Gets status about the current project 更多...
 
virtual bool QueryStatusForProject (const FString &FilePath, FProjectStatus &OutProjectStatus) const =0
 Gets status about the specified project 更多...
 
virtual PROJECTS_API void RemoveSuppressProjectFileWrite (const FName InName)=0
 Removes suppression of project file writes.
 
virtual bool SaveCurrentProjectToDisk (FText &OutFailReason)=0
 Saves the current project to the project path 更多...
 
virtual void SetIsEnterpriseProject (bool bValue)=0
 Sets the enterprise flag value on the current project 更多...
 
virtual bool SetPluginEnabled (const FString &PluginName, bool bEnabled, FText &OutFailReason)=0
 Sets whether a plugin is enabled for the current project configuration. 更多...
 
virtual bool SignSampleProject (const FString &FilePath, const FString &Category, FText &OutFailReason)=0
 Sets the project's EpicSampleNameHash (based on its filename) and category, then saves the file to disk. 更多...
 
virtual bool UpdateAdditionalPluginDirectory (const FString &Dir, const bool bAddOrRemove)=0
 Updates a directory to be scanned for plugins (added or removed) 更多...
 
virtual void UpdateSupportedTargetPlatformsForCurrentProject (const FName &InPlatformName, const bool bIsSupported)=0
 Update the list of supported target platforms for the current project based upon the parameters provided 更多...
 
virtual void UpdateSupportedTargetPlatformsForProject (const FString &FilePath, const FName &InPlatformName, const bool bIsSupported)=0
 Update the list of supported target platforms for the target project based upon the parameters provided 更多...
 

静态 Public 成员函数

static PROJECTS_API IProjectManager & Get ()
 Static: Access singleton instance 更多...
 

详细描述

ProjectAndPluginManager manages available code and content extensions (both loaded and not loaded.)

成员函数说明

◆ CheckModuleCompatibility()

virtual bool IProjectManager::CheckModuleCompatibility ( TArray< FString > &  OutIncompatibleModules)
pure virtual

Checks if the modules for a project are up to date

返回
false if UBT needs to be run to recompile modules for a project.

◆ Get()

static PROJECTS_API IProjectManager & IProjectManager::Get ( )
static

Static: Access singleton instance

返回
Reference to the singleton object

◆ GetAutoLoadProjectFileName()

virtual const FString & IProjectManager::GetAutoLoadProjectFileName ( )
pure virtual

Gets the name of the text file that contains the most recently loaded filename.

This is NOT the name of the recently loaded .uproject file.

返回
File name.

◆ GetCurrentProject()

virtual const FProjectDescriptor * IProjectManager::GetCurrentProject ( ) const
pure virtual

Gets the current project descriptor.

返回
Pointer to the currently loaded project descriptor. NULL if none is loaded.

◆ HasDefaultPluginSettings()

virtual bool IProjectManager::HasDefaultPluginSettings ( ) const
pure virtual

Checks whether the current project has default settings for plugins (ie.

does not enable any new plugins, or disable any default plugins)

返回
True if the project has the default plugin settings.

◆ IsEnterpriseProject()

virtual PROJECTS_API bool IProjectManager::IsEnterpriseProject ( )
pure virtual

Gets the enterprise flag value on the current project

返回
True if the project is an Enterprise project

◆ LoadModulesForProject()

virtual bool IProjectManager::LoadModulesForProject ( const ELoadingPhase::Type  LoadingPhase)
pure virtual

Loads all modules for the currently loaded project in the specified loading phase

参数
LoadingPhaseWhich loading phase we're loading modules from. Only modules that are configured to be loaded at the specified loading phase will be loaded during this call.

◆ LoadProjectFile()

virtual bool IProjectManager::LoadProjectFile ( const FString &  ProjectFile)
pure virtual

Loads the specified project file.

参数
ProjectFile- The project file to load.
返回
true if the project was loaded successfully, false otherwise.
参见
GetLoadedGameProjectFile

◆ QueryStatusForCurrentProject()

virtual bool IProjectManager::QueryStatusForCurrentProject ( FProjectStatus &  OutProjectStatus) const
pure virtual

Gets status about the current project

参数
OutProjectStatusThe status for the project.
返回
true if the file was successfully open and read

◆ QueryStatusForProject()

virtual bool IProjectManager::QueryStatusForProject ( const FString &  FilePath,
FProjectStatus &  OutProjectStatus 
) const
pure virtual

Gets status about the specified project

参数
FilePathThe filepath where the project is stored.
OutProjectStatusThe status for the project.
返回
true if the file was successfully open and read

◆ SaveCurrentProjectToDisk()

virtual bool IProjectManager::SaveCurrentProjectToDisk ( FText &  OutFailReason)
pure virtual

Saves the current project to the project path

参数
OutFailReasonOn failure, gives an error message
返回
True if the project was saved successfully

◆ SetIsEnterpriseProject()

virtual void IProjectManager::SetIsEnterpriseProject ( bool  bValue)
pure virtual

Sets the enterprise flag value on the current project

参数
bValueThe value to set the enterprise flag to

◆ SetPluginEnabled()

virtual bool IProjectManager::SetPluginEnabled ( const FString &  PluginName,
bool  bEnabled,
FText &  OutFailReason 
)
pure virtual

Sets whether a plugin is enabled for the current project configuration.

Potentially updates the current project descriptor, but does not save to disk and may require restarting to load it.

注解
Use IsCurrentProjectDirty() to tell whether the project was actually modified.
参数
PluginNameName of the plugin
bEnabledWhether to enable or disable the plugin
OutFailReasonOn failure, gives an error message
返回
False on failure to update the current project descriptor.

◆ SignSampleProject()

virtual bool IProjectManager::SignSampleProject ( const FString &  FilePath,
const FString &  Category,
FText &  OutFailReason 
)
pure virtual

Sets the project's EpicSampleNameHash (based on its filename) and category, then saves the file to disk.

This marks the project as a sample and fixes its filename so that it isn't mistaken for a sample if a copy of the file is made.

参数
FilePathThe filepath where the sample project is stored.
CategoryCategory to place the sample in
OutFailReasonWhen returning false, this provides a display reason why the file could not be created.
返回
true if the file was successfully updated and saved to disk

◆ UpdateAdditionalPluginDirectory()

virtual bool IProjectManager::UpdateAdditionalPluginDirectory ( const FString &  Dir,
const bool  bAddOrRemove 
)
pure virtual

Updates a directory to be scanned for plugins (added or removed)

参数
Dirthe directory to scan
bAddOrRemovewhether to add or remove the directory
返回
Whether the plugin directory list was changed.

◆ UpdateSupportedTargetPlatformsForCurrentProject()

virtual void IProjectManager::UpdateSupportedTargetPlatformsForCurrentProject ( const FName &  InPlatformName,
const bool  bIsSupported 
)
pure virtual

Update the list of supported target platforms for the current project based upon the parameters provided

参数
InPlatformNameName of the platform to target (eg, WindowsNoEditor)
bIsSupportedtrue if the platform should be supported by this project, false if it should not

◆ UpdateSupportedTargetPlatformsForProject()

virtual void IProjectManager::UpdateSupportedTargetPlatformsForProject ( const FString &  FilePath,
const FName &  InPlatformName,
const bool  bIsSupported 
)
pure virtual

Update the list of supported target platforms for the target project based upon the parameters provided

参数
FilePathThe filepath where the project is stored.
InPlatformNameName of the platform to target (eg, WindowsNoEditor)
bIsSupportedtrue if the platform should be supported by this project, false if it should not

该类的文档由以下文件生成: