Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


2D preferences tab reference

Reference for 2D preferences.
Read time 3 minutesLast updated 10 days ago

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).

Animation tab

This tab is available only if you install the 2D Animation package. For more information, refer to Skinning Editor preferences.

Aseprite Importer tab

This tab is available only if you install the 2D Aseprite Importer package. For more information, refer to Aseprite Importer preferences.

Grid Brush tab

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 PreviewDisplays a preview when you use the Flood Fill tool and hover over the Active Target in the Scene view. If the preview displays many tiles at once, performance can be negatively affected. Disable this setting to improve performance.
Flood Fill Preview Fill ExtentsSets 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 ExtentsSets 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.

Physics tab

Configure the colors Unity uses for 2D physics collision shapes in the Scene view.

Colliders

Property

Description

Awake Color (Outline)Sets the outline color of a collision shape when the Rigidbody 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 ColorSets the color of the bounds for all the
PhysicsShape2D
objects a Collider 2D component creates.
Composited ColorSets the outline color of the individual collision shapes in a Composite Collider 2D component.

Contacts

Configure the colors Unity uses for physics contacts in the Scene view.

Property

Description

Contact ColorSets the color of the arrow that Unity displays when a contact occurs between two collision shapes.
Contact Arrow ScaleSets the scale of the arrow.

Sprite Editor Window tab

Configure the Sprite Editor window. This tab is available only if you install the 2D Sprite package.

Property

Description

Show Apply ConfirmationWarns you before Unity saves your edits to the sprite.
Show Revert ConfirmationWarns you before Unity reverts your edits to the sprite.
Zoom LevelSets the minimum and maximum zoom range for the Sprite Editor window. You can set values between 50% and 5000% (defaults: 90% minimum, 5000% maximum).

Sprite Shape tab

This tab is available only if you install the 2D SpriteShape package. For more information, refer to Sprite Shape preferences.

Tile Palette tab

This tab is available only if you install the 2D Tilemap Editor package. For more information, refer to Tile Palette preferences reference.

Additional resources