Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


BrokenPrefabAsset

BrokenPrefabAsset is for Prefab files where the file content cannot be loaded without errors.
Read time 4 minutesLast updated 4 days ago

Definition

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

brokenPrefabParentThe broken parent Prefab file if it has not been deleted.
isPrefabFileValidReturns true if the content of the file is valid.
isVariantReturns true if the prefab is a variant.

Inheritance

Inherited Members

Operators

Operator

Description

operator ==Compares two object references to see if they refer to the same object.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.