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 Joshdbb · Oct 28, 2014 at 01:24 PM · bugwebplayervideorefreshflashing

Unity Web Player - Error when loading for the first time

Hey,

I've recently started developing with Unity and have run into an issue.

I built the game that I'm working on for the Unity Web Player; when I first try to play the game in my browser I see the Unity loading bar as normal but when loading is finished the web player screen starts flashing vey fast and sometimes shows pieces of graphics from other parts of the screen while flashing (it looks as though something goes wrong with the video memory), sometimes it shows pieces of graphics that were on screen fairly recently but not anymore. You can tell that the game is playing as it should because you can hear the sounds but you can't see anything apart from mad flashing. When I refresh the page everything works as it should. If I then leave it for a while and come back to it and load the page again the flashing will be back (until I refresh again). I have tried this on Safari, Chrome and Firefox and they all act the same. I have also tried on a different computer (although they were both running osx).

I have another game that I recently built that works perfectly well. I can't think of anything that I have done differently, they are both very simple games.

Does anyone have any idea what the problem could be caused by? I don't even know where to begin.

You can see my game here: http://joshua_burr.itch.io/swarm-attack (name suggestions very welcome), hopefully you will see the effect that I'm talking about (I tried opening the unity-built html file to play the game locally and have seen the same effect so it is nothing to do with itch).

Here are a couple of screenshots of the kind of stuff I see while it is flashing: alt text alt text

Thanks.

webplayerissue1.png (42.3 kB)
webplayerissue2.png (101.0 kB)
Comment
Add comment · Show 4
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 SaraCecilia · Oct 28, 2014 at 01:24 PM 0
Share

That is very strange! I Googled "upside down unity web player" real quick and found this thread: http://forum.unity3d.com/threads/webplayer-running-upside-down.53003/

Not sure if it's the same problem you are having, as this person was only having trouble on Windows and he removed any image effects he had.

I'm wondering if this could be a bug, however. Have you tried uploading it several times with the same results?

avatar image Joshdbb · Oct 28, 2014 at 01:31 PM 0
Share

The screenshot makes it look as though the player is upside-down, it is actually madly flashing and that is one frame. I don't have any image effects on as far as I'm aware (are they only available in unity pro?).

I tried building it several times and I see the same effect when running it locally using the unity-built html file.

Thanks for the help.

avatar image MrSoad · Oct 28, 2014 at 02:40 PM 0
Share

If you look at the writing it is mirrored horizontally, so its not upside down...weird.

avatar image mikapeltomaa · Nov 10, 2014 at 12:44 PM 0
Share

I have this exactly same problem. No matter which browser I use.

1 Reply

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

Answer by Joshdbb · Nov 16, 2014 at 12:42 AM

I have fixed this now. The problem was a script that I had on my camera:

 void Awake()
 {
     Camera.main.orthographicSize = Screen.height / 200f;
 }

Changing this to:

 void Start()
 {
     Camera.main.orthographicSize = Screen.height / 200f;
 }

fixed my problem.

I also noticed that you get the same effect if you build a scene with no camera.

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Cursor disappearing in webplayer 1 Answer

Unity Webplayer StreamingAssetsPath = Raw? 0 Answers

Youtube videos in Unity WebGL 2020.3 0 Answers

WWW responseHeaders not giving me cookie in web-player, but does in editor 1 Answer

Streaming video to movie texture in web player 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