- Home /
Lighting in AR for iOS
Hello,
I am getting some strange behaviour in regards to lighting in AR scenes on iOS. I have tested both on iPhone 6S and 11 Pro with the same results.
I'm using a particle system on an object which spawns once a horizontal AR plane is found with a raycast or after "X" seconds have passed. A directional light spawns with the AR object so as to ensure the object is always evenly lit in relation to the camera position. I tested just the AR scene on my devices and everything works as expected, but when I build the whole project and switch to AR from another scene during gameplay, the AR object spawns, but the directional light is having no effect on the object.
When I swap scenes, there is nothing notable in my scene management code that would suggest any change in the lighting settings and I'm using the same shader in the previous scene with the expected results.
Has anyone been faced with this issue?? Perhaps there is a setting that I have missed somewhere.
Thanks in advance for any help.
Cheers