Version: 2022.3
言語: 日本語
2D/3D モード設定
ショートカットマネージャー

環境設定

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 (一般) 環境設定では、Unity で作業する際の全体的な動作をカスタマイズできます。

プロパティ 機能
Load Previous Project on Startup これを有効にすると、常に、Unity 起動時に、以前開いていたプロジェクトを開きます。
Disable エディター Analytics (Pro only) これを有効にすると、Unity に情報を送信して自動的にエディターを停止します。
Script Changes While Playing ゲームがエディターで実行されている間にスクリプトが変更されたときの Unity の動作を選択します。
Recompile And Continue Playing スクリプトを再コンパイルし、シーンを実行し続けます。これはデフォルトの動作ですが、スクリプトがシリアライズ可能でないデータに依存している場合は、変更したほうがよい場合があります。
Recompile After Finished Playing 手動でシーンを停止するまで再コンパイルを行い、いかなる中断も避けます。
Stop Playing And Recompile Immediately stops 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 the background to use in the Unity Editor.
Light Applies the light grey background with black text.
Dark Applies the dark theme with white text.
Editor Font Unity エディターに表示するフォントを選択します。 デフォルトのフォントは Inter です。
Enable Alpha Numeric Sorting これを有効にすると、Hierarchy ウィンドウの上部右端に新しいボタンを表示し、Transform Sorting (デフォルトの動作) と Alphanumeric Sorting を切り替えられるようにします。
Interaction Mode エディターが更新されるまでにアイドル状態が可能な時間を指定します。1 つのフレームが終了した後、エディターは指定された時間まで待機してから、次のフレームが開始します。

これにより、エディターのパフォーマンスを抑制し、CPU リソースと電力の消費を削減します。

例えば、エディターのパフォーマンスをテストする場合は、このプロパティを No Throttling (スロットルなし) に設定します。電力を節約したい場合 (例えば、ラップトップコンピューターのバッテリー寿命を延ばしたい場合)、このプロパティをスロットルモードの 1 つに設定します。

スロットルモードでは、エディターを操作すると (例えば、シーンビューでパンすることにより)、エディターはアイドリングを停止します。

ノート: 再生モードでは、Unity はこの設定を使用して適用するスロットルを無視します。ゲームビューで VSync オプションを有効にするか、Application.targetFrameRate を –1 以外の値に設定しない限り、エディターは可能な限り短時間で更新されます。
Default エディターは、1ティックごとに最大4 msアイドルします。フレームに5ミリ秒以上かかる場合、エディターはアイドル状態にならず、次のフレームが自動的に開始されます。
No Throttling フレームが終了するたびに、すぐに次のフレームが開始されます。エディターは待機せず、可能な限り速く更新されます。

このモードは、多くのCPUリソースを消費します。ラップトップコンピューターを使用している場合は、バッテリーの消耗が早くなります。
Monitor Refresh Rate エディターは、ミリ秒単位のモニターの更新レートまでアイドル状態になります。ほとんどのモニターでは、これは16 msです。
Custom アプリケーションがアイドル状態でいられる最大時間を指定します。

このオプションを選択すると 、 Frame Throttling(milliseconds) プロパティが表示されます。
Frame Throttling (milliseconds) Interaction ModeCustom に設定されている場合、このプロパティはエディターがフレーム間でアイドル状態でいられる時間を指定します。値は0から33 msの間です。 0は Interaction ModeNo Throttling に設定するのと同等です。
Package Manager Log Level Choose the level of detail you want the Package Manager logs to report. The options are:
Error Unexpected errors and failures only.
Warn Unusual situations that can cause issues.
Info High-level informational-only messages.
Verbose Detailed informational messages.
Debug High-level debugging messages.
Silly Detailed debugging messages.
Enable extended Dynamic hints Select this to enable extended dynamic hints, which displays more information when a property, object, or tool is hovered for enough time, or when a dynamic hint appears.
Perform Bump Map Check Select this to enable bump map checks upon material imports, which helps check that textures used in a normal map material slot are actually defined as normal maps.

2D

The 2D preference settings allow you to define the settings of 2D-related features and packages. When you install 2D related packages (such as the Tilemap Editor package) into your Project, their preference settings will appear in this section.

Physics

Use the Physics preferences to configure the 2D physics settings, such as the colors used in the UI.

プロパティ 機能
Colliders Set the colors for the following UI elements.
Awake Color (Outline) Set the color of the Collider 2D Gizmo’s outline when the Rigidbody 2D it’s attached to is Awake.
Awake Color (Filled) Set the color of the Collider 2D Gizmo’s interior fill when the Rigidbody 2D it’s attached to is Awake.
Asleep Color (Outline) Set the color of the Collider 2D Gizmo’s outline when the Rigidbody 2D it’s attached to is Asleep.
Asleep Color (Filled) Set the color of the Collider 2D Gizmo’s interior fill when the Rigidbody 2D it’s attached to is Asleep.
Bounds Color Set the color of the bounds for all PhysicsShape2D that a Collider 2D creates.
Contacts Set the colors used for the following UI elements.
Contact Color Set the color of the Collider 2D Gizmo’s contacts which are displayed as a directional arrow starting at the contact point in the direction of the contact normal.
Contact Arrow Scale Set the scale of the Collider 2D contacts arrow. Larger values draw the arrow larger.

