I’ve noticed you can turn off “Event” and “Variable” logging in graph “Prefs” dropdown menu. This disables most of the logging.
However some of the dynamic variables I’m using are still triggering these: (Blackboard Log): Variable with name '_smoothVelocity' already exists in blackboard 'Graph'. Returning existing instead of new.
In a few Tasks I am declaring dynamic variables like this: public BBParameter smoothVelocity = new BBParameter { name = "_smoothVelocity" };
The logging happened when I tried to write to the dynamic variable when it has been promoted by another task: smoothVelocity.value = Vector3.zero;
My question is: is it possible to disable this type of logging somewhere? (I’ve already unchecked “Log events info” and “Log variables info”)
Or is this an intentional warning because I did something wrong? If not I plan to just disable it in the source file.
You are not really doing anything wrong. This specific log is still being logged because technically it is a blackboard related log. Basically, disabling the option “Log Varibles Info” is looking at the “tag” of the log and filters out all logs with the “VARIABLE” tag. On the other hand this specific log has the “BLACKBOARD” tag because it comes from the blackboard code. If you want to quickly disable all “BLACKBOARD” logs as well, you can simply open up GraphConsole.cs file and in the OnLogMessageReceived method, please add these lines of code above or bellow the other similar lines found there for “EVENT” and “VARIABLE”
I will see into adding an option for Blackboard tagged logs as well in the next version if this is something that is bothering you 🙂
Let me know if that works for you.
Thanks!
(PS: BBParameter is an abstract class. How are you instantiating one? Or was this only for the shake of example? 🙂 )