UKismetSystemLibrary::SetLinearColorPropertyByName
#include "Kismet/KismetSystemLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintCallable
Description
Sets a named const FLinearColor& property on Object to Value via reflection. Internal helper the Blueprint compiler generates for dynamic property-set nodes; not intended to be called directly.
Caveats & Gotchas
- • Marked BlueprintInternalUseOnly, so it never appears in the Blueprint node picker — the compiler emits a call to it automatically when a Blueprint node writes to this property type by name; you can't drag it onto a graph directly.
- • Verifies the found FStructProperty's Struct pointer matches TBaseStructure<FLinearColor>::Get(), so it won't accidentally write into a same-named FColor (sRGB, byte-packed) property — the two are different structs despite representing similar data.
Signature
static ENGINE_API void SetLinearColorPropertyByName(UObject* Object, FName PropertyName, const FLinearColor& Value) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Object | UObject* | Object instance whose property will be modified. | — |
| PropertyName | FName | Name of the target property, resolved via FindFProperty against Object's class. | — |
| Value | const FLinearColor& | Value to assign to the property. | — |
Return Type
void Example
Set a linear color property by name from C++ C++
UKismetSystemLibrary::SetLinearColorPropertyByName(TargetActor, FName("TintColor"), FLinearColor(1.f, 0.5f, 0.f)); Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?