官术网_书友最值得收藏!

Screen Space-Overlay

Screen Space-Overlay is the default rendering mode. When you think of UI, usually the first picture of UI that pops in your head is the type that would be rendered in Screen Space-Overlay. This rendering mode overlays all the UI elements within the Canvas in front of everything in the scene. So, UI items like heads-up-displays (HUDs) and pop-up windows that appear on the same plane and the screen, will be contained within a Screen Space-Overlay Canvas.

Remember that when a Canvas is using the Screen Space-Overlay render mode, you cannot adjust the Rect Transform component of the Canvas. This is because the canvas will automatically resize based on the size of the screen (not the camera):

When you have Screen Space-Overlay selected, the following properties become available:

  • Pixel Perfect: This option can make the UI elements appear sharper and less blurry. This can cause performance issues, so only use it if absolutely necessary.
  • Sort Order: This option applies only when you have multiple canvases with Screen Space-Overlay render modes. The higher the number, the closer to the items within the canvas will appear to the person viewing the scene. In other words, higher-numbered canvases will appear on top of lower-numbered canvases.
  • Target Display: If you are creating a PC, Mac, Linux Standalone game, you can have different cameras display on up to eight different monitors. You can also have different UI for each monitor and also where you will tell the Canvas which of the displays it will render on.
主站蜘蛛池模板: 永济市| 白朗县| 鄂托克旗| 临湘市| 潞城市| 贺州市| 徐水县| 尚义县| 义马市| 成武县| 扶风县| 红原县| 泸水县| 铜山县| 高雄县| 石棉县| 三明市| 响水县| 吴堡县| 平山县| 龙游县| 阳春市| 博湖县| 平原县| 宕昌县| 瓦房店市| 福贡县| 睢宁县| 呼和浩特市| 永新县| 翁牛特旗| 武义县| 阜新市| 玛纳斯县| 宜良县| 监利县| 西安市| 苍南县| 宜宾县| 西青区| 那坡县|