Description
The CreateWebSurface
method in the Editor.EditorUtility
class is a static method that allows you to create an unlimited web surface. This method returns an instance of Sandbox.WebSurface
, which can be used to display web content within the Sandbox environment.
Usage
To use the CreateWebSurface
method, simply call it from the Editor.EditorUtility
class. Since it is a static method, you do not need to instantiate the class to use it. The method does not require any parameters.
Example
// Example of using CreateWebSurface
Sandbox.WebSurface webSurface = Editor.EditorUtility.CreateWebSurface();
// Use the webSurface instance to load a URL or perform other operations
webSurface.LoadUrl("https://example.com");