Analysis

The Analysis preferences let you define settings for the Profiler.

プロパティ 機能
Frame count プロファイラーがキャプチャするフレームの最大数を設定します。300 - 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 プロファイラーをどのような記録状態で開くかを選択します。EnabledDisabledRemember から選択します。Enabled は、セッションの合間も Record ボタンを有効にしたままにし、Disbled は、プロファイリングセッション中の有効/無効の設定に関わらず、無効にします。Remember の状態は、セッション中に Record ボタンを有効にしたか無効にしたかを記憶し、次回 Profiler ウィンドウを開いたときに、その状態を維持します。
Default editor target mode Select what mode the Attach to Player dropdown should target by default. Choose from either Playmode or Editor.
Custom connection ID Enter the connection name that you want to use for the device that’s running your application in the Attach to Player drop down in the Profiler Window or Console Window.

Asset Pipeline

プロパティ 機能
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 compression during import. Textures are typically imported into uncompressed formats.
Verify Saving Assets Enable this setting to verify which Assets to save individually. A dialog is shown 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 キャッシュサーバーが使用するデフォルトの IP アドレスを設定します。Unity エディターの設定でプロジェクトごとにオーバーライドできます。
Check Connection このボタンをクリックすると、リモートキャッシュサーバーに接続しようとします。

Colors

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

プロパティ 機能
Animation Use this setting to customize color preferences for animated properties.
Property Animated The color to indicate a property that’s currently 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 clip.
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 camera to clear to when the Scene FX skybox setting is turned off.
Background for Prefabs 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 Probes Set the color to display when ContributeGI is disabled in the GameObject’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 Lightmaps.
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 show 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 mesh in the MeshRenderer to ping the submesh in the Scene view.
Selected Outline Set the outline color for the selected GameObjects.
UI Collider Handle Set the color to use for the Unity UI’s padding visualization.
Volume Gizmo Set the color to indicate the audio source 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 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 requires 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

External Tools 設定では、スクリプティング、画像の操作、ソース管理のための外部アプリケーションを設定できます。

プロパティ 機能
External Script Editor Unity がスクリプトファイルを開くために使用するアプリケーションを選択します。Unity はビルトインサポートのスクリプトエディターに自動的に正しい引数を渡します。Unity は Visual Studio Community、Visual Studio Code (VSCode)、JetBrains Rider のためのビルトインのサポートを備えています。Open by file extension オプションは、ファイルを開くときに、ファイルタイプに合ったデフォルトのアプリケーションを使用します。デフォルトの アプリケーションが利用できない場合は、ファイルを開くアプリケーションを選択するためのウィンドウが開きます。
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 この設定を有効にすると、すべての .csproj ファイルを生成できます。コードエディターは .sln と .csproj ファイルを使用してプロジェクトに関するデータにアクセスします。.csproj ファイルは、XML 形式の記述データまたはメタデータを格納します。このデータには、バージョン情報、プラットフォーム要件、ビルドファイル、データベース設定などが含まれます。

これらのファイルが存在する場合、コードエディターは、含まれるデータを使用して、潜在的なコンパイルエラーをハイライトするなどの便利な機能を提供します。この設定を有効にすると、プロジェクトで可能な限り .csproj ファイルを作成します。
Extensions handled
(External Script Editor (外部スクリプトエディター) として Rider または Visual Studio Code を選択した場合にのみ使用可能)
このフィールドは、External Script Editor が開くファイルタイプを決定します。フィールドには、 スクリプトエディターがデフォルトで開くファイルのリストが事前に入力されています。このリストに他のファイルタイプを追加するには、ファイル拡張子を入力し、各拡張子をセミコロンで区切ります。
Image application 画像ファイルを開くのに使うアプリケーションを選択します。
Revision Control Diff/Merge アセットサーバーとのファイルの不一致を解決するために使用するアプリケーションを選択します。Unity は、デフォルトのインストール場所でこれらのツールを検出します。Windows ではTortoiseMerge、WinMerge、PlasticSCM Merge、Beyond Compare 4 のレジストリキーを確認します。

詳しくは、後述の リビジョン管理の Diff/Marge セクションを参照してください。

Revision Control Diff/Merge

Unity は現在以下のツールをサポートしています。

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

カスタムのリビジョンツールを設定するには、以下の手順で行います。

  1. From the Revision Control Diff/Merge dropdown list, select Custom Tool.
  2. カスタムツールのインストールフォルダーへのパスを入力します。Mac では、これはツールのインストールフォルダーの Contents / MacOS フォルダーを指す必要があります。
  3. 2 者間差分、3 者間差分、マージの引数を入力します。

