• 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
3
Question by Jeremy 6 · Oct 09, 2010 at 12:10 AM · editorguiguiskin

Can you apply a GUISkin to an Editor GUI?

Can you apply a GUISkin to an Editor GUI? Does this make sense? How does one customize controls otherwise? If you can apply a GUISkin, how does one load it from the project?

If this is documented somewhere, how do I find it?

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

1 Reply

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

Answer by Jeremy 6 · Oct 13, 2010 at 06:37 PM

The short answer is "Yes"!

Gui.skin = EditorGUIUtility.Load("LevelEditor/LevelEditorSkin.guiskin") as GUISkin;

The untility allows you to load resources but they have to be inside a "Editor Default Resources" folder which isn't inside the Editor folder but in the project root. Then you don't refer to the "Editor Default Resources" in the path but the hierarchy below that. Also you have to include the file name and the file extension (which seems to go against convention) but then you assign the GUI.skin normally.

It works as you would expect it would in any other situation. Still the documentation is somewhat lacking.

I hope this helps.

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.

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

No one has followed this question yet.

Related Questions

Initialising List array for use in a custom Editor 1 Answer

Custom Style EditorGUI 2 Answers

How do I add a drop-down menu to an EditorWindow? 3 Answers

Programmatically assign a Label Icon to a Game Object 2 Answers

Creating a custom script that extends other scripts in Editor 1 Answer

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