Set Color Map Curve
Updated: Apr 15, 2026
Sets the color curve used to convert grayscale passthrough to color on a Passthrough Layer Base component. This function only has a visible effect when the color map type is set to Grayscale To Color.
Before calling Set Color Map Curve, complete the following steps:
- Enable the color map by calling Enable Color Map with the value set to
true. - Set the color map type to Grayscale To Color by calling Set Color Map Type with the value
GrayscaleToColor. - Enable the color map curve by calling Enable Color Map Curve with the value set to
true (call this directly on the Passthrough Layer Base component).
- Target: Passthrough Layer Base object reference
- In Color Map Curve: A
UCurveLinearColor asset that defines the grayscale-to-color gradient mapping. Create one in the Content Browser under Miscellaneous > Curve > CurveLinearColor.
Note: Calling Set Color Map Curve regenerates the internal color array and triggers a layer update. Avoid calling this function every frame.