Настройки Unity Player не обновляются после сборкиC#

Место общения программистов C#
Ответить
Гость
 Настройки Unity Player не обновляются после сборки

Сообщение Гость »


I am using a singleton that runs across multiple scenes (Dont Destroy on Load) that has access to methods and variables used to save & load values using player prefs. Everything works out well except for the currentAmount which is an int variable.

After buidling for mobile, the current amount is fixed at 350 i don't know why.

As from unity editor, everything works well for the current amount.

I tried to debug in the unity editor and see if there is something wrong but everything works out fine.

Furthuremore, the unity editor displays the currentAmount as updated value (Keeps changing depending on certain events), which is what i expect.

The moment i build and test in a mobile device, the value is stuck/fixed at 350.

I tried out on different mobile devices still the same issue.


Источник: https://stackoverflow.com/questions/780 ... r-building
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «C#»