I have a scene defined as following:
Two cubes, assigned a Mobile/Diffuse shader with texture.
One directional light
Everything looks fine in unity, or compiled Mac standalone app.
But when I compile and run on my iPhone, there is no light at all. I cannot figure why, any help?
By the way, I'm using XCode 4.3.0, iOS 5.1, Unity3D 3.5.0f5 if it matters.
Scene on iPhone:
Answer by Griffo
Jul 04, 2012 at 10:50 AM
Is there a plane in your scene? if not put one just under you boxes and drag any texture onto it, take out any lights you have put in the scene then go to Menu, Edit, Render Settings and set the ambient light up to full white, now put it on your iPhone and see if it's all lit up.
I'm still new to Unity but thats what I'd try first, good luck.
This isn't a fix. It's like answering "cut off your arm" when somebody asks how to heal a cut on their hand. It avoids the issue entirely.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
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.
Answers and Comments
6 People are following this question.
How do I fix directional light problem with multiple instances of prefab?
Can I disable lighting for efficiency?
point light flickers on iOS but works fine in Android
Why does the lighting on an object change when multiple objects are within camera view (iOS)?
Per Pixel Lighting on iOS