Class
GeneratedFolder
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#
| SetPrimaryPart | Specifies 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.
| Name | Type | Default | Description |
|---|---|---|---|
part | BasePart | The BasePart inside this GeneratedFolder to designate as the
PrimaryPart of the resulting
ProceduralModel. |
Returns
()
Inherited members#
Inherited from Instance 58
Properties (10)
Archivable, archivable, Capabilities, IsInSandbox, Name, Parent, PredictionMode, RobloxLocked, Sandboxed, UniqueId
Methods (39)
AddTag, children, ClearAllChildren, Clone, clone, Destroy, destroy, FindFirstAncestor, FindFirstAncestorOfClass, FindFirstAncestorWhichIsA, FindFirstChild, findFirstChild, FindFirstChildOfClass, FindFirstChildWhichIsA, FindFirstDescendant, GetActor, GetAttribute, GetAttributeChangedSignal, GetAttributes, GetChildren, getChildren, GetDebugId, GetDescendants, GetFullName, GetStyled, GetStyledPropertyChangedSignal, GetTags, HasTag, IsAncestorOf, IsDescendantOf, isDescendantOf, IsPropertyModified, QueryDescendants, Remove, remove, RemoveTag, ResetPropertyToDefault, SetAttribute, WaitForChild