Version: 2021.3
Language : English
2D and 3D mode settings
Shortcuts Manager

Preferences

Use preferences to customize the behavior of the Unity Editor.

To access the Preferences window, go to Edit > Preferences (Windows) or Unity > Preferences (macOS) from the main menu in Unity.

To navigate the Preferences window, use the search box to filter the list of settings categories and highlight keywords in the details pane on the right of the Preferences window.

The following preference categories are available:

General

General preferences let you customize the overall behavior for working in Unity.

Property Function
Load Previous Project on Startup Enable this setting to always load the previous Project at startup.
Disable Editor Analytics (Pro only) Enable this setting to stop the Editor automatically sending information back to Unity.
Script Changes While Playing Choose Unity’s behavior when scriptsA piece of code that allows you to create your own Components, trigger game events, modify Component properties over time and respond to user input in any way you like. More info
See in Glossary
change while your game is running in the Editor.
Recompile And Continue Playing Recompile your scripts and keep running the Scene. This is the default behavior, but you might want to change it if your scripts rely on any non-serializable data.
Recompile After Finished Playing Defer recompilation until you manually stop your Scene, avoiding any interruption.
Stop Playing And Recompile Immediately stop your Scene for recompilation, allowing you to quickly restart testing.
Code Optimization On Startup Choose whether to set code optimization mode to Debug or Release when the Unity Editor starts. Debug mode allows you to attach external debugger software, but gives slower C# performance when you run your Project in Play mode in the Editor. Release mode gives faster C# performance when you run your Project in Play mode in the Editor, but you can’t attach any external debuggers. For more information, see Code Optimization Mode.
Editor Theme Choose which skin to use in the Unity Editor.
Personal Use the light grey background with black text.
Professional Use the dark grey background with white text.
Editor Font Select which font to display in the Unity Editor. The default font is Inter.
Enable Alpha Numeric Sorting Enable this setting to display a button in the top-right corner of the Hierarchy window, which toggles between Transform sort (the default) and Alphanumeric sort.
Interaction Mode Specifies how long the Editor can idle before it updates. After one frame finishes, the Editor waits up to the specified amount of time before the next frame begins.

This allows you to throttle Editor performance, and reduce consumption of CPU resources and power.

For example, if you want to test the Editor’s performance, set this property to No Throttling. If you want to conserve power (for example, to prolong battery life on a laptop computer), set this property to one of the throttled modes.

In throttled modes, the Editor stops idling if you interact with it (for example, by panning in the Scene view).

Note: In Play mode, Unity ignores any throttling that you apply using this preference. The editor updates as fast as possible unless you enable the VSync option in the Game view, or set Application.targetFrameRate to a value other than –1.
Default The Editor idles up to 4 ms each tick. If a frame takes 5 ms or more, the Editor doesn’t idle at all, and the next frame starts automatically.
No Throttling Each time a frame finishes, the next frame begins immediately. The Editor never waits, and updates as fast as possible.

This mode consumes a lot of CPU resources. If you are using a laptop computer, it can cause the battery to drain quickly.
Monitor Refresh Rate The Editor idles up to the monitor’s update rate in milliseconds. For most monitors, this is 16 ms.
Custom You specify the maximum amount of time application can be idle.

When you select this option the Frame Throttling (milliseconds) property appears.
Frame Throttling (milliseconds) When Interaction Mode is set to Custom, this property specifies how long the Editor can idle between frames. The value can be between 0 and 33 ms. 0 is equivalent to setting Interaction Mode to No Throttling.

2D

Use the Max 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
Atlas Cache Size (GB)
preference to set the maximum size of the Sprite AtlasA texture that is composed of several smaller textures. Also referred to as a texture atlas, image sprite, sprite sheet or packed texture. More info
See in Glossary
cache folder using the slider. Whenever possible, Unity keeps the size of this folder below this level.

For information on how to create Sprite Atlas in Unity, see Sprite Atlas and the SpriteAtlas API.

Analysis

