CompositeTexture.resize

Set a new size for the texture; recalculate the chunk number

  1. void resize(Vector2 size, Vector2 dpi, bool alwaysMax)
    struct CompositeTexture
    void
    resize
    (
    Vector2 size
    ,
    Vector2 dpi
    ,
    bool alwaysMax = false
    )
  2. void resize(Vector2 size, bool alwaysMax)

Parameters

size Vector2

New size of the texture.

dpi Vector2

DPI value for the texture.

alwaysMax bool

Always give chunks maximum size. Improves performance in nodes that frequently change their content.

Meta