roavatar-renderer
    Preparing search index...

    Class BackgroundRenderer

    Used internally by OutfitRenderer to render backgrounds

    Index
    affectSceneAppearance: boolean = true
    affectSceneLighting: boolean = true
    ambientLight: AmbientLight = ...
    animationFPS: number = 60
    animationInterval?: Timeout
    avatarCyclorama?: Instance
    backgroundData?: Instance
    backgroundId?: number
    cameraAffectsRotation: boolean = false
    cameraAffectsTransparency: boolean = true
    currentlyUpdating: boolean = false
    forceColor: Color3 | undefined
    forceImage: string | undefined
    hasFiredFullyRendered: boolean = false
    hasNewUpdate: boolean = false
    lastFrameTime: number = ...
    lastLoadedBackgroundId?: number
    onError: Event = ...

    Event is fired if a new outfit failed to load (specifically the Instance tree, not the rendering part)

    Simple: Fired when, Instance tree = fail

    BackgroundRendererErrorType

    onRenderError: Event = ...

    Event is fired if a renderDesc fails to compile, it can be fired multiple times

    Simple: Fired when, Rendering = fail

    void

    onRenderSuccess: Event = ...

    Event is fired when all the renderDescs have been compiled, if any renderDescs fail to render this wil never be fired (can only be fired after Instance tree is done)

    Simple: Fired when, Instance tree = done & Rendering = done (AKA everything)

    void

    onSuccess: Event = ...

    Event is fired if a new outfit successfully loaded (specifically the Instance tree, not the rendering part)

    Simple: Fired when, Instance tree = done

    void

    originalPartCFrames: Map<Instance, CFrame> = ...
    renderScene: RBXRendererScene = RBXRenderer.firstScene
    • Calls destroy on the background, stops animating and disconnects connections. The OutfitRenderer should not be interacted with after this

      Returns void

    • Updates background to match the set id

      Parameters

      • Optionalid: number

      Returns void