Forum rules - please read before posting.

Is it possible to extend inventory items to also be linked to a mesh / gameobject? [SOLVED]

edited June 2018 in Technical Q&A
Hello folks,

In my case, I'd like it so when the player selects a inventory item, that it is also represented as a 3D object that I can play around with in the scene.

I'm seeing a "linked prefab" field in the Inventory manager; would that be something I should be using?

Thanks,
Tem

Comments

  • edited June 2018
    The linked prefab field was exactly what I needed.

    You can access it via AC.KickStarter.runtimeInventory.GetItem (1).linkedPrefab in a c# script to then instantiate it as a GameObject and do anything you want. Brilliant.

    The more I use AC the more awesome and useful it becomes!

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.