Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UTexture
Description
Returns true when the texture's SRGB state is determined at runtime rather than being authored on the asset (e.g. UMediaTexture, which adopts the currently playing sample's sRGB flag). When true, material sampler type validation should accept Color and LinearColor variants interchangeably, since the asset's serialized SRGB may not reflect what will be sampled at runtime.
| Name | HasRuntimeVariableSRGB |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/Texture.h |
| Include Path | #include "Engine/Texture.h" |
virtual bool HasRuntimeVariableSRGB() const