Unity error cs1519: invalid token = in class, struct, or interface member declaration

jour_trau

0 / 0 / 0

Регистрация: 08.04.2022

Сообщений: 1

1

08.04.2022, 15:23. Показов 545. Ответов 3

Метки нет (Все метки)


C#

1 2 3 4 5 6 7 8 9 using System.Collections; using System.Collections.Generic; using UnityEngine;   public class RotateCamera : MonoBehaviour {     public float speed = 5f;     private Transform }

RotateCamera.cs(9,1): error CS1519: Invalid token '}' in class, struct, or interface member declaration

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь

0

Programming

Эксперт

94731 / 64177 / 26122

Регистрация: 12.04.2006

Сообщений: 116,782

08.04.2022, 15:23

Ответы с готовыми решениями:

Error 1 Invalid token '=' in class, struct, or interface member declaration
{ class Person { public string firstName; public string lastName; ...

Ошибка в скрипте Unity: Unexpected symbol in class, struct, or interface member declaration
ОШИБА в 6 строке using System.Collections; using System.Collections.Generic; using UnityEngine;...

ошибка CS1519 unexpected symbol 0.2 in class, stuct or interface member declaration
Насцене 2 объекта, один terrain другой претащенный из Project assets авто. Ставлю на авто этот...

Ошибка "Unexpected symbol in class, struct, or interface member declaration"
Unity выдаёт ошибку: Assets/Scripts/Item.cs(11,36): error CS1519: Unexpected symbol `ItemType' in...

Error: Expected class, delegate, enum, interface, or struct
Создал приложение winforms, добавил класс с реализацией методов, почему то куча ошибок типа...

3

536 / 328 / 102

Регистрация: 06.03.2017

Сообщений: 1,240

08.04.2022, 15:34 2

Unity error cs1519: invalid token = in class, struct, or interface member declaration
Сообщение от jour_trau
Unity error cs1519: invalid token = in class, struct, or interface member declaration

private Transform

Это что за чушь?

0

filh

53 / 37 / 19

Регистрация: 11.06.2021

Сообщений: 151

08.04.2022, 15:39 3

C#

1 private Transform transform;

0

filh

53 / 37 / 19

Регистрация: 11.06.2021

Сообщений: 151

08.04.2022, 16:49 4

Pilarentes, который компилится:

C#

1 2 3 4 5     public class RotateCamera : MonoBehaviour     {         public float speed = 5f;         private Transform transform;     }

0

IT_Exp

Эксперт

87844 / 49110 / 22898

Регистрация: 17.06.2006

Сообщений: 92,604

08.04.2022, 16:49

Помогаю со студенческими работами здесь

Error CS1518: Expected class, delegate, enum, interface, or struct
Всем привет у меня проблема я не могу скомпилировать код помогите private void...

Выдает ошибку: incorrect field declaration in class TForm1
При запуске программа выдает ошибку Error in module Unit1: Incorrect field declaration in class...

Delphin выдает ошибку при создании отчета Invalid use of keyword.Token: , Line Number: 1
выдает ошибку при создании отчета,т.е. при нажатии DataField Ошибка: Invalid use of...

Как исправить ошибку error C2230: "a member function of a managed class cannot return a non-managed class"
Здравствуйте! Помогите пожалуйста исправить ошибку error C2230: 'GenerateRandomHReal' : a...

Unity error cs1519: invalid token = in class, struct, or interface member declaration
Ошибки в коде - Expected class, delegate, enum, interface, or struct
С с# не знаком, полез на msdn.microsoft.com насчет ошибок, тоже не очень понятно. насчет cs1513...

Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:

4