Presets are assets that you can use to save and apply identical property settings across multiple components, assets, or Project Settings windows. You can also use Presets to specify default settings for new components and default import settings for assets in the Preset Manager The Preset Manager supports any importers, components, or scriptable objects you add to the Unity Editor.
You can only apply Presets in the Editor; Unity cannot apply them at run time. You can support Presets in your extensions to the Unity Editor.
Presets allow you to save the property configuration of a component, asset, or Project Settings window as a Preset asset. You can then use this Preset asset to apply the same settings to a different component, asset, or Project Settings window.
For example, you could edit the properties of a Rigidbody component, save these settings to a Preset asset, then apply that Preset asset to Rigidbody components in other GameObjects. The other components in the GameObjects are not affected; the Preset only applies its settings to the Rigidbody component.
You can store Presets in the
Assets folder of your project. Use the Project window to view and select Presets to edit in the Inspector.
To save property settings to a Preset asset, follow the instructions below. You can save property settings while in Edit mode or in Play mode.
Select the GameObject, Asset import settings, or Project Settings window from which you want to reuse settings. When you select it, it appears in the Inspector window.
In the Inspector window, configure the properties as you want to save them.
Click the Preset selector (the slider icon) at the top-right of the Inspector window.
In the Select Preset window, click Save current to.
A File Save dialog appears.
Choose the location of your new Preset, enter its name, and click Save.
There are two ways to apply a Preset: the Select Preset window, or for component Presets, you can also drag and drop a Preset from the Project window onto the GameObject that contains that component.
Note: Applying a Preset copies properties from the Preset to the item. It doesn’t link the Preset to the item. Changes you make to the Preset do not affect the items you have previously applied the Preset to.
To apply a Preset via the Select Preset window:
For GameObjects or assets you want to apply a Preset to, select them so that they appear in the Inspector window. For Project Settings that you want to apply a Preset to, open them in the Project Settings window.
In the Inspector, click the Preset selector (the slider icon).
In the Select Preset window, search for and select the Preset to apply.
Unity applies this Preset to the component, asset, or Project Settings window.
Close the Select Preset window.
If you apply a component Preset via drag-and-drop, Unity’s behavior depends on the state of your GameObject:
You can choose to only apply some properties from a Preset and exclude others. To do this:
Select your Preset in the Project window.
In the Inspector, right-click a property and choose Exclude Property. The window displays a red horizontal line next to excluded properties.
Apply the Preset to the target component, asset, or Project settings.
Note: To select all or clear all checkboxes in a Preset, select the More items menu (⋮) or right-click the Preset name, and select Include all properties or Exclude all properties. You can still adjust individual properties if you need to.
You can also use the Exclude option for Presets that you then set as the default configuration for components and asset importers. See Preset Manager for more details on how to do this.
To edit a Preset asset, select it from the Project window and view it in the Inspector window.
Note: When you change the properties in a Preset, your changes do not affect items you have already applied the Preset to. For example, if you apply a Preset for a Rigidbody component to a GameObject, and then edit the Preset, the settings in the Rigidbody component do not change.
You can use a script to apply a Preset to an Asset based on the location of the Asset in the Project window.
Use Presets to streamline your team’s workflows. You can even use Presets to specify settings for Project Settings windows, including the Preset settings themselves. Use this feature to configure a project then export it as a custom package. Your team members can import this package into their projects.
You can save and apply Presets for Animation State nodes. However, the transitions in the Preset are shared among Presets and the nodes that you apply the Preset to. For example, you apply a Preset to two different nodes in the Animator window. In the Inspector window, you edit the settings for one of the transitions in the first node. Your change also appears in the other node and in the Preset.
2017–03–27 Page published
New feature in 2018.1 NewIn20181