LogoLogo
HomeDiscordVideo TutorialsBuilder Opportunities
  • Welcome to MONA
    • What is a Space?
    • Unity Overview
  • ⬛Create
    • Getting Started Building
    • MONA Crash Course
      • Setting up MONA in Unity
      • Introduction to Unity
      • Setting up Simple Assets
      • Metaverse / WebGL Limitations
      • Creating 3D Assets
      • Applying Materials & Unwrapping UVs
      • Importing Assets into Unity
      • Adding Colliders
      • Adding Lighting
      • Adding a Custom Skybox
      • Setting up Canvases
      • Uploading to your Wallet
    • Building Spaces
      • Space Limitations
      • Create your Space
        • Space Overview
        • Colliders
        • Materials
        • Portals
        • Canvases
        • Artifacts
        • Add a Custom Skybox
        • Test Your Space
        • Troubleshooting
      • Improve your Space
        • Lightmaps (Unity Lightmapper)
        • Light Probes
        • Reflection Probes
        • Animation in Unity
        • Importing Animation
        • Player Property Volumes (PPV's)
        • Warp Volumes
        • Adding Audio
        • VRM Switcher
        • Custom Canvases
        • Embedded Video
        • User Interface (UI)
        • Creating Custom Shaders
        • Imported Assets
        • Lightmaps (Bakery Asset)
      • Optimise your Space
        • Prefabs
        • 3D Asset Specs
        • Optimizing your Space
      • Adding Interactivity
        • Visual Scripting
          • Web Request Node
        • Mona Reactor
          • Creating Animation
          • Using Animator
          • The Reactor Component
          • Reactor Overview
      • MONA Tools
        • Template Utility
        • MONA Capture
        • Light Probe Generator
        • VOX Importer
      • Submit Your Space
        • Submitting your Space
        • Creating an Image & Video Preview
        • QA Process
        • Mint Your Space
      • Update your Space
      • Frequently Asked Questions
      • Troubleshooting
    • Creating Assets
      • Asset Requirements
      • 3D Asset Types
      • Asset Creation Approaches
      • Optimizing your Mesh
      • GLB Considerations
      • Example - Cyberpunk Car
    • Creating Avatars
      • Getting Started with VRM
      • VRM Requirements
      • VRM Creation
        • Using Mixamo for Rigging
        • Adding Custom Bones to the Rig (Optional)
      • Creating your Avatar using UniVRM
        • Importing UniVRM into Unity
        • Creating the VRM using UniVRM
        • Adding Spring Bones in UniVRM (Optional)
      • Creating your Avatar using 'VRM for Blender'
        • Adding 'VRM for Blender' into Blender
        • Using 'VRM for Blender' for Rigging
        • Adding a Material
        • Assigning VRM Details
        • Exporting the Avatar
      • Uploading your VRM
      • Using Avatars in WebAR
      • Submitting your VRM to the Mona Marketplace
      • Mint Your Avatar
      • Troubleshooting
    • Resources
      • MONA Claim Asset Requirements
      • Unity Wallet SDK (Alpha)
      • MONA Playground
      • MONA Tutorials
        • Retrowave Modules
      • Asset Resources
        • 3rd Party Assets
        • Textures
        • Shaders
        • 3D Assets
        • Audio
        • Tools
        • Tutorials
      • MONA Library
        • MONA Library Submission
      • Useful Unity Packages
      • Updating the Template SDK
      • Importing Mozilla Hubs Spaces to MONA
      • Importing AltspaceVR spaces to MONA
    • MONA Marketplace
  • ⬛Explore
    • How to Use MONA
    • Using VRM Avatars
    • Audio Settings
    • Explorer's Frequently Asked Questions
  • ⬛Collect
    • Setting up a wallet
      • Delegating a Wallet
    • Own a Space
      • Host an Event
      • Uploading your Images
      • Add Images to a Canvas
      • Live Music Feed
      • Token Gated Access
      • Minted 3rd Party Assets
    • MONA Create
      • Create FAQ
    • Live Streaming in MONA
      • Setting up OBS Studio
      • Livestream using OBS Studio
      • Livestream using a Mobile Device
      • How to Stream Using Twitch or YouTube
      • Add a Livestream to a Canvas
    • Collector's Frequently Asked Questions
  • General Resources
    • Web3 Introduction
    • How to sell Art in Web3
    • Game Dev Glossary
    • Buildathons / Challenges
      • 3D Asset Buildathon (Current)
        • Frequently Asked Questions
      • Emote/Emoji Challenge (Completed)
      • Stream Challenge (Completed)
      • Custom Avatars (Completed)
      • Build : NY Challenge (Completed)
      • Sculpture Challenge (Completed)
      • Portal Hub (Completed)
      • Interact (Completed)
      • The Renaissance (Completed)
Powered by GitBook
On this page
  • UnityWebRequest Example
  • Updating a current Mona Space

Was this helpful?

  1. Create
  2. Building Spaces
  3. Adding Interactivity
  4. Visual Scripting

Web Request Node

This doc goes over the Unity Web Request Node...

PreviousVisual ScriptingNextMona Reactor

Last updated 1 year ago

Was this helpful?

The Unity Web Request node allows a Mona space to communicate with a web server. The primary goal of the Unity Web Request system is to allow projects to interact with web browser back-ends. For more information, check out the .

You could therefore create a space that interacts with information from the web. Examples of this include :

  • Get information from web data such as a .json or image files to feed into a space.

  • Send information to a server to store data such as a leaderboard.

  • Create a text file to track an inventory or scoreboard over multiple spaces.

  • Realtime data: weather data, news feed, pollution, planets, etc.

  • Saving game progress: save collected items, areas unlocked, so that you don’t start from scratch next time you play.

You will need to use the latest Mona SDK if you want to use the UnityWebRequest nodes in Visual Scripting.

UnityWebRequest Example

If you would like to see an example of the UnityWebRequest in action, you can download the following project. If you look into the Cat asset (near the desk) you can interact with it in order to pull cat facts from an external source. Looking into the Visual Script of the asset will give you a simple example of utilising the UnityWebrequest node in Visual Scripts.

To download the project, go here :

Updating a current Mona Space

If you want to update a current project, the easiest approach is using the Updating the Template SDK documentation.

Alternatively, you could add the required nodes manually by doing the following :

  • Go to Edit > Project Settings.

  • Go to Visual Scripting in the left panel.

  • At the top, expand the 'Node Library' options. This needs to be first.

    • At the bottom of the 'Node Library' listing, select the '+' symbol to add a new item.

    • Add the following two items by clicking on the slot and using the search tool.

      • UnityEngine.UnityWebRequestModule

      • UnityEngine.UnityWebRequestWWWModule

  • Expand the 'Type Options' listing above the Node Library listing.

    • At the bottom of the 'Type Options' listing, select the '+' symbol to add a new item.

    • Add the following three items by clicking on the slot and using the search tool.

      • Download Handler

      • Unity Web Request

      • WWW Form

  • Once the items are added, select 'Regenerate Nodes' and select OK once done.

⬛
UnityWebRequest documentation
here
https://github.com/monaverse/Sample_WebRequestNode
Add the Node Library options
Add the Type Options...