iOS exposed object properties are null
Hi,
I'm working on a game, everything works well on Android and Windows, but when I run my game on iOS (iPhone), I get a bunch of error with my public component's object properties. For exemple, I have a GameObject with a component script "Test.cs" attached, which have a public property :
public GameObject ScoreGameObject;
On Unity Editor, I drag and drop the GameObject I use to display my score on the exposed property ScoreGameObject. Nothing tricky here, juste a common use case. But this common use case doesn't work when I run my game on my dev iPhone. Everywhere I have this use case (game object droped on public exposed property on Unity Editor), I get an Null Reference Exception saying that the exposed property is null. Is there something I have to change in iOS part of Player Settings to allows exposed properties?
Thank you for your help.
Ben
Your answer
Follow this Question
Related Questions
Null Reference Exception in iOS build for some users. Not in Editor and cannot duplicate 0 Answers
Help! Null exception and "filename currently not available on il2cpp Line: -1", 1 Answer
Should I put custom launch image in my iOS game? Unity Personal, best practice. 0 Answers
iTunes song preview streaming on iOS 0 Answers