FImageUtils::CreateCheckerboardTexture

Creates a new [UTexture2D](API\Runtime\Engine\Engine\UTexture2D) with a checkerboard pattern.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/ImageUtils.h

Include

#include "ImageUtils.h"

Source

/Engine/Source/Runtime/Engine/Private/ImageUtils.cpp

Syntax

static UTexture2D * CreateCheckerboardTexture
(
    FColor ColorOne,
    FColor ColorTwo,
    int32 CheckerSize
)

Remarks

Creates a new UTexture2D with a checkerboard pattern.

Parameters

Parameter

Description

ColorOne

The color of half of the squares.

ColorTwo

The color of the other half of the squares.

CheckerSize

The size in pixels of each checker square.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss