Pin properties in 2D Physics Core
Pin frequently used properties to the top of a component's Inspector, so you can edit them without expanding sections or opening a Definition Asset.
Read time 2 minutesLast updated 14 days ago
Pin frequently used properties to the top of the window of a 2D Physics Core component, so you can edit them without expanding sections.
Inspector
?
Create a Custom Properties asset
Follow these steps:
- In the Project window, right-click and select Create > 2D > Physics (Core) > Custom Properties.
- Select the asset Unity creates in the Project window.
- In the Inspector window, set the Name property. Unity displays this as the heading for the pinned properties in the Inspector window.
Add pinned properties
Follow these steps:
-
Select the custom properties asset in the Project window.
-
Select Add Component Type, then select the 2D Physics Core component you want to pin properties for.Select Physics Area Group to pin properties to every type of Physics Area component.
-
Select Add Property to add pinned properties.
Use the following to edit the list of pinned properties:
- To reorder a property, click and drag the handle on the left.
- To temporarily stop pinning a property without removing it from the list, disable its checkbox.
- To remove a property from the list, select ✕.
Activate the Custom Properties asset
Follow these steps:
- From the main menu, select Edit > .Project Settings
?
- Select Physics Core 2D > Package.
- In the Custom Properties section, select Add Custom.
- In the new row, drag your custom properties asset into the property, or select Make Asset to create and assign a new one.
- Select the radio button on the left to make the asset active.
You can only make one custom properties asset active at a time.
Unity displays a panel marked with a pin icon (📌) at the top of the Inspector window for the component you selected. If the values come from a shared definition asset, Unity displays a Shared label next to the panel, and editing the property changes the value for every component that uses that definition asset.