phaser - v4.0.0-rc.4
    Preparing search index...
    NineSliceConfig: GameObjectConfig & {
        bottomHeight?: number;
        frame?: string | number;
        height?: number;
        key?: string | Textures.Texture;
        leftWidth?: number;
        rightWidth?: number;
        topHeight?: number;
        width?: number;
    }

    Type declaration

    • OptionalbottomHeight?: number

      The size of the bottom horiztonal row (D). Set to zero or undefined to create a 3 slice object.

    • Optionalframe?: string | number

      An optional frame from the Texture this Game Object is rendering with.

    • Optionalheight?: number

      The height of the Nine Slice Game Object. If this is a 3 slice object the height will be fixed to the height of the texture and cannot be changed.

    • Optionalkey?: string | Textures.Texture

      The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.

    • OptionalleftWidth?: number

      The size of the left vertical column (A).

    • OptionalrightWidth?: number

      The size of the right vertical column (B).

    • OptionaltopHeight?: number

      The size of the top horiztonal row (C). Set to zero or undefined to create a 3 slice object.

    • Optionalwidth?: number

      The width of the Nine Slice Game Object. You can adjust the width post-creation.