The Analysis preferences let you define settings for the ProfilerA window that helps you to optimize your game. It shows how much time is spent in the various areas of your game. For example, it can report the percentage of time spent rendering, animating, or in your game logic. More info
See in Glossary
.

Property Function
Frame count Set the maximum number of frames for the Profiler to capture. You can set this number between 300 and 2,000.
Show stats for ‘current frame’ By default, when you select the Current Frame button and enter Current Frame mode, the frame indicator line doesn’t have annotations with the stats for the current frame. This is because the stats annotations might make it difficult to view data in real-time. To display the annotations, enable this setting.
Default recording state Select which recording state the Profiler should open in. Choose from Enabled, Disabled, or Remember. Enabled keeps the Record button enabled between sessions, while Disbled disables it, regardless of whether you turn it on or off during your profiling session. The Remember state remembers whether you have enabled or disabled the Record button during your session and keeps it at its last state next time you open the Profiler window.
Default editor target mode Select what mode the Attach to Player dropdown should target by default. Choose from either Playmode or Editor.

Asset Pipeline

Property Function
Auto Refresh Enable this setting to import Assets automatically as they change.
Import Worker Count % Enter your Desired Import Worker Count for new projects in percentage of available logical CPU cores. For example, if your system has 16 logical cores and this preference is set to 25%, the Desired Import Worker Count for new projects is set to 4. If you set this value too high, your import worker processes need to compete over other processes and system resources such as reading and writing files. The default value of 25% is suitable for most situations.
Directory Monitoring (available only on Windows) Enable this setting to monitor directories instead of scanning all project files to detect asset changes.
Compress Textures on Import Disable this setting to skip texture compressionA method of storing data that reduces the amount of storage space it requires. See Texture Compression, Animation Compression, Audio Compression, Build Compression.
See in Glossary
during import Textures are typically imported into uncompressed formats.
Verify Saving Assets Enable this setting to verify which Assets to save individually. An information dialog appears any time Unity saves any assets.
Unity Accelerator (Cache Server)
Default Mode Define the default setting for the Cache Server, whether to enable or disable it by default. You can override this per Project in the Unity Editor settings. For more information, see Unity Accelerator.
Default IP address Set the default IP address for the Cache Server to use. You can override this per Project in the Unity Editor settings.
Check Connection Click this button to attempt to connect to the remote Cache Server.

Colors

The Colors preferences let you pick colors for various user interface elements in the Unity Editor.

