• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by superventure · Sep 28, 2012 at 12:22 AM · texturetextcolorgridhover

Gui grid text color changing and mouse hover

Is there a way to specifically set a whole grid button/its text to be a certain color? I know of gui skins, but not how to set individual colors of buttons. I made of grid of buttons for an attack move page- the player clicks a buttons to choose a specific attack, either elemental, physical, healing, etc. I am trying to color the buttons so that the player will know instantly what kind of attack is what by its color and not just is name. I assign attacks to buttons with different arrays of info, ie- the level to learn it attack, the type of animation to play, the special fx to instantiate, etc. Is is possible to include another array of colors to assign to each grid button?

Also, I know you can get a texture to appear when you hover over a button. I remember seeing it in the docs, but it didn't specify how to that with grid buttons. Could someone please give me an example of how to do that properly with a grid?

Thank you

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

9 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Change text color on GUI.Label 1 Answer

3D Text Object does not change to the color specified on Mouse Over 0 Answers

How to color text smoothly or how to color part of a letter? 1 Answer

How to change text color on hover in new GUI? 9 Answers

How to create a texture, fill it with some color, add a text at a center and to set this texture to some object in C#? 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges