我是靠谱客的博主 英俊心锁,最近开发中收集的这篇文章主要介绍Unity 3D的创建项目时的2D 3D选择的差别。 2D and 3D Mode Settings,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

https://docs.unity3d.com/Manual/2DAnd3DModeSettings.html


2D and 3D Mode Settings

When creating a new project, you can specify whether to start the Unity Editor in 2D mode or 3D mode. However, you also have the option of switching the editor between 2D Mode and 3D Mode at any time. You can read more about the difference between 2D and 3D projects here. This page provides information about how to switch modes, and what exactly changes within the editor when you do.

Switching Between 3D and 2D Modes

To change modes between 2D or 3D mode:

  1. Bring up to the Editor Settings Inspector, via the Edit>Project Settings>Editor menu.
  2. Then set Default Behavior Mode to either 2D or 3D.

You can find out more about the Editor Settings Inspector on the Editor Settings page.

default behavior mode in the editor settings inspector sets the project to 2d or 3dDefault Behavior Mode in the Editor Settings Inspector sets the project to 2D or 3D

2D vs 3D Mode Settings

2D or 3D mode determines some settings for the Unity Editor. These are listed below.

In 2D Project Mode:

  • Any images you import are assumed to be 2D images (Sprites) and set to Sprite mode.
  • The Sprite Packer is enabled.
  • The Scene View is set to 2D.
  • The default game objects do not have real time, directional light.
  • The camera’s default position is at 0,0,–10. (It is 0,1,–10 in 3D Mode.)
  • The camera is set to be Orthographic. (In 3D Mode it is Perspective.)
  • In the Lighting Window:
    • Skybox is disabled for new scenes.
    • Ambient Source is set to Color. (With the color set as a dark grey: RGB: 54, 58, 66.)
    • Precomputed Realtime GI is set to off.
    • Baked GI is set to off.
    • Auto-Building set to off.

In 3D Project Mode:

  • Any images you import are NOT assumed to be 2D images (Sprites).
  • The Sprite Packer is disabled.
  • The Scene View is set to 3D.
  • The default game objects have real time, directional light.
  • The camera’s default position is at 0,1,–10. (It is 0,0,–10. in 2D Mode.)
  • The camera is set to be Perspective. (In 2D Mode it is Orthographic.)
  • In the Lighting Window:
    • Skybox is the built-in default Skybox Material.
    • Ambient Source is set to Skybox.
    • Precomputed Realtime GI is set to on.
    • Baked GI is set to on.
    • Auto-Building is set to on.

最后

以上就是英俊心锁为你收集整理的Unity 3D的创建项目时的2D 3D选择的差别。 2D and 3D Mode Settings的全部内容,希望文章能够帮你解决Unity 3D的创建项目时的2D 3D选择的差别。 2D and 3D Mode Settings所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(38)

相关文章

评论列表共有 0 条评论

立即
投稿
返回
顶部