- changed status to resolved
ProgressBarAttributeDrawer, "CustomValueStringMember" attribute, does not pass current value
Issue #363
resolved
It would be great if "CustomValueStringMember" worked the same way as "ColorMember".
Please see comments in code:
[ProgressBar(0, 100, ColorMember = "GetHealthBarColor", CustomValueStringMember="GetHealthBarValueString")]
public float HealthBar = 50;
private Color GetHealthBarColor(float value) //passes in current value
{
}
private Color GetHealthBarValueString(float value) //error, expects parameterless method
{
}
- Latest
- Beta
- No
- Win 10
Comments (1)
-
- Log in to comment
It would really make sense if you could do something like that. And now you can!