Страница 1 из 2

Проблемма с input-ом, AWSD не отвечают

СообщениеДобавлено: 24 дек 2008, 23:18
Fox Malder
Перестали отвечать любые символьные клавиши типа awsd в режиме разработки, плюс престал работать хоткей на трансформацию обьектов в сцене. До этого все работало нормально, т. е. я не могу управлять персом , только стрелками...:(

Re: Проблемма с input-ом, AWSD не отвечают

СообщениеДобавлено: 25 дек 2008, 00:21
Neodrop
Во время работы самого Юнити (в режиме редактирования) WASD кнопки не работают. Потому что часть их зарезервирована как те самые хоткеи. :-B
А про трансформацию - не знаю. Не пользую. :-?

Re: Проблемма с input-ом, AWSD не отвечают

СообщениеДобавлено: 25 дек 2008, 12:38
Fox Malder
Странно но раньше в триал версии почему то все работало, будем искать... :-?

Re: Проблемма с input-ом, AWSD не отвечают

СообщениеДобавлено: 25 дек 2008, 15:55
Neodrop
Я, честно говоря не заметил - пролетел мимо и не использовал. WASD у меня не работал и в ИНДИ. Может быть потому, что клава не эппловская.
Кстати, подавай заявку на вступление в группу Unity3D PRO у себя в личке. :ymparty: Во народ, понакупят лицензий и радостью не поделятся :-w

Re: Проблемма с input-ом, AWSD не отвечают

СообщениеДобавлено: 26 дек 2008, 14:39
Fox Malder
Да но у меня все эпловское :) , сеня написал в суппорт, если будет ответ опбликую решение...

Re: Проблемма с input-ом, AWSD не отвечают

СообщениеДобавлено: 22 май 2009, 21:23
Sunlight
Создал свой первый уровень, запустил. Всё отлично - бегает, прыгает, но не поворачивается. То есть, клавиши wasd, как и в стандартных шутерах - вперёд, стрейф влево, назад, стрейф вправо. А повороты мышью отсутствуют. Пробовал играться со скриптами в "first person controller", но так ничего и не добился. Подскажите, как сделать?

Re: Проблемма с input-ом, AWSD не отвечают

СообщениеДобавлено: 22 май 2009, 21:34
Neodrop
Просто кинуть в уровень префаб FirstPersoneController и поначалу ни в коем случае не играться с его скриптами.

Re: Проблемма с input-ом, AWSD не отвечают

СообщениеДобавлено: 22 май 2009, 21:41
Sunlight
Neodrop писал(а):Просто кинуть в уровень префаб FirstPersoneController и поначалу ни в коем случае не играться с его скриптами.

Всё делал так, как сказано в туториале "Will Goldstone Tutors" 1.х
Получилось всё в точности, как на видео - никаких проблем. А вот обзор мышью не работает.
Попробовал сбросить настройки префаба (скорость бега, вес) - безрезультатно.

Скриншот

Re: Проблемма с input-ом, AWSD не отвечают

СообщениеДобавлено: 22 май 2009, 21:44
Neodrop
Выбрать - Assets->Import Package-> Пойти в папку, куда установлен Юнити и там найти StandartPackage.unitypackage Выбрать. Экспортнуть.
Появится папка StandartAssets.
Там найти папку Prefabs.
Взять оттуда.

Не знаю, что там в туторе. Никогда его не проходил. Его написали после того, как он перестал быть мне полезным.

Re: Проблемма с input-ом, AWSD не отвечают

СообщениеДобавлено: 22 май 2009, 21:53
Sunlight
Neodrop писал(а):Выбрать - Assets->Import Package-> Пойти в папку, куда установлен Юнити и там найти StandartPackage.unitypackage Выбрать. Экспортнуть.
Появится папка StandartAssets.
Там найти папку Prefabs.
Взять оттуда.

Имортировал StandartAssets.unitypackage.
Удалил клавишей del "first person controller" из списка hierarchy, снова добавил из папки standard assets->prefabs->first person controller, отредактировал координаты (падал в воду). Мыши как не было, так и нет. Только вперёд-назад и стрейфы по бокам.

Update:

В консоли ошибка

Код: Выделить всё
Couldn't load the script "mouselook" because its file name doesn't match the class name.
Please make sure the file name of the script is the same as the class defined inside it.


И таких ошибок с невозможностью загрузить скрипт - очень много. Потому и мышь не работает, наверняка.

Код: Выделить всё
Couldn't load the script "imageeffectbase" because its file name doesn't match the class name.
Please make sure the file name of the script is the same as the class defined inside it.
(Filename: ..\..\Runtime\Mono\MonoScript.cpp Line: 384)

Couldn't load the script "contraststretcheffect" because its file name doesn't match the class name.
Please make sure the file name of the script is the same as the class defined inside it.
(Filename: ..\..\Runtime\Mono\MonoScript.cpp Line: 384)

Couldn't load the script "noiseeffect" because its file name doesn't match the class name.
Please make sure the file name of the script is the same as the class defined inside it.
(Filename: ..\..\Runtime\Mono\MonoScript.cpp Line: 384)

Couldn't load the script "blureffect" because its file name doesn't match the class name.
Please make sure the file name of the script is the same as the class defined inside it.
(Filename: ..\..\Runtime\Mono\MonoScript.cpp Line: 384)

Couldn't load the script "motionblur" because its file name doesn't match the class name.
Please make sure the file name of the script is the same as the class defined inside it.
(Filename: ..\..\Runtime\Mono\MonoScript.cpp Line: 384)

