Once in playmode, all agents (FlowScriptController) create an instance of the graph being used. As such, in playmode, each graph has it’s own instance of blackboard variables as well and thus changing the variable value in one of the instanced prefabs of your character will naturally not change the variable value on all other instances but rather only to that instance.
So regarding testing and finding the correct speed value in your example, it can only be done so in one instance at a time in playmode and as soon as the correct value is found and exit playmode, the change the characters prefab speed variable to that desired speed value. The next time you enter playmode and an instance of that prefab is made, all instances will share the same speed variable value initially.
Join us on Discord: https://discord.gg/97q2Rjh
Login
Register
By registering on this website you agree to our Privacy Policy.