Custom C# Getter / Setter
private int _score;
[UProperty(PropertyFlags.BlueprintReadOnly)]
public int Score
{
get { return _score; }
set
{
_score = value;
if (_score == 10)
{
Win();
}
}
}Last updated