FCohtmlScriptProvider
Inherits from ICohtmlScriptProvider
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| virtual FCohtmlCompiledScriptDataPtr | GetScriptCacheEntry(const FString & FilePath) override |
| virtual void | AddScriptCacheEntry(const FString & FilePath, const CohtmlCompiledScriptData & Data) |
| virtual TMap< FString, FCohtmlCompiledScriptDataPtr > & | ModifyCachedScripts() Returns a reference to all currently cached compiled scripts. This is useful for saving them to disk, packaging them, or modifying them after the pre-loading process has finished. |
| virtual void | SetCachedScripts(TMap< FString, FCohtmlCompiledScriptDataPtr > && ScriptCollection) |
| virtual void | RemoveScriptCacheEntry(const FString & FilePath) |
| virtual void | ClearScriptCache() Removes all cached scripts from memory. |
| virtual | ~FCohtmlScriptProvider() =default |
Protected Attributes
Section titled “Protected Attributes”| Name | |
|---|---|
| TMap< FString, FCohtmlCompiledScriptDataPtr > | CachedScripts |
Additional inherited members
Section titled “Additional inherited members”Public Functions inherited from ICohtmlScriptProvider
| Name | |
|---|---|
| virtual | ~ICohtmlScriptProvider() =default |
Public Functions Documentation
Section titled “Public Functions Documentation”function GetScriptCacheEntry
Section titled “function GetScriptCacheEntry”virtual FCohtmlCompiledScriptDataPtr GetScriptCacheEntry( const FString & FilePath) overrideParameters:
- FilePath - A relative or absolute path to a given JavaScript file. Relative path should be with respect to the working directory. Will return a script from the internal TMap storage if such exists, or nullptr.
Reimplements: ICohtmlScriptProvider::GetScriptCacheEntry
function AddScriptCacheEntry
Section titled “function AddScriptCacheEntry”virtual void AddScriptCacheEntry( const FString & FilePath, const CohtmlCompiledScriptData & Data)Parameters:
- FilePath - A relative or absolute path to a given JavaScript file. Relative path should be with respect to the working directory. The path needs to serve as a unique id for the data provided, so it can be retrieved later.
function ModifyCachedScripts
Section titled “function ModifyCachedScripts”virtual TMap< FString, FCohtmlCompiledScriptDataPtr > & ModifyCachedScripts()Returns a reference to all currently cached compiled scripts. This is useful for saving them to disk, packaging them, or modifying them after the pre-loading process has finished.
function SetCachedScripts
Section titled “function SetCachedScripts”virtual void SetCachedScripts( TMap< FString, FCohtmlCompiledScriptDataPtr > && ScriptCollection)function RemoveScriptCacheEntry
Section titled “function RemoveScriptCacheEntry”virtual void RemoveScriptCacheEntry( const FString & FilePath)Parameters:
- FilePath - A relative or absolute path to a given JavaScript file. Relative path should be with respect to the working directory. Removes a single cached script from memory.
function ClearScriptCache
Section titled “function ClearScriptCache”virtual void ClearScriptCache()Removes all cached scripts from memory.
function ~FCohtmlScriptProvider
Section titled “function ~FCohtmlScriptProvider”virtual ~FCohtmlScriptProvider() =defaultProtected Attributes Documentation
Section titled “Protected Attributes Documentation”variable CachedScripts
Section titled “variable CachedScripts”TMap< FString, FCohtmlCompiledScriptDataPtr > CachedScripts;© 2026 Coherent Labs. All rights reserved.