Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
avatar image
0
Question by benamika · Nov 02, 2015 at 08:45 AM · unity 5webglanimationsheightmap

sprite animation change position webgl issue

hi all, I'm pretty new to the unity 5 and specially to the webGL.

I'm developing an arcade game in unity5.1.1f1.

i have different animation for every move of the player (press down - player ducks. press up - player jumps).

i use the animator for this and i have animation controller with some booleans to state the player moves from animation to animation.

all of the changes are made by a C# scripts of the player by the Animator Class and Set.Bool function.

in the development stage (when I'm running the game in unity - no build) it all runs smooth with no bugs, but when i move the game to a server or playing in build & run mode i run into animation problems.

instead of showing the animations it shows purple figure.

does anyone have an idea for the solution of this annoying problem?

thanks in advance.

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 MakakWasTaken · Nov 02, 2015 at 08:51 AM

I don't Think that problem has anything to do with animating, it is more likely that you are using a shader which isn't included when building. Go to Edit/Project/Graphics and add the custom shader to the list.

Comment
Add comment · Show 3 · 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 benamika · Nov 02, 2015 at 09:22 AM 0
Share

a. i think it's somewhere between the animator and the scripts. because when i set the default of the player to each animation separately without using the script (without letting the key to change the player animation) and playing it through localhost (build & run) the animation works.

moving from 1 animation to another is the problem.

b. i use the sprites-Default. i don't know otherwise. ;(

i attached photos. before and when i press the down key

[1]: /storage/temp/57410-2015-11-02-11-15-47-unity-webgl-player-cicles.png

2015-11-02-11-15-23-greenshot.png (39.1 kB)
2015-11-02-11-15-47-unity-webgl-player-cicles.png (43.7 kB)
avatar image MakakWasTaken · Nov 02, 2015 at 10:48 AM 0
Share

Have you checked that the sprites-default is in the list of included shaders?

avatar image benamika MakakWasTaken · Nov 02, 2015 at 11:31 AM 0
Share

yes i did. it was

avatar image
0

Answer by benamika · Nov 02, 2015 at 11:37 AM

FIXED!!

so I've been playing around with my project and found that my sprite's properties were not the same.

in some sprites the format was Truecolor, and the other was on compressed.

i don't relay understand the fix but when i changed the sprites to the compressed format it fix the problem.

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

41 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity WebGL Disable mobile warning 12 Answers

Unity WebGl escape button 0 Answers

Unity 5 Web GL failed 1 Answer

Webgl build does not play video but editor does 0 Answers

Unity WebGL build and PHP Post communication 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