Задать вопрос
@Xpym4uk76

Как решить ошибку Unity с Photon?

Мой кусок кода :
public void OnPhotonSerializeView(PhotonStream stream, PhotonMessageInfo info)
    {
        if (stream.isWriting)
        {
            stream.sendNext(isMale);
        }
        else
        {
            isMale = (bool)stream.ReceiveNext();
        }
    }


Код ошибки :
'PhotonStream' does not contain a definition for 'isWriting' and no accessible extension method 'isWriting' accepting a first argument of type 'PhotonStream' could be found (are you missing a using directive or an assembly reference?)

'PhotonStream' does not contain a definition for 'sendNext' and no accessible extension method 'sendNext' accepting a first argument of type 'PhotonStream' could be found (are you missing a using directive or an assembly reference?)


Помогите пожалуйста решить, буду благодарен!
  • Вопрос задан
  • 105 просмотров
Подписаться 1 Простой Комментировать
Решения вопроса 1
1. SendText с большой буквы.
2. isWriting вроде ок написано. Попробуйте тоже с большой буквы написать или поискать другие похожие поля/свойства
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы