Roblox UtilitiesDevlHub Roblox Documentation

Class

GeneratedFolder

Inherits
Folder › Instance › Object
Memory category
BaseParts

A container that stores ProceduralModel generation results.

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#

SetPrimaryPartSpecifies which part within the GeneratedFolder should be set as the PrimaryPart of the ProceduralModel.

SetPrimaryPart(part: BasePart): ()#

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.

NameTypeDefaultDescription
partBasePartThe BasePart inside this GeneratedFolder to designate as the PrimaryPart of the resulting ProceduralModel.
Returns
  • ()

Inherited members#

Inherited from Instance 58
Inherited from Object 6
Properties (2)

ClassName, className

Events (1)

Changed