Property preserveMeshAssetOnDestroy
preserveMeshAssetOnDestroy
Gets or sets whether to destroy the mesh asset if this ProBuilderMesh is deleted.
In the Editor, when you delete a ProBuilderMesh you usually also want to destroy the mesh asset. However, there are situations you'd want to keep the mesh around, like when stripping ProBuilder scripts.
Declaration
public bool preserveMeshAssetOnDestroy { get; set; }
Property Value
Type | Description |
---|---|
bool | True to keep the mesh asset; false to destroy it. |