Property Function
Animation Use this setting to customize color preferences for animated properties.
Property Animated The color to indicate a property that’s being animated.
Property Candidate The color to indicate the animated property that you modified recently.
Property Recorded The color to indicate that an animated property automatically records changes in the animation clipAnimation data that can be used for animated characters or simple animations. It is a simple “unit” piece of motion, such as (one specific instance of) “Idle”, “Walk” or “Run”. More info
See in Glossary
.
General Use this setting to customize color preferences for General settings.
Playmode Tint The color to tint the editor to for ease of identifying when you’re in Play mode. Unity tints the whole editor with the color you pick here when you enter Play mode. Some operations in the Editor aren’t available when in Play mode, and you can reset some edited values when exiting the Play mode.
Scene Use this setting to customize preferences for a Scene.
Background Set the color for the scene cameraA component which creates an image of a particular viewpoint in your scene. The output is either drawn to the screen or captured as a texture. More info
See in Glossary
to clear to when the Scene FX skyboxA special type of Material used to represent skies. Usually six-sided. More info
See in Glossary
setting is turned off.
Background for PrefabsAn asset type that allows you to store a GameObject complete with components and properties. The prefab acts as a template from which you can create new object instances in the scene. More info
See in Glossary
Set the color for the scene camera to clear to when the Scene FX skybox setting is turned off.
Contribute GI: Off / Receive GI: Light ProbesLight probes store information about how light passes through space in your scene. A collection of light probes arranged within a given space can improve lighting on moving objects and static LOD scenery within that space. More info
See in Glossary
Set the color to display when ContributeGI is disabled in the GameObjectThe fundamental object in Unity scenes, which can represent characters, props, scenery, cameras, waypoints, and more. A GameObject’s functionality is defined by the Components attached to it. More info
See in Glossary
’s Static Editor Flags.
Contribute GI: On / Receive GI: Light Probes Set the color to display when ContributorGI is enabled in the GameObject’s Static Editor Flags, and the Renderer’s ReceiveGI property is set to LightmapsA pre-rendered texture that contains the effects of light sources on static objects in the scene. Lightmaps are overlaid on top of scene geometry to create the effect of lighting. More info
See in Glossary
.
Contribute GI: On / Receive GI: Lightmaps Set the color to display when ContributeGI is enabled in the GameObject’s Static Editor Flags, and the Renderer’s ReceiveGI property is set to Light Probes.
Grid Set the color of the grid in the Scene view.
Guide Line Set the color of the Guide Line in the Scene view.
Material Validator Pure Metal Set the color for the Validate Albedo/Metal Specular debug render mode to indicate the material properties.
Material Validator Value Too High Set the color for the Validate Albedo/Metal Specular debug render mode to indicate when the material value is too high.
Material Validator Value Too Low Set the color for the Validate Albedo/Metal Specular debug render mode to indicate when the material value is too low.
Selected Axis Set the color for the selected handle to display highlighted in, when Move, Rotate, or the Scale tool is engaged.
Selected Children Outline Set the outline color for the children of the selected objects.
Selected Material Highlight Set the outline color that shows when clicking on a meshThe main graphics primitive of Unity. Meshes make up a large part of your 3D worlds. Unity supports triangulated or Quadrangulated polygon meshes. Nurbs, Nurms, Subdiv surfaces must be converted to polygons. More info
See in Glossary
in the MeshRenderer to ping the submesh in the Scene view.
Selected Outline Set the outine color for the selected GameObjects.
UI(User Interface) Allows a user to interact with your application. Unity currently supports three UI systems. More info
See in Glossary
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 info
See in Glossary
Handle
Set the color to use for the Unity UI’s padding visualization.
Volume GizmoA graphic overlay associated with a GameObject in a Scene, and displayed in the Scene View. Built-in scene tools such as the move tool are Gizmos, and you can create custom Gizmos using textures or scripting. Some Gizmos are only drawn when the GameObject is selected, while other Gizmos are drawn by the Editor regardless of which GameObjects are selected. More info
See in Glossary
Set the color to indicate the audio sourceA component which plays back an Audio Clip in the scene to an audio listener or through an audio mixer. More info
See in Glossary
in Gizmo.
Wireframe Set the color of the wireframe when the wireframe render mode is active.
Wireframe Overlay Set the color of the wireframe when the textured wireframe render mode is active.
Wireframe Selected If you’ve enabled Selection Wire in the Gizmo options, then the selected wireframes appear in the color that you set here.
X Axis The color that you set here is indicated for any built-in transform tool handle affecting x-axis.
Y Axis The color that you set here is indicated for any built-in transform tool handle affecting y-axis.
Z Axis The color that you set here is indicated for any built-in transform tool handle affecting z-axis.

Diagnostics

When you report a problem to Unity, the Unity Support Team might need you to enable diagnostic switches to help them identify the cause. Running diagnostics on an application, whether in the Editor or a player, impacts performance and user experience. You should only run diagnostics when the Unity Support Team asks for them.

If diagnostic switches are active in your application, Unity shows a warning in the console. To reset switches, in the Diagnostics tab, click Reset all.

If an active diagnostic switch prevents the Unity Editor from opening, use the --reset-diagnostic-switches parameter to reset all switches from the command line. For more information on using command line arguments at launch, see Command line arguments.

External Tools

Use the External Tools preferences to set up external applications for scripting, working with images, and source control.

