Is it possible to clear the cache of a WebBrowser? If so: How?
Thanks in advance!
Is it possible to clear the cache of a WebBrowser? If so: How?
Thanks in advance!
I want to know this too!
Me too…very frustrating for checking changes made to a web page to see if it looks ok !!!
Really hope someone answers this!
close unreal, go into the project folder projectname\saved\webcache, and delete everything in there.
Thanks you so much!
Throwing a few ideas, this could be automated using C++, and support for a “no-cache” mode that does this could be made1
Do it yourself. Not that Hard. A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums
Although I think deleting the directory programmatically is a good idea. I have found that calling either IPlatformFile::DeleteDirectory or IPlatformFile::DeleteDirectoryRecursively fails on the webcache folder because the game/application uses files in the directory while it’s running.
Hi,How to run in no-cache mode?thanks.
Hi,
After a lot of struggle, I was successfully able to clear the browser cookies from the game. A little bit of c++ coding will be needed in this case.
Add WebBrowser module in your build.cs file
Create a c++ class blueprint library
import the following classes
#include "IWebBrowserCookieManager.h"
#include "IWebBrowserSingleton.h"
#include "WebBrowserModule.h"
Make a blueprint callable function and paste the following code:
IWebBrowserSingleton* WebBrowserSingleton = IWebBrowserModule::Get().GetSingleton();
if (WebBrowserSingleton)
{
TSharedPtr<IWebBrowserCookieManager> CookieManager = WebBrowserSingleton->GetCookieManager();
if (CookieManager.IsValid())
{
CookieManager->DeleteCookies();
}
}
Call this function from your blueprint anywhere.
Recommend a high-performance web UI solution for UE5: WebNativeBrowser. Based on Chromium kernel, GPU accelerated rendering, supports Windows/Linux/ARM64 three platforms.
JS ↔ Blueprint bidirectional message channel, the front-end can directly embed pages generated by Vue, React, or even AI into UE. For digital twin and gaming tool projects, the development efficiency is significantly improved by doing business on the web side and scenario on the UE side. Git Serch use plugins: [starTechnology1994/uewebbrowser]
you can serch webnativebrowser