# ApplyTo

> Applies this Preset to the target object.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Presets](/engine/6000.5/script-reference/unityeditor/presets.md)
* **Assembly:** UnityEditor.CoreModule

## ApplyTo(Object)

Applies this Preset to the target object.

```csharp
public bool ApplyTo(Object target)
```

### Parameters

**** (\[Object]\(/engine/6000.5/script-reference/unityengine/object)): The target object that will be updated with the Preset serialized values.

### Returns

| Type                                                          | Description                                                                                |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if the target object was successfully updated by the Preset, false otherwise. |

## ApplyTo(Object, string\[])

Applies this Preset to the target object.

```csharp
public bool ApplyTo(Object target, string[] selectedPropertyPaths)
```

### Parameters

**** (\[Object]\(/engine/6000.5/script-reference/unityengine/object)): The target object that will be updated with the Preset serialized values.**** (\[string\[]]\(https\://learn.microsoft.com/dotnet/api/system.string)): Optional list of property names that are applied to the target.

### Returns

| Type                                                          | Description                                                                                |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if the target object was successfully updated by the Preset, false otherwise. |
