BrokenPrefabAsset
BrokenPrefabAsset is for Prefab files where the file content cannot be loaded without errors.
Read time 4 minutesLast updated 4 days ago
Definition
- Type: Class
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
- Inherits from: DefaultAsset
public class BrokenPrefabAsset : DefaultAsset
Remarks
A Prefab Asset can be broken if the content of the file invalid or if it is a Variant Prefab where the parent Prefab is either invalid or missing.
Search for t:BrokenPrefabAsset in the project browser to see which assets are of that type.
Properties
Property | Description |
|---|---|
| brokenPrefabParent | The broken parent Prefab file if it has not been deleted. |
| isPrefabFileValid | Returns true if the content of the file is valid. |
| isVariant | Returns true if the prefab is a variant. |
Inheritance
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |