Version: 5.3 (switch to 5.4b)
Позиционирование игровых объектов
Игровое окно

Scene View Control Bar

Панель управления окна Scene View позволяет Вам выбирать различные настройки просмотра сцены, а также включать или выключать освещение и звук. Эти элементы управления влияют только на вид сцены в процессе разработки и не влияют на создаваемую игру.

Режим просмотра

Первый выпадающий список выбирает, какой режим отрисовки будет использоваться для отображения сцены. Доступные опции:

Shading Mode

  • Textured: показывает поверхности с их видимыми текстурами.
  • Wireframe: отображает меши как каркас.
  • Tex-Wire: отображает меши с наложенными текстурами и каркасом.

Miscellaneous

  • Shadow Cascades: show directional light shadow cascades.
  • Render Paths: показывает способ рендеринга для каждого объекта, используя цветовой код: зеленый обозначает deferred lighting, желтый обозначает forward rendering и красный обозначает vertex lit.
  • Alpha: визуализирует цвета с альфой.
  • Overdraw: визуализирует объекты как прозрачные “силуэты”. Прозрачные цвета накапливаются, позволяя легко заметить места в которых один объект нарисовался поверх другого.
  • Mipmaps: отображает идеальный размер текстур используя цветовой код: красный обозначает что текстура больше чем нужно (на текущем расстоянии и разрешении); синий обозначает что текстура могла бы быть больше. Обычно, идеальный размер текстуры зависит от разрешения в котором будет запущена игра, и как близко камера может быть расположена от конкретных поверхностей.

Deferred

These modes let you view each of the elements of the G-buffer (Albedo, Specular, Smoothness and Normal) in isolation. See the page on Deferred Shading for further details.

Global Illumination

The following modes are available to help visualise aspects of the Global Illumination system: UV Charts, Systems, Albedo, Emissive, Irradiance, Directionality and Baked. These modes are described with examples on the GI Visualisations page.

2D, Освещение и Аудио Переключатели

Справа от выпадающих меню есть три кнопки, которые управляют аспектами представления сцены:-

2D: переключение между 2D и 3D видом сцены. В 2d режиме камера смотрит прямо в сторону положительной оси z, с осью x направленой вправо и осью y направленной вверх. Lighting: включает или выключает освещение в сцене (источники света, шейдинг объектов и т.д.). *Audio: включает или выключает аудио эффекты в сцене.

Кнопка Эффекты и Меню

Меню (активируется маленькой стрелочкой справа от слова “Effects”) располагает опциями для включения и отключения эффектов визуализации в сцене.

Skybox: skybox текстура визуализируемая в сцене на заднем фоне Fog: постепенный переход изображения в определенный цвет в зависимости от расстояния до камеры. Flares: блики от источников света. Animated Materials: должны ли анимированные материалы отображать анимацию?

Кнопка Эффекты(Effects) действует как переключатель, позволяя активировать или деактивировать все эффекты сразу.

Меню Гизмо

Gizmos are graphics added to the scene (either by Unity itself or from your own scripts) that help with visualisation and identification of items in the game world. For example, you can add icons to help identify your game objects and use simple wireframe graphics to show otherwise invisible paths and positioning elements. See the Script Reference page for the OnDrawGizmos function for further information about implementing custom gizmos in your scripts.

Clicking the Gizmos popup will show a menu with a number of options:

The 3D Gizmos checkbox determines whether gizmos are shown in true 3D (with correct obscuration and perspective) or as a simple overlay on top of other scene graphics. The slider to its right adjusts the scale of gizmo icons relative to other objects. The Show Grid checkbox below switches the standard scene measurement grid on and off.

Beneath these options is a table of component names with Icon and Gizmo columns to the right. The list is subdivided into user scripts and built-in components and will also maintain a section of recently changed items as you make modifications.

The Icon column lets you select the gizmo icon displayed for particular component types. For built-in components, the only options are to have no icon (as with Colliders, where only a wireframe gizmo is shown) or simply to switch the standard icon on and off (as with Cameras, Lights and Audio Sources, among others). For user scripts, clicking the icon column will bring up a menu to select the desired icon:

This lets you select from a variety of simple standard icon shapes in different colors that you can use to identify particular script types. The Other button will bring up a texture selector from which you can choose any texture you like to use as the icon for your script.

The Gizmo column in the table contains a checkbox that lets you choose whether gizmo graphics will be drawn for a particular Component type. For example, Colliders have a predefined wireframe gizmo to show their shape while user scripts can draw custom gizmos appropriate to their purpose; these gizmos can be turned on or off by clicking in this column.

Search Box

The rightmost item on the control bar is a search box that lets you filter items in the scene view by their names and/or types (you can select which with the small menu at the left of the search box). The set of items that match the search filter will also be shown in the Hierarchy view which, by default, is located to the left of the Scene view.

Позиционирование игровых объектов
Игровое окно