Version: 2019.2
LanguageEnglish
  • C#

Preset.ApplyTo

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

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

Parameters

targetThe target object that will be updated with the Preset serialized values.
selectedPropertyPathsOptional list of property names that are applied to the target.

Returns

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

Description

Applies this Preset to the target object.