Unity2017.1官方UGUI文档翻译——RectMask2D

RectMask2D

矩形2D遮罩

A RectMask2D is a masking control similar to the Mask control. The mask restricts the child elements to the rectangle of the parent element. Unlike the standard Mask control it has some limitations, but it also has a number of performance benefits.

RectMask2D 是一种类似Mask控件的遮罩。mask把子元素限制在父元素的矩形区域中。和标准的Mask不同,它有一些限制,但是它也有很多性能上的好处。

Description

描述

A common use of a RectMask2D is to show small sections of a larger area. Using the RectMask2D to frame this area.

RectMask2D一个常见的用法是展示一张大图的一个小区域。使用RectMask2D去构建这个区域。

The limitations of RectMask2D control are:

RectMask2D空间的限制是:

  • It only works in 2D space
  • It will not properly mask elements that are not coplanar
  • 它工作在2D空间
  • 它不能正常地遮罩不在一个面上的元素

The advantages of RectMask2D are:

RectMask2D 的优点

  • It does not use the stencil buffer
  • No extra draw calls
  • No material changes
  • Fast performance
  • 它没有使用模板缓冲
  • 没有额外的Draw Calls
  • 没有改变材质
  • 更快的性能

原文地址:https://www.cnblogs.com/SolarWings/p/8178959.html

时间: 2024-10-06 12:52:55

Unity2017.1官方UGUI文档翻译——RectMask2D的相关文章

Unity2017.1官方UGUI文档翻译——Canvas

Canvas 画布 The Canvas is the area that all UI elements should be inside. The Canvas is a Game Object with a Canvas component on it, and all UI elements must be children of such a Canvas. Creating a new UI element, such as an Image using the menu GameO

Unity2017.1官方UGUI文档翻译——Interaction Components

Interaction Components 交互组件 This section covers components in the UI system that handles interaction, such as mouse or touch events and interaction using a keyboard or controller. The interaction components are not visible on their own, and must be c

Unity2017.1官方UGUI文档翻译——Animation Integration

Animation Integration 动画集成 Animation allows for each transition between control states to be fully animated using Unity’s animation system. This is the most powerful of the transition modes due the the number of properties that can be animated simult

Unity2017.1官方UGUI文档翻译——Rich Text

Rich Text 富文本 The text for UI elements and text meshes can incorporate multiple font styles and sizes. Rich text is supported both for the UI System and the legacy GUI system. The Text, GUIStyle, GUIText and TextMesh classes have a Rich Text setting

Unity2017.1官方UGUI文档翻译——Canvas Scaler

Canvas Scaler 画布缩放器 The Canvas Scaler component is used for controlling the overall scale and pixel density of UI elements in the Canvas. This scaling affects everything under the Canvas, including font sizes and image borders. “画布缩放器”组件用于控制画布中UI元素的整

Unity2017.1官方UGUI文档翻译——Text

Text 文本 The Text control displays a non-interactive piece of text to the user. This can be used to provide captions or labels for other GUI controls or to display instructions or other text. 文本控件向用户显示一个非交互式的文本片段. 它可以作为其他GUI控件提供标题或标签,或作为说明文本,或者其他用途. P

Unity2017.1官方UGUI文档翻译——Raw Image

Raw Image 原生图片 The Raw Image control displays a non-interactive image to the user. This can be used for decoration, icons, etc, and the image can also be changed from a script to reflect changes in other controls. The control is similar to the Image 

Unity2017.1官方UGUI文档翻译——Mask

Mask 遮罩 A Mask is not a visible UI control but rather a way to modify the appearance of a control’s child elements. The mask restricts (ie, “masks”) the child elements to the shape of the parent. So, if the child is larger than the parent then only t

Unity2017.1官方UGUI文档翻译——Position as UV1

Position as UV1 This adds a simple Position as UV1 effect to text and image graphics. 把Canvas空间下的顶点坐标设置到UV1中,用于在Text和Image这样的图形组件中实现一些特效(特效要自定义shader实现) Properties 属性 原文地址:https://www.cnblogs.com/SolarWings/p/8182972.html