Language:
Discover
By Skill Level
By Category

UCurveLinearColorAtlas

Choose your OS:

Inheritance Hierarchy

Syntax

class UCurveLinearColorAtlas : public UTexture2D

Remarks

Manages gradient LUT textures for registered actors and assigns them to the corresponding materials on the actor

Variables

Name Description

Public variable

uint32 : 1

 

bHasAnyDirtyTextures

Public variable

uint32 : 1

 

bIsDirty

Public variable

uint32 : 1

 

bShowDebugColorsForNullGradients

Public variable

TArray < UCurveL ...

 

GradientCurves

How many pixels tall is any gradient slot.

Public variable

uint32

 

GradientPixelSize

Size of the lookup textures.

Protected variable

FVector2D

 

SizeXY

Public variable

TArray < FColor ...

 

SrcData

Renders alternate blue/yellow lines for empty gradients. Good for debugging, but turns off optimization for selective updates to gradients.

Public variable

uint32

 

TextureSize

Constructors

Name Description

Public function

UCurveLinearColorAtlas

(
    const FObjectInitializer & ObjectIn...
)

============================================================================= UCurveLinearColorAtlas.cpp

Functions

Name Description

Public function

bool

 

GetCurveIndex

(
    UCurveLinearColor * InCurve,
    int32 & Index
)

Public function

bool

 

GetCurvePosition

(
    UCurveLinearColor * InCurve,
    float& Position
)

Public function

uint32

 

MaxSlotsPerTexture()

How many slots are available per texture.

Public function

void

 

UpdateGradientSlot

(
    UCurveLinearColor * Gradient
)

Immediately render a new material to the specified slot index(SlotIndex must be within this section's range)

Public function

void

 

UpdateTextures()

Re-render all texture groups.

Overridden from UObject

Name Description

Public function Virtual

void

 

PostEditChangeProperty

(
    FPropertyChangedEvent & PropertyCha...
)

Called when a property on this object has been modified externally

Public function Virtual

void

 

PostLoad()

Do any object-specific cleanup required immediately after loading an object, and immediately after any undo/redo.

References

Module

Engine

Header

Runtime/Engine/Classes/Curves/CurveLinearColorAtlas.h