This version of Unity is unsupported.

Preset.IsObjectExcludedFromPresets

public static bool IsObjectExcludedFromPresets(Object reference);

Description

Returns true if this Object is not available in the Preset system.

Creating a Preset using an Object that is Excluded from Preset will reset in an invalid Preset (Preset.IsValid() == false) and will not be usable to ApplyTo or UpdateProperties with any type of Object.