• The world camera is part of the canvas and the canvas by default will use the main camera.
    But for some reason a canvas spawned by orc will not.
    I wrote a script to set the world camera at runtime and attached to the canvas but as of yet haven't got it to work
  • Are you using canvas prefabs in your UI layers to create the canvases? If the canvas prefab is set up correctly (using the camera form the canvas) that should work.

    Otherwise ORK will create one based on the settings in UI > UI System, where you can e.g. set to use screen space cameras and define if the main camera should be used or find one in your scene (e.g. by name or tag).
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • I Am using prefabs for my layers and I was able to write a script that sets sets the world camera.
    But there is still something blocking my interaction
  • If by interaction you mean a click/interaction on a UI, there's most likely something in the way that intercepts the raycast, e.g. something on a higher UI layer.

    You can check that when pausing the game and looking at your canvases in the scene hierarchy. If some other UI is in the way (even when not displaying something) it can intercept the raycast.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • Thanks for the help I finally found if I set the event system to none it started working.
    I would also like to know if I can have the ui box spawn at the location of a prefab
  • That depends where it's used. E.g. Show Dialogue nodes can use a speaker to display the UI box at their position, or object-based HUDs (e.g. the Combatant Object HUD) uses the position of the combatant.

    You can also use world space canvases - check out this tutorial for an example of a world space dialogue.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • What I would like to be able to do is have the save and load menu spawn at an empty child object
    of the player so when it is called it is in front of the player.
  • Hm, maybe using an open schematic on your UI box (e.g. via Before Open Schematic). The UI box itself is available as selected data using the key ui - in case of the Unity UI module, that's a component on a game object.

    So, you should be able to use a Mount Object node and mount it on a canvas/child object of your player.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • I can mount other game object using the mount node but it will not move the canvas for some reason, it seems as if something is blocking its movement or i am not getting the settings right.
    Also I have a 3d inventory system that I used on anther project and don’t really know where to start
    so that I could use the inventory with information from ork.
  • The open schematic of a UI box only has that UI box stored in selected data, not the canvas it's part of. So, that'd need to be mounted to another canvas in your scene to be visible.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.