Documentation

Unity Engine

Unity Engine

ApplyTo

Applies this Preset to the target object.
Read time 1 minuteLast updated a month ago

Definition

ApplyTo(Object)

Applies this Preset to the target object.
public bool ApplyTo(Object target)

Parameters

target

The target object that will be updated with the Preset serialized values.

Returns

Type

Description

boolReturns true if the target object was successfully updated by the Preset, false otherwise.

ApplyTo(Object, string[])

Applies this Preset to the target object.
public bool ApplyTo(Object target, string[] selectedPropertyPaths)

Parameters

target

The target object that will be updated with the Preset serialized values.

selectedPropertyPaths

Optional list of property names that are applied to the target.

Returns

Type

Description

boolReturns true if the target object was successfully updated by the Preset, false otherwise.