Skip to content

Class · inherits Folder

GeneratedFolder

Official docs ↗

A container that stores ProceduralModel generation results.

About GeneratedFolder

GeneratedFolder is a container used to represent non-source-of-truth data in the DataModel. These are branches that are deterministically generated from other parts of the DataModel instead of containing source-of-truth data.

GeneratedFolder is primarily used by ProceduralModel to store generation results. It can also be used by plugins or other tools to organize generated content.

Methods 1

  • SetPrimaryPart(part: BasePart) → ()Specifies which part within the GeneratedFolder should be set as the PrimaryPart of the ProceduralModel.

    This method allows a generator module to specify which part within the GeneratedFolder should be set as the PrimaryPart of the ProceduralModel that results get parented to.

    Generation of results happens outside of the DataModel and doesn't have direct access to the ProceduralModel instance being generated. As a result, the generator must use this method instead of setting the PrimaryPart directly.

GeneratedFolder also has every member of Folder. Deprecated and Roblox-only members are hidden.

Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.