Forum rules - please read before posting.

Combat Example Inventory help. Does the combat inventory work with First Person view?

Hello and happy New Year to everyone. I have a question about the Combat Example inventory. I like the Silent Hill style 3D inventory that rotates when an item is selected. I would like to implement and use this menu in my first person project. However, I seem to be having an issue with the camera. I duplicated a 3D inventory object in the combat scene to make sure it is set up properly and visible. I copied the menu and, as far as I can tell, all of the settings. However, whenever I trigger the inventory menu, I do not see the object. I am not sure if the issue is related to the first person setup, the menu, or the object itself.

https://drive.google.com/file/d/1mAwKksfneiBZe8TWw0Fsd9gsQX3CVBJz/view?usp=sharing > here's a video of the issue.

https://drive.google.com/file/d/1vP-XTrYxJu8r_o2fibRvLTqcn8RTl3Yg/view?usp=sharing > here's the object working just fine in combat example.

I think there's somethign in Settings set up that's causing it to work/not work, but I'm not sure. Not very familiar with AC and 3D settings. Just getting started.

As always thank you in advance for you help!

Comments

  • Items ought to be overlayed via the InventoryCamera, which will need to have its Culling Mask set to the same layer that your Inventory item prefabs are on.

    Try locating the InventoryCamera object in the Hierarchy while the Inventory is open, and check that its in front of the Items with matching layers.

  • edited January 4

    https://drive.google.com/file/d/1KSyx1NZKPlJpAH-KwJMXSBx7b97qDgoR/view?usp=sharing <- here's the set up, nothing seems to work. should there be an output texture added to that field (on the camera)?

  • No, but you may need to set the Camera to Overlay if you're using URP.

    What of its Stack and Environment settings?

    Are the screenshots taken of the prefabs, or the scene objects at runtime? Both the camera and the item have the same position.

  • https://drive.google.com/file/d/1eQs_B6MHGLutawKPhiiGDlOPDYJE_CrF/view?usp=sharing <-here's the cam at runtime. The Stack and Environment settings are visible in the video. I've tried overlay too, no luck.

  • Where in the Scene window are the Inventory items the camera is to view?

    IIRC Overlay cameras need to be assigned in the Main Camera's Stack.

  • I think I've found the issue. It's not the camera. The objects don't seem to spawn in the scene, even though I've copied all the settings from the combat example. I've no idea what makes the object spawn.

  • Items are spawned via the Custom Inventory component, which is attached to the example's Player prefab.

    When the Inventory menu turns on, this component spawns the "Linked prefab" assets of all currently-held Items.

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.