Forum rules - please read before posting.

Enlarged inventory items with hotspots - guidance needed

edited October 2020 in Technical Q&A

Hi,

I'm using AC 1.71.8 with Unity 2019.2.10f1.

With some Inventory items I am experimenting with having them appear inside a bigger box centre screen, so that the player can examine these items in more detail. (see image: https://imgur.com/oDyGUU1)

Q1) I have currently done this by creating a menu with an inventory box with size of 1. It's not very clever, because each time I have a new item that needs to be looked at in this way I need to make another unique menu (see inspector properties here: https://imgur.com/56iLLOt) or dump the old item out somehow.

What would be the best way to do show an inventory item enlarged centre screen?

Q2) Further, ideally I would really like to have hotspots within this window, so that the player can fiddle around with specific parts of the object. (I mean like this: https://imgur.com/rPWJQxh, where they different words represent different hotspots)

Can anyone give me any hints on how could I go about doing that, ideally so that these inventory windows will work even if the player has travelled to different scenes?

THANKS

Comments

  • Especially if you want to add interactivity to your close-ups, you'll want to rely on separate prefabs that get spawned in front of the camera when an item is clicked.

    Such a prefab would have all the interactive elements, e.g. Hotspots, included in its hierarchy.

    To spawn a specific prefab in the scene when an item is clicked, create an interaction for the item and give it an Object: Add or remove Action to add the prefab into the scene. You can set it's new position to be relative to the camera so that it's always placed in front of it.

    You'll probably also want to include a wide, invisible Hotspot behind it to prevent clicks to the regular scene. You could also assign a Use interaction to this to have it use the same Action type to remove the spawned prefab.

    Just be aware that prefab logic will need to rely on ActionList asset files, so any Hotspots will need to have their Actions source fields set to Asset File.

  • Aha. OK, that all makes sense. Great, thankyou Chris.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.