Skill Web
  • Skill Web Documentation
  • đŸ•šī¸Quick Start
    • Installation
  • Start Developing
  • 💡General
    • Running the Demos
  • Menu Options
  • UI Customizations
    • uGUI
      • Skill Node
      • Connection Line
      • Web View
      • Hovercard
  • Datasets
  • 🎓Tutorials
    • Runes Demo Walkthrough
  • âœī¸Editors
    • Skill Bank
  • Web Creator
  • Settings
  • Components
    • Skill Web Initializer
    • uGUI
      • Skill Node UGUI
      • Connection Line
        • Curved Connection Line
      • Web View UGUI
        • Web View Selector UGUI
      • Skill Hovercard UGUI
    • Player Web Link
  • 📄Scripting API
    • Initialization
  • Skills
    • Skill
      • Skill Dataset Attributes
    • Skill Node
  • Webs
    • Web Graph
    • Web
  • UI
    • Loading a Web
    • Web View Input Handling
    • Customize Connection Line
    • Customize Hovercard
  • Player Web Link
  • Custom Logic
  • Saving & Loading
  • Events
  • Skill Web Settings
  • Procedural Generation (Beta)
  • đŸ› ī¸Support
    • Getting Help
  • 📚Changelogs
    • Latest Releases
    • Future Plans
    • ⭐Rate Me?
Powered by GitBook
On this page
  • Getting the Web View
  • Active
  • Find
  • Load/Unload
  1. UI

Loading a Web

How to load web UI.

Getting the Web View

The first step to loading a web is finding a Web View UGUI component that can load it.

Active

You can get the active web view with WebViewUGUI.Active.

WebViewUGUI myWebView = WebViewUGUI.Active;

If you have multiple web view components in your scene that the player can switch through, you can set the active one with the SetActive method. You will need the reference to the specific WebViewUGUI component.

myOtherWebView.SetActive();

Find

Alternatively, you can find a specific web view with the name of the web graph that it's meant for (the "Web Name" field set from the inspector).

WebViewUGUI myWebView = WebViewUGUI.Find("My Web Name");

Load/Unload

To load a web in the UI, you have to use the Web View UGUI component. Ensure there's an instance of one in your scene.

If you have a reference to a Web, you can use the Load method. This will create the UI for a specific web. If a previous web is loaded, it will be unloaded.

myWebView.Load(myWeb);

You can unload the loaded web (remove its UI) with the Unload method.

myWebView.Unload();
PreviousUINextWeb View Input Handling

Last updated 11 days ago