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 /
This post has been wikified, any user with enough reputation can edit it.
avatar image
1
Question by tonyjoseph456 · Oct 24, 2014 at 12:12 PM · buildshaders

My game changed to pink color after building... Help me

I have created a game and it works fine on Unity. This is a screen shot of it while I play it in the unity.

alt text

Now when I try to build the game as a game which is to be played on windows, and after building it successfully, and when I try to run it, my game looks entirely different than what I see on the unity, the roads and pavements have all changed to pink colour, in my builded game. This is the screen shot of the actual game:

alt text

How do I get the actual color of the roads back in my original builded game? What is the problem here? I'm a newbie to unity, so I didn't know what has actually happened here while I builded the game. Please help me out...

screenshot1.jpg (438.8 kB)
screenshot2.jpg (309.1 kB)
Comment
Add comment · Show 3
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 MrSoad · Oct 24, 2014 at 12:22 PM 1
Share

That looks like a shader issue. Did you edit a shader at all? Or use an old shader imported form an old project?

avatar image Landern · Oct 24, 2014 at 12:23 PM 1
Share

@tonyjoseph456 are you loading the materials by hand through scripting and Resources? Or are the materials assigned directly through the inspector?

avatar image tonyjoseph456 · Oct 27, 2014 at 04:44 AM 0
Share

@$$anonymous$$rSoad & @Landern The shader which I have used is self-Illu$$anonymous$$ / Bumped Diffuse. Actually I got this project from internet from a website for studying the game developement using unity. And I have started learning unity a few days back. Please guide me if I'm wrong.

3 Replies

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

Answer by tonyjoseph456 · Oct 27, 2014 at 06:46 AM

Solved it.. In my script I have used two shaders one for mobile devices and the other for pc. The default shader which I have used is only for mobile devices and I didn't added the shader for using in PC. So in Edit->Project Settings->Graphics->Always Included Shaders and I added the shader which I have used in my script and the problem is solved..

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 MIHGames · Oct 27, 2014 at 05:11 AM

Hi, tonyjoseph456 This question has been asked quite a few times. I would suggest looking at this: http://answers.unity3d.com/questions/168624/everything-became-pink.html Have fun!

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 tonyjoseph456 · Oct 27, 2014 at 06:09 AM 0
Share

@$$anonymous$$IHGames I think that this is a shader issue. I'm using self Illu$$anonymous$$ / bumped diffuse as the shader. see this image.

alt text

screenshot (7).png (502.6 kB)
avatar image MIHGames · Oct 27, 2014 at 06:13 AM 0
Share

hmm, I noticed that Illu$$anonymous$$ (A) has no texture applied to it, try appling something to that, see if that helps.

avatar image tonyjoseph456 · Oct 27, 2014 at 06:45 AM 0
Share

Solved it.. In my script I have used two shaders one for mobile devices and the other for pc. The default shader which I have used is only for mobile devices and I didn't added the shader for using in PC. So in Edit->Project Settings->Graphics->Always Included Shaders and I added the shader which I have used in my script and the problem is solved..

avatar image
0

Answer by ozitech · Feb 16, 2017 at 01:58 PM

First make a backup of your project then Delete all folder other than Assets in your project folder then run your project it will take time , then you must have to change platform then make a build and run. It will work 100% sure IA .. Sorry for my bad English :)

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

6 People are following this question.

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

Related Questions

Distribute terrain in zones 3 Answers

Making material transparent working in IDE, but not in built game (Standard shader missing in built game?) 0 Answers

Stencil and mask shader not working when building on Windows Desktop. 0 Answers

Why is the double sided shader not working in android build? 0 Answers

How to decrease Android build time and bypass "Compiling Shader Variants" when adding a new scene 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