How to use Presets in Unity?

Ouzani Abd Raouf
3 min readJun 10, 2020

--

Presets are used to reuse property settings across multiple components and assets. You can also use Presets to specify default settings for new components, the import settings for Assets and settings for the Project Settings windows.

So how to save property settings to a Preset?

To save the property settings to a Preset:

1. Select the gameObject, Asset import settings, or Project Settings window from which you want to reuse settings. In our case, we will save the settings of an Audio Source component attached to a gameObject.

2. In the Inspector window, edit the properties of the component.

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

Saving a property settings to a Preset

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

5. In the “New Preset” file save dialog choose the location of your new Preset, enter its name, and click Save. You can previously create a new folder to contain all your Presets.

Note that you can also save a Preset while in Play Mode. This can be very helpful when you find the good values of your component properties when testing at runtime.

How to apply a Preset?

To apply a saved Preset:

1. Select the gameObject, Asset import settings, or Project Settings window to which you want to apply the preset settings. In our case, we will apply the settings to an Audio Source component attached to another gameObject.

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

3. In the Select Preset window, select the Preset to apply.

4. Close the Select Preset window.

Applying a Preset

You can also Apply a saved Preset by dragging and dropping a Preset from the Project window onto the GameObject.

Applying a Preset copies properties from the Preset to the item. It does not link the Preset to the item. Changes you make to the Preset do not affect the items you have previously applied the Preset to.

With a Preset you can do the following actions :

· Drop the Preset onto the title of an existing component of the same type in the Inspector. Unity copies properties from the Preset to that component.

· Drop the Preset on the Inspector window under all the components of a gameObject. Unity adds a new component and copies properties from the Preset.

· Drop the Preset on an empty area in the Hierarchy window. Unity creates an empty gameObject and adds a component with properties copied from the Preset.

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

How to edit a Preset?

To edit a Preset, select the Preset asset in the Project window and edit its properties in the Inspector window.

How to edit a Preset in Unity
Edit a Preset

You can click the “Set as … Default” button to choose the current Preset to use for default settings of this type of components.

--

--

Ouzani Abd Raouf
Ouzani Abd Raouf

Written by Ouzani Abd Raouf

Computer Science Engineer and Cisco Instructor

Responses (2)