Couldn't load the script "activatetrigger" because its file name doesn't match the class name.
Please make sure the file name of the script is the same as the class defined inside it.
(Filename: ..\..\Runtime\Mono\MonoScript.cpp Line: 384)

Couldn't load the script "edgedetecteffect" because its file name doesn't match the class name.
Please make sure the file name of the script is the same as the class defined inside it.
(Filename: ..\..\Runtime\Mono\MonoScript.cpp Line: 384)

Couldn't load the script "gloweffect" because its file name doesn't match the class name.
Please make sure the file name of the script is the same as the class defined inside it.
(Filename: ..\..\Runtime\Mono\MonoScript.cpp Line: 384)

Couldn't load the script "watersimple" because its file name doesn't match the class name.
Please make sure the file name of the script is the same as the class defined inside it.
(Filename: ..\..\Runtime\Mono\MonoScript.cpp Line: 384)

Couldn't load the script "imageeffects" because its file name doesn't match the class name.
Please make sure the file name of the script is the same as the class defined inside it.
(Filename: ..\..\Runtime\Mono\MonoScript.cpp Line: 384)

Couldn't load the script "mouselook" because its file name doesn't match the class name.
Please make sure the file name of the script is the same as the class defined inside it.
(Filename: ..\..\Runtime\Mono\MonoScript.cpp Line: 384)

Couldn't load the script "combinechildren" because its file name doesn't match the class name.
Please make sure the file name of the script is the same as the class defined inside it.
(Filename: ..\..\Runtime\Mono\MonoScript.cpp Line: 384)

Couldn't load the script "colorcorrectioneffect" because its file name doesn't match the class name.
Please make sure the file name of the script is the same as the class defined inside it.
(Filename: ..\..\Runtime\Mono\MonoScript.cpp Line: 384)

Couldn't load the script "grayscaleeffect" because its file name doesn't match the class name.
Please make sure the file name of the script is the same as the class defined inside it.
(Filename: ..\..\Runtime\Mono\MonoScript.cpp Line: 384)

Couldn't load the script "sepiatoneeffect" because its file name doesn't match the class name.
Please make sure the file name of the script is the same as the class defined inside it.
(Filename: ..\..\Runtime\Mono\MonoScript.cpp Line: 384)

Couldn't load the script "twirleffect" because its file name doesn't match the class name.
Please make sure the file name of the script is the same as the class defined inside it.
(Filename: ..\..\Runtime\Mono\MonoScript.cpp Line: 384)

Couldn't load the script "vortexeffect" because its file name doesn't match the class name.
Please make sure the file name of the script is the same as the class defined inside it.
(Filename: ..\..\Runtime\Mono\MonoScript.cpp Line: 384)

Couldn't load the script "meshcombineutility" because its file name doesn't match the class name.
Please make sure the file name of the script is the same as the class defined inside it.
(Filename: ..\..\Runtime\Mono\MonoScript.cpp Line: 384)


Как поправить?

Re: Проблемма с input-ом, AWSD не отвечают

СообщениеДобавлено: 22 май 2009, 22:47
Neodrop
Такие глюки бывают. Не знаю, почему.
Не компилится нормально скрипт и всё тут.
В этом причина - скрипт не скомпиллирован и не запущен.
Когда есть возможность, я тягаю такие глючные скрипты из другого проекта. Хорошо, что эта бяка случается только при экспорте проектов.

Re: Проблемма с input-ом, AWSD не отвечают

СообщениеДобавлено: 23 май 2009, 00:29
Sunlight
Вообщем, проблема оказывается не такая уникальная, как казалось вначале.
http://forum.unity3d.com/viewtopic.php?p=147368#147368

А вот и предлагаемое разрабами решение.
http://forum.unity3d.com/viewtopic.php?p=150613#150613

Ну что же, баг репорт я сделал - остаётся ждать решения на e-mail или, что вероятнее, устранение проблемы в следующей версии программы.

Предлагаемый вариант по переведению имен в нижний регистр:
http://forum.unity3d.com/viewtopic.php?p=155140#155140
Лично у меня не привёл ни к какому эффекту. Эхх...

Re: Проблемма с input-ом, AWSD не отвечают

СообщениеДобавлено: 23 май 2009, 10:11
Sunlight
Что интересно - в прилагаемом к Unity 2.5 демо-проекте "Island Demo"
(c:\Documents and Settings\Username\Мои документы\Unity Projects\Island Demo\)
Подобные ошибки не возникают - скрипты грузятся нормально и мышь в превью и после билда работает.

Попробовал экспортировать ассеты из него и импортировать в собственный проект - ошибки больше не вылезают, но скрипты (в данном случае обзор мышью) по-прежнему не работают.

Re: Проблемма с input-ом, AWSD не отвечают

СообщениеДобавлено: 23 май 2009, 10:13
Neodrop
Тогда рекомендую делать свои сцены в работающем проекте. Делов то.
Не оч удобно, но что делать, раз у вас так сильно глючит...

Re: Проблемма с input-ом, AWSD не отвечают

СообщениеДобавлено: 23 май 2009, 10:17
Sunlight
Neodrop писал(а):Тогда рекомендую делать свои сцены в работающем проекте. Делов то.
Не оч удобно, но что делать, раз у вас так сильно глючит...

Открыл проект "Island Demo", загрузил в него свою сцену - снова "Couldn't load the script..." х)