Section
Extends Section
Builds the given Segment at a set position interval along a section of track.
Section : BaseSection {
Name : string,
Segment : Segment,
Interval : positiveNumber,
StartOffset : number,
Optimize : boolean,
BuildEnd : boolean,
}
Methods
Create
Creates an Instance created on the given CFrameTrack from startPosition to endPosition
Section:Create(cframeTrack: CFrameTrack, startPosition: number, endPosition: number) -> Instance
CreateAsync
Like Create, but wraps this call in a Promise and returns it.
Section:CreateAsync(cframeTrack: CFrameTrack, startPosition: number, endPosition: number) -> Promise<Instance>
Constructors
fromData
Section.fromData(data: table) -> Section
data
{
Name : ?string,
Segment : Segment,
Interval : positiveNumber,
StartOffset : number,
Optimize : boolean,
BuildEnd : boolean,
}
fromInstance
Section.fromInstance(instance: Instance) -> Section
instance Children
{
Name : StringValue,
Segment : Instance, // see Segment.CreateFromInstance
Interval : NumberValue,
StartOffset : NumberValue,
Optimize : BoolValue,
BuildEnd : BoolValue,
}