bool DontBreakAsTemplate { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The DontBreakAsTemplate property of the PrefabFile class determines whether a prefab should remain intact when it is instantiated as a template. If set to true, the prefab will not be broken apart, preserving its original structure and behavior.

Usage

To use the DontBreakAsTemplate property, simply access it from an instance of the PrefabFile class. You can set it to true or false depending on whether you want the prefab to remain intact when used as a template.

Example

// Example of setting the DontBreakAsTemplate property
PrefabFile myPrefab = new PrefabFile();
myPrefab.DontBreakAsTemplate = true;

// Check if the prefab will remain intact as a template
bool isIntact = myPrefab.DontBreakAsTemplate;
// Output: true