Runtime scripting: Missing usings for sample code

Welcome to Portals United! / Forums / Troubleshooting / Runtime scripting: Missing usings for sample code

  • Author
    Posts
  • March 19, 2025 at 1:06 pm #1340

    Hi,

    we are working with the runtime scripting feature following the documentation (https://www.portalsunited.com/docs/worldbuilder-runtime-scripting-documentation/). Unfortunately the samples are missing the needed usings. I managed to get the MyHoverComponent.cs working with following usings (thanks Vittorio):


    using Newtonsoft.Json;
    using System.Collections.Generic;
    using UnityEngine;
    using WorldBuilder.Core.Components;

    How is it with the MyHoverComponentInspectorView.cs?

    Best regards
    Moritz

    March 19, 2025 at 3:23 pm #1343


    Using UnityEngine;
    using UnityEngine.UIElements;
    using System;
    using System.Collections.Generic;
    using WorldBuilder.Misc;
    using WorldBuilder.Plugins;
    using WorldBuilder.Plugins.UI;

  • You must be logged in to reply to this topic.