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
4
Question by Legogo · Nov 22, 2009 at 08:11 PM · guiwebplayer

Problem with GUI and webplayer

I don't understand why but some code that works in Unity (just a GUI.Label()) doesn't show in the webplayer ...

Any advise ?

-EDIT-

Sorry, I should have been more specific. I have two scene in my build. One is the menu and one is the app.

The menu has currently juste a script that contains a

GUI.Label(Rect(10,10,200,30),"testing");

nothing too fancy ... Doesn't work in the webplayer & the .exe I tried to build another project and it works ... I think it's related with how I should use the scenes (I just drag&dropped the scene in the build list)

Comment
Add comment · Show 1
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 Brian-Kehrer · Nov 22, 2009 at 08:18 PM 0
Share

Does it not show in any builds, or just the not in the webplayer? Did you add the scene to the build settings? Is it positioned in a place where it would be onscreen in the web resolution?

5 Replies

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

Answer by Brian-Kehrer · Nov 23, 2009 at 12:29 AM

Dragging and dropping should work, although if you move scenes in the project between builds, sometimes they are not added properly. I'm not sure if that has changed in 2.6.

Try opening the build settings, deleting all the scenes, and re-adding (dragging and dropping is fine) the scene in question. If you want to be sure the scene is working, add a GUITexture (not from code, but from the MenuBar GameObject-> CreateOther ->GUITexture) and save it in your scene. See if that shows up.

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 Legogo · Nov 23, 2009 at 04:08 PM 0
Share

Thx for the help (everyone).

I rebuild everything from scratch and it works now. I guess Unity isn't very stable yet ^^

avatar image Brian-Kehrer · Nov 23, 2009 at 08:37 PM 0
Share

All in all, it's pretty stable. This is one quirk I have seen, but really there aren't too many

avatar image
5

Answer by Nabeel Saleem · Jun 04, 2014 at 08:51 AM

Have you tried this?

-From import settings

Texture type=texture

Filter mode=Trilinear

Slect web as a platform and check yes on override for web

Max size=max

Format=truecolor and click apply

SOURCE

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
avatar image
1

Answer by nemo1992 · Nov 22, 2009 at 09:55 PM

Maybe your Unity Webplayer window is to small to include Rect you've specified.

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
avatar image
0

Answer by bioduds · Nov 19, 2011 at 03:41 AM

Deleting all the scenes and readding worked for me. Thanks a lot!

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
avatar image
0

Answer by bioduds · Nov 19, 2011 at 03:41 AM

Deleting all the scenes and readding worked for me. Thanks a lot!

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

2 People are following this question.

avatar image avatar image

Related Questions

How to detect if mouse is over GUI element in Web Player? 0 Answers

How do I show a txt file from my server in GUI? 3 Answers

How to take a Screenshot that includes GUI 1 Answer

Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers

Missing characters in Mac webplayer - Font/GUI issue? 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