Property Function
External Script Editor Choose which application Unity should use to open script files. Unity automatically passes the correct arguments to script editors it has built-in support for. Unity has built-in support for Visual Studio Community, Visual Studio Code (VSCode) and JetBrains Rider. The Open by file extension option uses your device’s default application for the relevant file type when you open a file. If no default application is available, your device opens a window that prompts you to choose an application to use to open the file.
External Script Editor Args This field controls parameters that Unity can send to your code editor when you open a file. The $(File), $(Line) and $(Column) arguments pass the filename, line number and column number to your external code editor. Your code editor uses these arguments to open the correct file with the cursor at the correct position. For example, if you double click an error message in the Unity Console, Unity passes these arguments from that error message to the external editor, which then opens the right file at the position where that error occurred.

You can manually edit this field to customize the arguments Unity sends to your external code editor. Click the Reset argument button to reset this field to its default setting.
Generate all .csproj files. Enable this setting to generate all .csproj files. Code editors use .sln and .csproj files to access data about your Project. .csproj files store descriptive data or metadata in an XML format. This data might include versioning information, platform requirements, build files, or database settings.

When these files are present, code editors can use the data they contain to provide useful features like highlighting potential compilation errors. Enable this setting to instruct Unity to create .csproj files wherever possible in your Project.
Extensions handled
(Only available if you select either Rider or Visual Studio Code as your External Script Editor)
This field determines which file types the External Script Editor opens. The field is pre-populated with a list of files that the script editor opens by default. To add other file types to this list, type in the file extension and separate each extension with a semicolon.
Image application Choose which application you want Unity to use to open image files.
Revision Control Diff/Merge Choose which application you want Unity to use to resolve file differences in your source control repository. Unity detects these tools in their default installation locations. On Windows, Unity checks registry keys for TortoiseMerge, WinMerge, PlasticSCM Merge, and Beyond Compare 4.

For more information, see the Revision Control Diff/Merge section below.

Revision Control Diff/Merge

Unity currently supports these tools:

  • SourceGear DiffMerge
  • TkDiff
  • P4Merge
  • TortoiseMerge
  • WinMerge
  • PlasticSCM Merge
  • Beyond Compare 4

Note: As these are third-party tools that Unity doesn’t include by default, you might want to download and install them separately.

To set up a custom revision tool, follow these steps:

  1. From the Revision Control Diff/Merge dropdown list, select Custom Tool.
  2. Enter the path to the custom tool’s installation folder. On Mac, this should point to the Contents / MacOS folder in the tool’s installation folder.
  3. Enter the arguments for two-way diffs, three-way diffs, and merges.

To specify file layout in the revision tool, use these arguments:

Property Function
#LTITLE Left title
#RTITLE Right title
#ATITLE Ancestor title
#LEFT Left file
#RIGHT Right file
#ANCESTOR Ancestor file
#OUTPUT Output file
#ABSLEFT Absolute path to the left file
#ABSRIGHT Absolute path to the right file
#ABSANCESTOR Absolute path to the ancestor file
#ABSOUTPUT Absolute path to the output file

Examples:

SourceGear DiffMerge
SourceGear DiffMerge
P4Merge
P4Merge

GI Cache

The Global IlluminationA group of techniques that model both direct and indirect lighting to provide realistic lighting results.
See in Glossary
(GI) system uses a cache on each computer to store intermediate files used to pre-compute real-time Global Illumination. All projects on the computer share the cache.

