Version: 2018.3 (switch to 2019.1 )
Preferences
Build Settings
Other Versions

Presets

Use Presets to reuse property settings across multiple components and assetsAny media or data that can be used in your game or Project. An asset may come from a file created outside of Unity, such as a 3D model, an audio file or an image. You can also create some asset types in Unity, such as an Animator Controller, an Audio Mixer or a Render Texture. More info
See in Glossary
.

With Presets you can also specify default settings for new components and the import settings for Assets. Use the Presets settings to view and choose the Presets to use for default settings.

Use Presets to streamline your team’s workflows. You can even use Presets to specify settings for Project SettingsA broad collection of settings which allow you to configure how Physics, Audio, Networking, Graphics, Input and many other areas of your Project behave. More info
See in Glossary
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.

Presets are an Editor-only feature. You can support Presets in your extensions to the Unity Editor. Presets are not available at run time in the Unity Player.

Reusing property settings

You use Presets like copying and pasting. But instead of copying settings to the clipboard, you save them to use later. And like pasting settings, applying a Preset to an item changes the properties in the item.

For example, select a GameObject to edit the properties of its RigidBodyA component that allows a GameObject to be affected by simulated gravity and other forces. More info
See in Glossary
component. Save these settings to a Preset. Then apply the Preset to RigidBody components in other GameObjectsThe 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
. 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 InspectorA Unity window that displays information about the currently selected GameObject, Asset or Project Settings, alowing you to inspect and edit the values. More info
See in Glossary
.

Example of Preset assets in the Project window, organized in a Presets sub-folder
Example of Preset assets in the Project window, organized in a Presets sub-folder

Saving property settings to a Preset

Use the Select Preset window to save property settings.

Tip: You can also save a Preset while in Play Mode.

To save settings to a Preset:

  1. Select the GameObject, Asset import settings, or Project Settings window from which you want to reuse settings.

  2. In the Inspector window, edit the properties.

  3. Click the Preset icon at the top-right of the Inspector window.

  4. In the Select Preset window, click Save current to.

    A File Save dialog appears.

  5. Choose the location of your new Preset, enter its name, and click Save.

Applying a Preset

Apply a saved Preset with the Select Preset window or by dragging and dropping a Preset from the 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
window onto the GameObject.

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 to a Project Settings window, an existing component, or import settings for an Asset:

  1. Select the Settings window, GameObject, or Asset import settings that you want to apply a Preset to.

  2. In the Inspector, click the Preset icon.

  3. In the Select Preset window, search for and select the Preset to apply.

    Selecting the Preset applies it to the component, asset, or Project Settings window.

  4. Close the Select Preset window.

Drag and drop a Preset from the Project window to apply properties to a component in a GameObject:

  • Drop the Preset on an empty spot in the Hierarchy window. Unity creates a new, empty GameObject and adds a component with properties copied from the Preset.

  • Drop the Preset on an existing GameObject in the Hierarchy. Unity adds a new component and copies properties from the Preset.

  • Drop the Preset on the Inspector window at the end of a GameObject. Unity adds a new component and copies properties from the Preset.

  • Drop the Preset on the Inspector onto the title of an existing component. Unity copies properties from the Preset.

Using Presets for transitions of Animation State nodes

You can save and apply Presets for Animation State nodes. However, the transitionsThe blend from one state to another in a state machine, such as transitioning a character from a walk to a jog animation. Transitions define how long the blend between states should take, and the conditions that activate the blend. More info
See in Glossary
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 windowThe window where the Animator Controller is visualized and edited. More info
See in Glossary
. 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.

Using Presets for importing Assets

You can save Presets for Asset import settings. However, applying a Preset to import settings does not affect the cross-platform settings. To apply a Preset so that it includes cross-platform settings, set the Preset as a default then use the Reset command.

You can also use a script to apply a Preset to an Asset based on the location of the Asset in the Project window.

Editing a Preset

Use the Inspector window to edit a Preset Asset.

Note: Changing the properties in a Preset does not update the items that you applied the Preset to. For example, if you apply a Preset for a RigidBody component to a GameObject, then edit the Preset, the settings in the RigidBody component do not change.

Editing a Preset in the Inspector window
Editing a Preset in the Inspector window

2017–03–27 Page published with limited editorial review

New feature in 2018.1 NewIn20181

Did you find this page useful? Please give it a rating:

Preferences
Build Settings