Page MenuHomeFeedback Tracker

ParametricMaterialInstanceComponent - SetEmissiveColor (not working with green)
Closed, ResolvedPublic

Description

There is a Problem with "SetEmissiveColor"

[Attribute("255 0 255 0", UIWidgets.ColorPicker, "Test Color")];
private ref Color m_Color;
    
m_EmissiveMaterial = ParametricMaterialInstanceComponent.Cast(owner.FindComponent(ParametricMaterialInstanceComponent));        
if(m_EmissiveMaterial)            
    m_EmissiveMaterial.SetEmissiveColor(m_Color.PackToInt());

This will work, but not with "Green" Color like RGB(0, 255,0)

i Also tested:

int newColor = ARGB(255, 0, 255, 0);
m_EmissiveMaterial.SetEmissiveColor(newColor);

If i use a Red color it will work, but not with green.

Details

Severity
Tweak
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce

See Code above.

Event Timeline

R34P3R created this task.Dec 21 2023, 10:45 PM

Can be closed.. the EmessiveColor need to be Set as "White" in the Entitiy, otherweise you cant use all colors in Script.

Geez closed this task as Resolved.Jan 2 2024, 2:00 PM
Geez claimed this task.