Creating Tabs in C# and implement in Unity3D

Hi there.
Is there any tutorial, sample/solution or advice I can get from you in how to create paging using tabs in C# which
I need to implement in Unity3D. I was searching and browsing the web but I am unable to find what is required.
Thank you very much for your kind help and assistance.

You are wanting to do this using the standard Unity GUI I take it? I’m getting ready to do an interface with Tabs myself and am interested to hear the responses. I had been thinking of writing my own TabManager class which could control a collection of TabPage class objects. I was going to go look at some of the existing Tab APIs in .NET, Java or PHP/HTML to try and derive some design patterns and best practices.

-Tim

This may not be the best solution, but it’s how I did it:

  • inactive tabs are buttons
  • active tab is drawtexture (don’t need any down state or action when pressed)
  • buttons change a state variable so the next OnGUI just renders the appropriate controls for the page

Very simple, works dandy.