2D Physics Core preferences reference
Explore the properties you can use to configure how 2D Physics Core draws and edits physics objects in the Scene view.
読み終わるまでの所要時間 7 分最終更新 5日前
Explore the properties you can use to configure how 2D Physics Core draws and edits physics objects in the Scene view. These properties apply to every project you open in the Unity Editor.
To open these properties, go to Edit > Preferences > 2D > Physics Core.
For more information about the tools these properties configure, refer to Visualize and edit 2D Physics Core scenes.
General
Property | Description |
|---|---|
| Confirm Scene Asset Edit | Displays a confirmation dialog when the Scene view tools edit geometry that a shared asset stores. |
| Edit on Selection | Automatically enters the Physics Area or Physics Constraint editing tool when you select a GameObject that has one of these components. Unity ignores components on child GameObjects. If a GameObject has both, Unity enters the Physics Area tool. |
| Hierarchy Selection | Sets which physics objects Unity draws when you select a GameObject in the Hierarchy window. The options are:
|
| Edit Shape Selection | Sets which layers to edit when you click on a shape. The options are:
|
| Play Mode Edit | Sets which components you can edit in Play mode, in the Inspector window and with the Scene view tools. |
| Local Geometry Target | Sets which values Unity updates when you drag the center handle of a component without a shared geometry asset. The options are:
|
| Asset Geometry Target | Sets which values Unity updates when you drag the center handle of a component that uses a shared geometry asset. The options are:
|
| Geometry Display | Sets how Unity displays the panel beneath a geometry asset in the Inspector window of a component. The options are:
|
| Definition Display | Sets how Unity displays the panel beneath a definition asset in the Inspector window of a component. The options are:
|
| Highlight | Sets the brightness of the selected shape. Set the value to 0 to leave the shape unhighlighted. |
| Dimming | Sets how strongly Unity fades a shape that you haven't selected or hovered over. Set the value to 1 to hide unselected layers. |
| Max Handles | Sets the maximum number of vertex handles Unity displays on a contour in the Scene view. Use a lower value to make editing a complex contour faster. |
| Handle Size | Scales the editing handles in the Scene view. Use a higher value to make handles easier to select. |
| Handle Edge Range | Sets how far from the edge of a selected shape the handles appear, as a multiple of the base handle size. |
| Editing Gizmo Scale | Scales the angle lines, arcs, and limit bands Unity draws when you edit a pose, an anchor, or a limit. This property doesn't affect the handle size. |
| Angle Quantize | Sets the increment in degrees that Unity rounds an angle to when you drag a pose rotation, an anchor angle, or a transformation angle. The options are Off, 0.1°, 0.25°, 0.5°, 1°, 10°, 15°, 30°, 45°, and 90°. Select Off to drag at full precision. |
Labels
The settings in this section configure the labels Unity displays in the Scene view.
Property | Description |
|---|---|
| Show Labels | Sets when Unity displays coordinates and value labels. The options are:
|
| Label Space | Sets the space that label coordinates use. The options are:
|
| Label Precision | Sets the maximum number of decimal digits in a label. |
Colors
The settings in this section set the color of shapes, handles, labels, and lines in the Scene view.
Geometry
Property | Description |
|---|---|
| Invalid Edit | Sets the color of an edit that Unity rejects as invalid. |
Constraint
Property | Description |
|---|---|
| Lower Limit | Sets the color of the line that marks a lower limit, such as the lower angle limit of a Physics Constraint Hinge component. |
| Upper Limit | Sets the color of the line that marks an upper limit, such as the upper angle limit of a Physics Constraint Hinge component. |
Handle
Property | Description |
|---|---|
| Handle Idle | Sets the color of a vertex, edge, size, or endpoint handle at rest. |
| Handle Hover | Sets the color of a handle when you hover over it. |
| Center | Sets the color of the center handle. |
| Anchor | Sets the color of the anchor handles of a constraint. By default, this color matches Handle Idle. |
| Add | Sets the color of the handles that add geometry. |
| Delete | Sets the color of the handles that delete geometry. |
Labels & Lines
Property | Description |
|---|---|
| Label | Sets the color of coordinate and value labels. |
| Label Background | Sets the color Unity fills behind a label. Set the alpha value to 0 to draw no background. |
| Line | Sets the color of the lines the tools draw between objects, such as the link between the two anchors of a constraint. |
| Zero Reference | Sets the color of the dashed line Unity measures an angle from. |
| Current Angle | Sets the color of the solid line Unity draws out to the handle of the current angle. |
| Edit Fill | Sets the color Unity fills the range with while you edit, such as a swept angle arc or a linear limit band. |
Draw Override
The settings in this section replace the draw settings of every physics world in the Editor, except a world whose property is . Such a world ignores the override, including Hide With Gizmos.
disableDrawOverridetrueEach world stores its own draw settings in the project, so a change to them affects everyone on a shared project and appears in source control. The override is personal to you. Unity stores its values in your Editor preferences, so they aren't shared through source control. It changes only what you see in the Scene view and Game view, and leaves the project, the worlds, and the team-wide settings untouched.
Overrides is editable only when Enabled is selected. Each other property is editable only when Enabled is selected and that property is selected in Overrides.
Except for Draw At Transform, each draw property overrides the property of the same name in the Physics Simulation Definition asset reference.
Property | Description |
|---|---|
| Enabled | When enabled, Unity draws every physics world with the selected values in this section. When disabled, each world uses its own draw settings, and Unity keeps the values in this section. |
| Overrides | Sets which draw settings in this section replace each world's settings. Also includes Hide With Gizmos, which hides all physics drawing in a Scene view or Game view when its Gizmos button is off. By default, Draw Options and Hide With Gizmos are selected. |
| Draw Options | Overrides the world's Draw Options setting. |
| Draw Fill Options | Overrides the world's Draw Fill Options setting. |
| Draw Contact Type | Overrides the world's Draw Contact Type setting. |
| Draw Filter | Overrides the world's Draw Filter setting. |
| Draw Target | Overrides the world's Draw Target setting. |
| Draw Thickness | Overrides the world's Draw Thickness setting. |
| Draw Fill Alpha | Overrides the world's Draw Fill Alpha setting. |
| Draw Point Scale | Overrides the world's Draw Point Scale setting. |
| Draw Normal Scale | Overrides the world's Draw Normal Scale setting. |
| Draw Force Scale | Overrides the world's Draw Force Scale setting. |
| Draw At Transform | Draws bodies at the pose of their Transform component rather than their simulated pose. |
| Draw Colors | Overrides the world's Draw Colors setting. |
Reset Preferences
Property | Description |
|---|---|
| Reset Preferences | Restores all the properties in the Physics Core tab to their default values. |