Property Function
Maximum Cache Size (GB) Use the slider to set the maximum GI cache folder size. Unity keeps the GI cache folder size below this number whenever possible. Unity periodically deletes unused files to create more space (deleting the oldest files first). This is an automatic process, and doesn’t require you to do anything.
Note: If the current Scene is using all the files in the GI cache, increase your cache size. Otherwise, resource-intensive recomputation occurs when baking. This can happen when the Scene is large or the cache size is too small.
Custom cache location Enable this option to allow a custom location for the GI cache folder. By default, the GI cache is stored in the Caches folder. All Projects share the cache folder.
Tip: Storing the GI Cache on an SSD drive can speed up baking in cases where the baking process is I/O bound.
Cache Folder Location Click the Browse button to specify a location for the cache.
Cache compression This option enables Unity to compress datafiles in the GI cache to use less hard drive space. The datafiles are LZ4-compressed by default, and the naming scheme is a hash and a file extension. Unity computes the hashes based on the inputs to the lighting system, so changing any of the following settings, properties or assets can lead to lighting recomputation:
- Materials (Textures, Albedo, Emission)
- Lights
- Geometry
- Static flags
- Light Probe groups
- Reflection probes
- Lightmap Parameters
Tip: If you need to access the raw Enlighten Realtime Global Illumination data, disable Cache Compression and clear the cache.
Clean Cache Use this button to clear the cache directory.
It’s not safe to delete the GI Cache directory manually while the Editor is running. This is because the Editor creates the GiCache folder when it starts and maintains a set of references to those files. The Clean Cache button ensures that the Editor releases all references to the files on disk before they’re deleted.
Cache size is Displays the current size of the cache.
Cache Folder Location Displays the current cache folder location.

Scene View

Use the Scene view preferences to customize object placement and visibility while editing.

Property Function
Create Objects at Origin Enable to create new objects at origin (as opposed to the Scene pivot). Disabled by default.
Create Objects with Constrained Proportions Defines the default behavior for Scale in the Transform component.
If enabled, when you adjust the value of a scale axis, the other values adjust proportionately.
Line Thickness Set the line thickness of your transform tools.
Enable filtering while searching Enable to gray out any non-matching items in the Scene view. Enabled by default.
Enable filtering while editing LOD groups Enable to gray out other objects in the scene while editing level of detail (LOD) groups. Enabled by default.

Search

You can set Search preferences from the Unity Preferences window.

Tip: You can also access the Search preferences in any of the following ways:

  • Enter ? (question mark) in the search field and select Open Search Preferences from the results.

  • From More Options (:) in the top-left of the Search window, select Preferences.

preferences page
Search Preferences

Setting Function
Track the current selection in the search Enable this setting to execute the SearchProvider.trackSelection callback each time the Search selection changes.

The callback pings Assets in the Project window or Hierarchy window, which can slow Search navigation in large Projects.
Generate an asset preview thumbnail for found items Enable this setting to display thumbnails for items that are currently visible in the results pane of the Search window.

When you disable this setting, Search displays a generic icon. This is useful in large Projects, where generating icons can slow Search navigation.
Select the typing debounce threshold The debouncing threshold is the time the system waits for the user to finish typing before executing the search.
Provider Settings
A [Provider Toggles] Enable and disable providers. When you disable a provider, Search ignores it when executing searches.
B [Provider Order] Use these settings to modify the order in which search items are shown on the screen. All items of a given provider priority appear before any lower priority items.
C [Default Actions] Use these settings to choose the default actions to execute when you select (for example, double-click) an item in the search results.
Reset Priorities Resets all providers to their default on/off state and priority.
Search Engines Set the search fields in the Object Selector, ProjectIn Unity, you use a project to design and develop a game. A project stores all of the files that are related to a game, such as the asset and Scene files. More info
See in Glossary
, and 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
to one of the available search engines.

Classic - The original search functionality.
Advanced - The latest version of Search for Unity (formerly QuickSearch).

Indexing

Set the Custom index pages by selecting them or deselecting them from the Custom Indexers dropdown list.

Custom package preferences

Some Asset StoreA growing library of free and commercial assets created by Unity and members of the community. Offers a wide variety of assets, from textures, models and animations to whole project examples, tutorials and Editor extensions. More info
See in Glossary
or Unity packages add their own custom preferences to the Preferences window. Typically, these use the package name as the preferences category. In this example, you can see the Cinemachine package preferences:

Package-specific preferences appear in the scope list
Package-specific preferences appear in the scope list

For information about a specific package’s preferences, see the documentation for that package. This section contains documentation for standard Unity preferences only.

2D and 3D mode settings
Shortcuts Manager