C# iOS Inspector Member Variables

Hi Forums,

I have a question. On two sperate instances I have two public member variables that are assigned in the Inspector. ex:

public List foo;
public Material bar;

If I test the game in the editor it works perfectly, also with Mac/PC build. Whenever I run it on iOS, it says that their is a null reference exception that is thrown. I have assigned public members before, I don’t understand why its not working anymore.

I am using Unity Pro 4.0.0f7 and Xcode 4.5.2.

I think we need more context. Is the object in question a prefab, or an object in a scene? Is there any reason that a different scene/prefab would be loaded for iOS? Are the variables ever re-assigned?

I figured it out. I assigned the variables again, and it worked. Weird but fixed.

Errorsatz, they were scene objects and objects in the Assets folder.