Display 1 no cameras rendering unity что делать
JKStudio 10 ноя 2016, 22:49
Re: no cameras rendering
JKStudio 10 ноя 2016, 23:28
Я понял в чем проблема, но не знаю как исправить, вообщем мне надо задействовать 7 камер, у меня менюшка из 6 пунктов и по клику на один из пунктов идёт переключение на другую камеру где следующая менюшка, так вот он ругается на то что я использую один и тот же файл со скриптом на все кнопки, т.е. я скрипт присваиваю к одной кнопке туда камеры вставляю и к другой и они не дублируются, но он всё равно ругается хз почему, надо как то скрипт поменять? Вот скрипт которым я сейчас пользуюсь, который уже получается не работает
using UnityEngine;
using System.Collections;
public class SwitchCamera : MonoBehaviour
<
public Camera camera1;
public Camera camera2;
void Start()
<
camera1.enabled = true;
camera2.enabled = false;
>
void OnMouseUp()
<
if (Input.GetMouseButtonUp(0))
<
camera2.enabled = !camera2.enabled;
camera1.enabled = !camera1.enabled;
>
>
>
как его исправить что бы он держал до 7-8 камер ну или хотя б 6.
Re: no cameras rendering
JKStudio 10 ноя 2016, 23:37
Решил я свою проблему но не совсем корректно, выглядит код уёб***о просто, подскажите как можно сократить? У меня просто намного больше чем 8 этих экранов будет, мб и 100 и если у меня такой код будет я думаю это как то да скажется на проге конечной
Вот новый уёб***ый код
using UnityEngine;
using System.Collections;
public class SwitchCamera : MonoBehaviour
<
public Camera camera1;
public Camera camera2;
public Camera camera3;
public Camera camera4;
public Camera camera5;
public Camera camera6;
public Camera camera7;
public Camera camera8;
void Start()
<
camera1.enabled = true;
camera2.enabled = false;
camera3.enabled = false;
camera4.enabled = false;
camera5.enabled = false;
camera6.enabled = false;
camera7.enabled = false;
camera8.enabled = false;
>
void OnMouseUp()
<
if (Input.GetMouseButtonUp(0))
<
camera2.enabled = !camera2.enabled;
camera1.enabled = !camera1.enabled;
camera3.enabled = !camera1.enabled;
camera4.enabled = !camera1.enabled;
camera5.enabled = !camera1.enabled;
camera6.enabled = !camera1.enabled;
camera7.enabled = !camera1.enabled;
camera8.enabled = !camera1.enabled;
>
>
>
Re: no cameras rendering
Tolking 11 ноя 2016, 01:06
Может все таки почитать, что нибуть? Туториалы посмотреть?
Камера одна должна быть, включаются/выключаются менюшки.
Re: no cameras rendering
JKStudio 11 ноя 2016, 21:49
Tolking писал(а): Может все таки почитать, что нибуть? Туториалы посмотреть?
Камера одна должна быть, включаются/выключаются менюшки.
Такой умный, а по делу ничего не сказал! Что б ты знал Ноев ковчег пережил всё, а Титаник потонул!
Re: no cameras rendering
Tolking 11 ноя 2016, 22:06
Re: no cameras rendering
JKStudio 12 ноя 2016, 01:27
Re: no cameras rendering
Tolking 12 ноя 2016, 02:36
Хорошо. Еще раз попробую.
Камера одна должна быть, включаются/выключаются менюшки.
P.S. Проблемы с восприятием именно у тебя, чувак. Прими сабалезнования.
Re: no cameras rendering
JKStudio 12 ноя 2016, 03:15
Tolking писал(а): Хорошо. Еще раз попробую.
Камера одна должна быть, включаются/выключаются менюшки.
P.S. Проблемы с восприятием именно у тебя, чувак. Прими сабалезнования.
Во первых, я спросил другое совсем, во вторых т.к. сделал я тоже работает и что менюшки менять что камеры разницы нет (внешне для пользователя). Так что как говориться в чужой огород со своим уставом не ходят.
Re: no cameras rendering
JKStudio 12 ноя 2016, 03:17
Re: no cameras rendering
JKStudio 13 ноя 2016, 22:34
Ёптать я мужик! Сам сделал! Вот учитесь ёпт! Без туториалов, уроков и прочей фигни!
Терпение и труд всё перетрут!
Дисплей 1 без рендеринга камер
Один из членов моей команды только что клонировал мой проект Unity, который отлично работал на моем компьютере (unity 5.5), где, поскольку он отображает ошибку «Display 1 no camera rendering» в сцене на компьютере моего товарища по команде (unity 5.4).
Мы используем репозиторий git и впервые столкнулись с этой проблемой.
Еще мы заметили, что есть заполнители для всех объектов, которые были частью иерархии (в моей системе). По какой-то причине имена не отображаются, но когда вы выбираете область, кажется, что что-то выделено.
Может кто-нибудь, пожалуйста, помогите нам решить проблему.
3 ответа
Один из членов моей команды только что клонировал мой проект Unity, который работал нормально на моем компьютере ( unity 5.5 ), где, как он показывает «Display 1 no рендеринг камер «ошибка в сцене на компьютере моего товарища по команде ( unity 5.4 )
Найдите минутку и посмотрите на слова, выделенные жирным шрифтом. Вы не можете этого сделать.
Вы не должны пытаться открыть проект Unity, созданный с более высокой версией Unity, с более низкой версией Unity. Это относится и к большинству программ. Что происходит, так это то, что Unity добавила новую функцию и изменила некоторые двоичные сохраненные данные Unity в Unity 5.5 , которых нет в Unity 5.4 .
Когда вы загружаете проект из Unity 5.5 в Unity 5.4 , он не сможет понять эти новые функции, приводящие к странному поведению, подобному тому, которое он имеет.
Вашему товарищу по команде необходимо будет обновить до Unity 5.5 , чтобы загрузить проект, созданный с помощью Unity 5.5 .
У меня была такая же проблема с «Дисплей 1 без рендеринга камер».
Быстро осмотрев интерфейс, я нажал на свою основную камеру и в области Камера на панели Инспектора увидел, что мой Целевой дисплей был установлен на «Дисплей 4». Не знаю, как он туда попал, но вернув его обратно на «Дисплей 1», я решил проблему.
Если код и настройка не содержат других ошибок , Думаю, вы щелкните правой кнопкой мыши gamewindow
No Camera is Rendering error #8
So I don’t know how to use this. I’m new to Unity. But I gave up and wanted to leave a note so you know that it didn’t work for me.
I followed the instructions on here and it created a RenderTexture. Cool. So now what?
It was my understanding that I attach that to the default camera under ‘Target Texture’ but nothing happens. It says No Camera is Rendering when I run my game. Obviously I’m missing something. If there is another step please update the readme so other people running into the pixel art problem with Unity can see it.
The text was updated successfully, but these errors were encountered:
I haven’t used this in a while, but last time I did the instructions in the «Usage» section worked fine. It should create the render texture automatically when you press that button. It should attach it to your camera automatically so you shouldn’t have to worry about that.
There’s also a folder in the repo called PixelCamera2DDemo that should show you how things are set up. You do probably have to delete your default scene camera like you said above though.
Right,t hat’s exactly what I thought. But the demo doesn’t have a main camera! :O
And when I set up the default camera to use the created PixelCamera2D.renderTexture, it showed «No cameras rendering»
I tried re-doing this over and over so not sure where I’m going wrong. I have just started my project so it’s just an animation playing. I will try again with a fresh project perhaps. Thanks for the help.
Any idea why one of the cameras has -99999 X -99999 Y ? That seemed off to me but I assumed it was a value not being used. I changed it to 0, 0 and it didn’t help. 😛
This system uses 2 cameras and a quad to render your pixellated view.
The camera named PixelCamera2D renders your scene to a render texture, and it should be the one that moves around, follows your player, etc. This would be your main camera. This render texture is then applied to a quad.
The child camera named PixelCameraRenderer (the one at x -99999 and y -99999) is pointing at the quad and rendering it to your view. It’s placed at that position just to get it out of the way so the quad isn’t blocking your scene view and it doesn’t get in to way of PixelCamera2D.
You can change the name of the PixelCamera2D game object to Main Camera if you want.
Display 1 no cameras rendering
One of my team members just cloned my unity project which was working fine on my pc(unity 5.5) where as it is displaying «Display 1 no cameras rendering» error in the scene on my teammate’s pc(unity 5.4).
We are using a git repository and this is the first time we have encountered this problem.
Another thing we just noticed is that there are place holders for all the objects that were part of hierarchy(on my system). For some reason there names are not getting displayed, but when when you select the area, something seems to be selected.
Can someone please help us solve the issue.
4 Answers 4
One of my team members just cloned my unity project which was working fine on my pc(unity 5.5) where as it is displaying «Display 1 no cameras rendering» error in the scene on my teammate’s pc(unity 5.4)
Take a moment and look at the words in bold. You can’t do that.
You shouldn’t try to open a Unity project made with higher Unity version with lower Unity version. This applies to most software too. What’s happening is that Unity added new feature and changed some of Unity’s binary saved data in Unity 5.5 that Unity 5.4 doesn’t have.
When you load a project from Unity 5.5 in Unity 5.4, it won’t be able to understand those new features leading to weird behavior such as the one he’s having.
Your teammate will have to update to Unity 5.5 in order to load the Project made with Unity 5.5.