The 2D tab of the Preferences window allows you to define the settings of 2D features and packages. When you install 2D packages such as the 2D Tilemap Editor package, their preference settings appear in this section.
To open the preferences, go to Edit > Preferences > 2D (macOS: Unity > Settings > 2D).
This tab is available only if you install the 2D Animation package. For more information, refer to Skinning Editor preferences.
This tab is available only if you install the 2D Aseprite Importer package. For more information, refer to Aseprite Importer preferences.
This tab is available only if you install the 2D Tilemap Editor package.
Use the following settings to customize the default behavior of the Grid Paint tool when you use it to paint in the Tile Palette window. To access these settings, go to Edit > Preferences > 2D > Grid Brush.
| Property | Description |
|---|---|
| Show Flood Fill Preview | Displays a preview when you use the Flood Fill tool and hover over the Active Target 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 view. If the preview displays many tiles at once, performance can be negatively affected. Disable this setting to improve performance. |
| Flood Fill Preview Fill Extents | Sets the extent from the current cursor position that the Flood Fill preview displays. This value is the number of tiles extended from the current cursor position along the x and y-axis. Setting this to 0 causes an unlimited extent, which can cause performance issues. Set a lower value to limit the number of tiles in the preview. This property is available only when you enable Show Flood Fill Preview. |
| Flood Fill Preview Erase Extents | Sets the extent from the current cursor position that the Flood Fill preview displays when the Flood Fill tool erases tiles. This value is the number of tiles extended from the current cursor position along the x and y-axis. Setting this to 0 causes an unlimited extent, which can cause performance issues. Set a lower value to limit the number of tiles in the preview. This property is available only when you enable Show Flood Fill Preview. |
Configure the colors Unity uses for 2D physics collision shapes in the Scene viewAn interactive view into the world you are creating. You use the Scene View to select and position scenery, characters, cameras, lights, and all other types of Game Object. More info
See in Glossary.
| Property | Description |
|---|---|
| Awake Color (Outline) | Sets the outline color of a collisionA collision occurs when the physics engine detects that the colliders of two GameObjects make contact or overlap, when at least one has a Rigidbody component and is in motion. More info See in Glossary shape when the RigidbodyA component that allows a GameObject to be affected by simulated gravity and other forces. More info See in Glossary 2D component is awake. |
| Awake Color (Filled) | Sets the fill color of a collision shape when the Rigidbody 2D component is awake. |
| Asleep Color (Outline) | Sets the outline color of a collision shape when the Rigidbody 2D component is asleep. |
| Asleep Color (Filled) | Sets the fill color of a collision shape when the Rigidbody 2D component is asleep. |
| Bounds Color | Sets the color of the bounds for all the PhysicsShape2D objects a ColliderAn invisible shape that is used to handle physical collisions for an object. A collider doesn’t need to be exactly the same shape as the object’s mesh - a rough approximation is often more efficient and indistinguishable in gameplay. More infoSee in Glossary 2D component creates. |
| Composited Color | Sets the outline color of the individual collision shapes in a Composite Collider 2D component. |
Configure the colors Unity uses for physics contacts in the Scene view.
| Property | Description |
|---|---|
| Contact Color | Sets the color of the arrow that Unity displays when a contact occurs between two collision shapes. |
| Contact Arrow Scale | Sets the scale of the arrow. |
Configure the Sprite Editor window. This tab is available only if you install the 2D Sprite package.
| Property | Description |
|---|---|
| Show Apply Confirmation | Warns you before Unity saves your edits to 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. |
| Show Revert Confirmation | Warns you before Unity reverts your edits to the sprite. |
This tab is available only if you install the 2D SpriteShape package. For more information, refer to Sprite Shape preferences.
This tab is available only if you install the 2D Tilemap Editor package. For more information, refer to Tile Palette preferences reference.