リビジョンツールでファイルレイアウトを指定するには、以下の引数を使用します。

プロパティ 機能
#LTITLE 左のタイトル
#RTITLE 右のタイトル
#ATITLE 祖先のタイトル
#LEFT 左のファイル
#RIGHT 右のファイル
#ANCESTOR 祖先ファイル
#OUTPUT 出力ファイル
#ABSLEFT 左のファイルへの絶対パス
#ABSRIGHT 右のファイルへの絶対パス
#ABSANCESTOR 祖先ファイルへの絶対パス
#ABSOUTPUT 出力ファイルへの絶対パス

例:

SourceGear DiffMerge
SourceGear DiffMerge
P4Merge
P4Merge

GI Cache

The Global Illumination (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.

プロパティ 機能
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 これを有効にすると、GI キャッシュフォルダーをカスタムのフォルダーに保存可能になります。デフォルトでは、Caches フォルダーに保存されます。すべてのプロジェクトがこのキャッシュフォルダーを共有します。
ヒント* GI キャッシュを SSD ドライブに保存すると、ベイク処理が I/O バウンドな場合にベイクを高速化できます。 | |Cache Folder Location**
Browse ボタンをクリックして、キャッシュの場所を指定します。
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 キャッシュの現在のサイズを表示します。
Cache Folder Location 現在のキャッシュフォルダーの場所を表示します 。

Jobs

Use the job system to write simple and safe multithreaded code so that your application can use all its available CPU cores to execute code. The job system can improve the performance of your application.

プロパティ 機能
Use Job Threads Disable Use Job Threads to run all jobs on the main thread. If you’re debugging and want to simplify the problem space and remove all parallelism, you can disable Use Job Threads to run all jobs immediately on the main thread when they are scheduled. Disabling Use Job Threads has the same effect as if you set JobsUtility.JobWorkerCount to 0.

Use Job Threads is enabled by default when the Editor restarts.
Enable Jobs Debugger Disable Enable Jobs Debugger to remove the job system safety system checks which detect potential race conditions and prevent the bugs they can cause. Disable Enable Jobs Debugger if you want to monitor performance without the overhead of job system safety checks.

Enable Jobs Debugger is enabled by default when the Editor restarts.
Leak Detection Level Select a mode for leak detection. Leak detection checks if allocations that are made with MallocTracked are freed with FreeTracked. If you do not free unmanaged memory, you will cause memory leaks which have a negative effect on memory usage and reduce performance. Memory leaks persist across domain reloads in the Editor.

In the Editor and development builds, Enabled is selected by default. In non-development builds, Disabled is the default mode for Leak Detection Level.
Disabled Do not detect unmanaged memory leaks.
Enabled Perform a lightweight count of all memory leaks for each leak category. This option only prints the number of leaks as part of the domain unload process. Use the Enabled With Stack Trace leak detection mode to find detected leaks.
Enabled With Stack Trace Leak Detection reports the callstack of any MallocTracked allocation that is not deallocated with FreeTracked. Enabled With Stack Trace can add a performance cost to allocations. Only use Enabled With Stack Trace to intentionally track native memory leaks. Enabled With Stack Trace, like Enabled, reports leaks as part of the domain unload process.
You can only select Enabled With Stack Trace in the Editor and in development builds.

Package Manager

Use the Package Manager preferences to change the default cache location for the following packages:

  • Packages installed from the Unity Registry
  • Packages downloaded from the Asset Store
プロパティ 機能
パッケージ Set the cache location that determines where packages installed from the Unity Registry are stored. For more information, see Customizing the global cache location.
My Assets Set the cache location that determines where packages downloaded from the Asset Store are stored. For more information, see Customize the Asset Store cache location.

Scene View

編集中のオブジェクトの配置や表示をカスタマイズするには、Scene View (シーンビュー) 環境設定を使用します。

プロパティ 機能
Create Objects at Origin Scene pivot ではなく、ワールド座標 0,0,0 で新規オブジェクトを作成します。デフォルトでは無効になっています。
Create Objects with Constrained Proportions Enable to define 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 トランスフォームツール の線の太さを設定します。
Enable filtering while searching シーンビューで一致しないアイテムをグレーアウトすることができます。デフォルトでは有効になっています。
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

Use the Search preferences to set your search preferences for the Editor.

Tip: You can also access the Search preferences in one 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

設定 機能
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 (ms) 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, Project, and Scene 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.

カスタムパッケージの設定

Some Asset Store 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:

パッケージ固有の設定がスコープリストに表示されます
パッケージ固有の設定がスコープリストに表示されます

特定のパッケージの環境設定については、そのパッケージのドキュメントを参照してください。ここでは、Unity の標準の環境設定のみを説明します。

2D/3D モード設定
ショートカットマネージャー