The navigation texture "wraps" a UTexture2D and allow the access of its raw data from the cpu.
More...
#include <NavigationTexture.h>
|
| virtual void | BeginDestroy () override |
| | Overriden UObject::BeginDestroy().
|
| virtual bool | IsReadyForFinishDestroy () override |
| | Overriden UObject::IsReadyForFinishDestroy().
|
| bool | Lookup (const FVector2D &UV, FColor &OutColor) |
| | Returns the texel color at the given UV coordinates.
|
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.
◆ 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] | UV | Input UV coordinates (each coordinate in [0, 1]). |
| [out] | OutColor | The 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()
| 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
-
| Outer | The outer of the new instance |
| InTexture | The 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:
- StereoPanoramicPlayer/Public/NavigationTexture.h