jetlag2d
    Preparing search index...

    Function getAppearance

    • Get the first appearance of type T on actor. Throw an error if it can't be found.

      Type Parameters

      Parameters

      • actor: Actor

        The actor whose appearances are being searched

      • ctor: new (...args: any[]) => T

        The constructor of the appearance type to look for, such as AnimatedSprite

      Returns T

      The appearance