Version: Unity 6 (6000.0)
Language : English
Mask interaction
Tilemaps in Unity

Sprite shape renderer reference

Property Function
Color Define the vertex color of the SpriteA 2D graphic objects. If you are used to working in 3D, Sprites are essentially just standard textures but there are special techniques for combining and managing sprite textures for efficiency and convenience during development. More info
See in Glossary
Shape geometry, which tints or recolors the Sprite Shape. Use the color picker to set the vertex. See the Color section below this table for examples.
Mask Interaction Set how the Sprite RendererA component that lets you display images as Sprites for use in both 2D and 3D scenes. More info
See in Glossary
behaves when it interacts with a Sprite MaskA texture which defines which areas of an underlying image to reveal or hide. More info
See in Glossary
. Refer to examples of the different options in the Mask Interaction section below.
None The Sprite Shape Renderer does not interact with any Sprite Masks in the SceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info
See in Glossary
. This is the default option.
Visible Inside Mask The Sprite Shape is visible where the Sprite Mask overlays it, but not outside of it.
Visible Outside Mask The Sprite Shape is visible outside of the Sprite Mask, but not inside it. The Sprite Mask hides the sections of the Sprite Shape it overlays.
Sorting Layer Set the Sorting Layer of the Sprite Shape geometry, which controls its priority during rendering. Select an existing Sorting Layer from the drop-down box, or create a new Sorting Layer.
Order In Layer Set the render priority of the Sprite Shape within its Sorting Layer. Lower numbered Sprite Shapes are rendered first, with higher numbered Sprite Shapes overlapping those below.

SpriteShapeRenderer

Mask interaction
Tilemaps in Unity
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961