Skip to main content

Getting Started with Sweep

Table of Contents

Installation

Requirements

Setup Steps

  1. Add the Sweep framework to your project:
  2. Add SweepTaskUtils:
  3. (Optional) Enable debugging:

Basic Usage

Creating a Sweep Instance

Adding Tasks

  1. Simple Function Task:
  2. Event Connection:
  3. Instance Cleanup:
  4. Interval Task:

Cleaning Up

Common Use Cases

UI Management

Player Management

Data Management

Best Practices

Task Organization

  1. Group Related Tasks:
  2. Use Labels for Important Tasks:
  3. Clean Up Early:

Memory Management

  1. Avoid Circular References:
  2. Clear Tables:
  3. Handle Large Resources:

Debugging

Enable Debug Mode

Track Task Lifecycles

Monitor Task Count

Performance Monitoring