bool DontBreakAsTemplate { get; set; }

robot_2Generated
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, you can access it directly from an instance of the PrefabFile class. Set it to true if you want the prefab to remain unbroken when used as a template, or false if you want it to be breakable.

Example

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

// Check if the prefab will remain intact as a template
if (myPrefab.DontBreakAsTemplate)
{
    // Logic for handling intact prefab
}