UE5 360 Stereo Panoramic Player 1.2.5
Create interactive Media Players and Virtual Tours for mono and stereo 360 panoramic images and videos in Unreal Engine 5.
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
UNavigationTexture Class Reference

The navigation texture "wraps" a UTexture2D and allow the access of its raw data from the cpu. More...

#include <NavigationTexture.h>

Inheritance diagram for UNavigationTexture:

Public Member Functions

virtual void BeginDestroy () override
 Overriden UObject::BeginDestroy(). More...
 
virtual bool IsReadyForFinishDestroy () override
 Overriden UObject::IsReadyForFinishDestroy(). More...
 
bool Lookup (const FVector2D &UV, FColor &OutColor)
 Returns the texel color at the given UV coordinates. More...
 

Static Public Member Functions

static UNavigationTextureMakeFromTexture (UObject *Outer, UTexture2D *InTexture)
 Create an UNavigationTexture instance from a UTexture2D (the Compression Settings of your texture must be set to 'UserInterface2D (RGBA)'!). More...
 

Detailed Description

The navigation texture "wraps" a UTexture2D and allow the access of its raw data from the cpu.

A navigation texture is used by the panoramic director to navigate between stages.

See also
UPanoramicStage::NavigationLookupTexture and FPanoramicStageNavigation::LookupColor for additional details.

Member Function Documentation

◆ BeginDestroy()

virtual void UNavigationTexture::BeginDestroy ( )
overridevirtual

Overriden UObject::BeginDestroy().

◆ IsReadyForFinishDestroy()

virtual bool UNavigationTexture::IsReadyForFinishDestroy ( )
overridevirtual

Overriden UObject::IsReadyForFinishDestroy().

◆ Lookup()

bool UNavigationTexture::Lookup ( const FVector2D &  UV,
FColor &  OutColor 
)

Returns the texel color at the given UV coordinates.

Parameters
[in]UVInput UV coordinates (each coordinate in [0, 1]).
[out]OutColorThe returned texel color at the provided UV coordinates. Valid only if the method returns true.
Returns
true if the call succeeded and OutColor is valid, false otherwise.

◆ MakeFromTexture()

static UNavigationTexture * UNavigationTexture::MakeFromTexture ( UObject *  Outer,
UTexture2D *  InTexture 
)
static

Create an UNavigationTexture instance from a UTexture2D (the Compression Settings of your texture must be set to 'UserInterface2D (RGBA)'!).

Parameters
OuterThe outer of the new instance
InTextureThe input texture
Returns
the new instance if the texture is not nullptr and has a valid pixel format, nullptr otherwise.

The documentation for this class was generated from the following file: