Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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 robert 7 · Mar 07, 2011 at 04:26 PM · guieffect

special effect in gui button labels

what are the special effect that can we use with GUI.buttons and other Gui Elements like glowing button and other special effects and change the font inside the button and type text like type writer effects.Can U please tell all links related to special that we can add to gui elements

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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by dissidently · Mar 07, 2011 at 04:43 PM

None. You'll need to do it all manually yourself, either in textures or with trick layering. Think like Photoshop Layers with various different forms of opacity and different effects applied to each layer to get desired result.

Now bang head against wall and wish for a better GUI in Unity3D. That banging of your head was the most effective part of your wishing process.

Now for some disappointing links.

http://answers.unity3d.com/search?q=gui+effects

Comment
Add comment · Show 1 · Share
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
avatar image robert 7 · Mar 07, 2011 at 06:32 PM 0
Share

can we able to give appearance inside gui elements through scripting any body having any idea

avatar image
0

Answer by Bunny83 · Mar 07, 2011 at 07:02 PM

Just use GUIStyle or a GUISkin to define how the buttons appearance should look like. A GUISkin contains a collection of GUIStyles for all gui elements. You can use a GUISkin by assigning it to GUI.skin inside your OnGUI function.

Every GUIStyle have some general properties to define streching behaviour, border of the background image, margin, padding, wordwrap...
In addition you have 8 GUIStyleStates that define how the element should look like when the button / element is in a certain state:
normal, hover, active, focused
and
onNormal, onHover, onActive, onFocused
In these GUIStyleStates you can define a seperate backgroundimage and a textcolor that should be used.

GUIStyles can also be used directly on a GUI element by passing it to your Button / Label / ... function. If you use the label style on a button the button will work as before but will look like a label. A label with the style of a button will look like a button but can't be clicked of course.

Everything that isn't covered by the basic builtin state / behaviour settings have to be achieved manually. In general almost everything is possible but it's always a matter of creativity, time you wanna spend and the knowledge you have.

Good luck!

Comment
Add comment · Share
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

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.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

dirty lens effect over light help 1 Answer

Write a Shader for GUI (GUITexture or scripted GUI) 0 Answers

Gui Button zoom 1 Answer

How to make my label fade after 2 sec? 1 Answer

Polish letters in GUI - saving with UTF8 is not working 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges