❔ Image For inventory

Hello, I have a question. I would like to get an image of a GameObject and display it in an inventory. I have tried various methods but either it displays an empty image or it only displays the texture. Do you have any ideas/suggestions to help me out? Thank you in advance. If you don't understand what I mean, I'm talking about an overview of the GameObject, like the default view in Assets for prefabs in Unity.
5 Replies
Suiram1
Suiram12y ago
The way you ask the question I think you want to make the image at runtime. But why do you want to make it so complicated? You can take an image of the GameObject while it's open in Unity Editor and use that image in the inventory.
bisounours_
bisounours_OP2y ago
if I propose that it was so that it does it automatically when I want to recover a GameObject
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
seahood
seahood2y ago
Are you trying to figure out how to set images on gameobjects at runtime, or how to instantiate a prefab at runtime? Or you have one GameObject, and you want to take the image displayed on that and make that the image of the inventory GameObject?
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?