Reply To: [Bug] Null BBParameter

NodeCanvas Forums Support [Bug] Null BBParameter Reply To: [Bug] Null BBParameter

#17543
Gavalakis
Keymaster

Hello again. There is actually a serialization-related attribute on BBParameters to auto-create an instace if null, but this is only checked/used in serialization rather than deserialization for performance reasons (since we want deserialization to be as fast as possible). An instance will be created though when unity serialize the graph regardless of whether or not the graph UI open. I will see if I can make use of the attribute in deserialization as well if it does not impact performance a lot. With that said, you could also initialize your BBParameters in your tasks to make sure they are not null like so for example BBParameter<float> number = 0f

Join us on Discord: https://discord.gg/97q2Rjh