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 GlennHeckman · Apr 29, 2011 at 05:44 PM · guistyleguiskin

How to delete a custom style from a GUISkin?

I have created a bunch of custom styles (on multiple skins, but that's a different story) in one skin in particular and as my knowledge of the UnityGUI and GUISkin has evolved, I no longer require as many custom styles. Short of creating a whole new GUISkin and only adding the newly required custom styles to it (A huge pain) .. is there a way to simply delete or remove the custom styles I no longer need?

Summary: How Do I delete a custom style from a Skin without start a whole new skin?

Thanks!

Comment
Add comment · Show 2
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 Bunny83 · Apr 29, 2011 at 05:51 PM 0
Share

Well, the problem is that the custom styles is an array. Normally arrays can't drop items inbetween. Only at the end. I've read somewhere that there's a keyboard hotkey for inserting and deleting items from an array in the inspector but unfortunately i can't remember it :D

avatar image Bunny83 · Apr 29, 2011 at 05:54 PM 0
Share

Just tried it. SHIFT + $$anonymous$$ will remove the current selected element ;) Can't find the hotkey for inserting... :|

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Bunny83 · Apr 29, 2011 at 06:07 PM

Ok, got it :D

  • To delete an element in an array just select the element and press SHIFT + DEL
  • To insert an element into an array select an exisiting element and press CTRL + D. That will duplicate the current element and insert it below the original.
Comment
Add comment · Show 2 · 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 GlennHeckman · Apr 29, 2011 at 06:10 PM 0
Share

Thanks Bunny! .. Before co$$anonymous$$g back to this post I tried selecting the style and hitting delete and it worked .. you've confirmed my findings. Thanks for the input shortcut .. that has been a question of $$anonymous$$e as well for a long time.

Thanks!

avatar image Bunny83 · Apr 29, 2011 at 06:21 PM 0
Share

You're right. For arrays of simple value types like int[], string[]... just press $$anonymous$$. But reference types like GameObject[], Transform[] ... when you press $$anonymous$$ you set the reference to null. For such arrays you have to use SHIFT+$$anonymous$$... That's some knowledge i've gained a long time ago but i can't remember it.

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

Why can't I access the Name field in the Custom Styles section of a GUISkin in the Inspector? 2 Answers

Why is texture blurred in one GuiStyle and not in another? 1 Answer

Problems controlling the GUI skin / style 2 Answers

Understanding GUISkin/GUIStyle BackgroundImage and Border 2 Answers

Using GUISkin with Hierachy Objects 0 Answers


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