Runtime AttributeManager [bug]

devomage

Member
When trying to set the default Value on a new Attribute an error occurs.
C#:
var attribute = new Opsive.UltimateCharacterController.Traits.Attribute();

attribute.Name = "Mana";
attribute.MinValue = 0;
attribute.MaxValue = 100;

// this causes an error
attribute.Value = 0;

I will set the Value after adding the Attribute~
 
Last edited:
Your attribute needs to be initialized before you are able to set the value:

Code:
attribute.Initialize(gameObject);
 
Top