Jump to content
  • Advertisement
cursetalegame

I want to create "card slots" as user interface (Unity)

This topic is 390 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello! I am building the main scene in Unity for a 3D cards game. My goal is creating "card slots" to place the different cards from a deck and use it as "buttons". The image below represents somehow what I want to develop. I have been reading and I think that I have to generate a canvas and place in my scene the slots where I want to place the cards, but I am not sure about it. Also, to use the cards, I don't know if setting buttons is the best option (maybe I should use images instead).

All recommendations and tips are welcome :)

Card_Slots.PNG

Share this post


Link to post
Share on other sites
Advertisement

What part are you having problems with?  

It seems to me you could create an object that has an array of cards.

That object can have a sub-object canvas for display, and it can coordinate how the canvas displays the tiles, perhaps with scroll bars or resize/rescale/reposition, or whatever you need for the sub-object.

Would that work for you, or do you need a more complex solution?

Share this post


Link to post
Share on other sites

I think that is exactly what I was looking for. Because I am a kind of beginner in Unity, there are some things that I don't know how to develop it.

The solution you provide to me seems to be what I am looking for. I know that the cards are part of the UI (for example, it is like control buttons in a mobile phone game), so I knew that canvas was needed, but I didn't know how to make the "planning" for the development.

Thank you so much for the tips :)

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!