FTextureSource::Init

Initialize the source data with the given size, number of mips, and format.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/Texture.h

Include

#include "Engine/Texture.h"

Source

/Engine/Source/Runtime/Engine/Private/Texture.cpp

Syntax

void Init
(
    int32 NewSizeX,
    int32 NewSizeY,
    int32 NewNumSlices,
    int32 NewNumMips,
    ETextureSourceFormat NewFormat,
    const uint8 * NewData
)

Remarks

Initialize the source data with the given size, number of mips, and format.

Parameters

Parameter

Description

NewSizeX

Width of the texture source data.

NewSizeY

Height of the texture source data.

NewNumSlices

The number of slices in the texture source data.

NewNumMips

The number of mips in the texture source data.

NewFormat

The format in which source data is stored.

NewData

[optional] The new source data.

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