Skip to content
function since v0.1

ignite

Ignites Oh My Prvd. Expected to be called once in an environment, e.g. once on the server and once on the client.

All necessary providers should be preloaded before calling this as newly created providers will not run its lifecycle events.

function prvd.ignite(
  options: {
    logLevel: "none" | "verbose" | nil,
    profiling: boolean?,
  }?
): ()
export const ignite: (
  options: Partial<Options> = {
    logLevel: "none",
    profiling: RunService.IsStudio(),
  }
) => void

Parameters

options : Partial<Options>

Configures how Oh My Prvd will ignite. The following are the available configuration options:

  • logLevel: "none" | "verbose" configures if Oh My Prvd should log trace information to the console, defaults to none.
  • profiling: boolean configures if built-in lifecycle events should be profiled with debug.setmemorycategory and debug.profilebegin, defaults to whether the current session is running in Roblox Studio.

Learn More