PresetType.IsValid

Declaration

public bool IsValid();

Returns

bool Returns true if the PresetType is valid. Returns false otherwise.

Description

Checks whether a PresetType corresponds with a valid native or managed class.

A PresetType is invalid when a MonoScript has been removed from the project, or the file containing a MonoBehaviour has been renamed and no longer matches the class name, or the type is explicitely excluded using ExcludeFromPresetAttribute.


Did you find this page useful? Please give it a rating: