Forum Discussion

rico.stenson's avatar
30 days ago
Solved

How to upgrade my World to latest APIs

I have noticed that my world is built on older APIs and missing some other features.  So I would like to update to the latest.... however, that doesn't seem possible in the current Editor.  Even the Gen AI instructions are out of date.  It says I should be able to do this in the upper left via a World -> Settings menu... but for me that doesn't exist.  Soooooo.... How do I update my project to the latest with out having to create a new project and rebuild my current project from scratch?

See Pic.  AI is referring to UI that isn't there.  So where is this world api UI?  




 

  • As jimrif​ has mentioned you must first activate APIs in order to use them. In the desktop editor open the scripts dropdown menu and open the Script Settings panle by pressing the cog wheel icon. Go the API section on the left side of the panel and toggle on the APIs you are trying to use.

     

5 Replies

  • As jimrif​ has mentioned you must first activate APIs in order to use them. In the desktop editor open the scripts dropdown menu and open the Script Settings panle by pressing the cog wheel icon. Go the API section on the left side of the panel and toggle on the APIs you are trying to use.

     

  • Click the cog under Scripts and you will see an API section to toggle on the various available APIs.

  • Hello!

    A question - what version of the desktop editor are you using?

    APIs update with the editor, so you may be able to resolve this by using the "Check for Updates" in the dropdown from your screenshot.

    Let me know if this helps.

    • rico.stenson's avatar
      rico.stenson
      Member

      The version I have is 236.0.0.5.304.  It seems to update automaticly every week.  Also I have tried "Check for updates" and nothing happens.  The issues I'm having are project specific.  

      For instance... "horizon/ui"

      I have a simple empty project/world I made a few days ago that I was testing the CustomUI with the horizon/ui import.  This script with the horizon/ui inport compiles just fine.   

      import { UIComponent, View, Pressable } from "horizon/ui";

      However, I have an older project which is my actual game I've been working on for a while doesn't have access to "horizon/ui" and that script doesn't compile.  See this error below.

      New Project A compiles fine... Older Project B doesn't in this same editor version and same code. 

      There must be settings in the project I need to change.  So..... how do I access my current project/world properties so I can set the horizon/ui package/API that are included so I have all the current features? 

      In Unity, this is done via the Package Manager, but I don't see a method to access or modify the project properties/settings in the desktop editor verison I have.