Unreal Engine 4.26 Documentation
Unreal Engine 4.27 Documentation
Unreal Engine 5.0 Documentation
Unreal Engine 5.1 Documentation
Unreal Engine 5.2 Documentation
Unreal Engine 5.3 Documentation
> Unreal Engine API Reference > Runtime > Engine > Engine > UTexture > UTexture::GetSurfaceDepth
Light Theme
Dark Theme
>

UTexture::GetSurfaceDepth

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

UTexture::GetSurfaceDepth()

UBinkMediaTexture::GetSurfaceDepth()

UARTexture::GetSurfaceDepth()

UTextureCubeArray::GetSurfaceDepth()

UTexture2DArray::GetSurfaceDepth()

UTexture2DDynamic::GetSurfaceDepth()

UTextureCube::GetSurfaceDepth()

UAREnvironmentCaptureProbeTexture::GetSurfaceDepth()

UTextureRenderTargetCube::GetSurfaceDepth()

UTextureRenderTargetVolume::GetSurfaceDepth()

UTextureRenderTarget2DArray::GetSurfaceDepth()

UVolumeTexture::GetSurfaceDepth()

UTexture2D::GetSurfaceDepth()

UAREnvironmentCaptureProbeTexture::GetSurfaceDepth()

UTextureRenderTarget2D::GetSurfaceDepth()

UMediaTexture::GetSurfaceDepth()

References

Module

Engine

Header

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

Include

#include "Engine/Texture.h"

Syntax

virtual float GetSurfaceDepth() const

Returns

the depth of the surface represented by the texture.