Hello, I am trying to set up a super unit where if a Vector3 input is routed into the flow graph then it is used, if it isn't provided (nothing plugged into that value input) then use something else (in this case the 'self' transform.position). I attempted this using null coalesce, though it throws an error saying nothing is plugged into the "Position" input. If nothing is plugged in, wouldn't it spit out a null?
I was hoping to have highly reusable super units with minimal inputs. I often use 'self' values, though may want to use the same graphs with other inputs. I can solve this problem by including a bool input and a select unit, though in that case I would need an additional bool for every input that I want to behave in this way, which is sort of cumbersome. That is what I did in the super unit "Random Point Around Position" seen in the first image below.
Is there a way to accomplish this if null coalesce won't suffice?
Thank you, and thanks in general for Bolt. It is so professional (dare I say... beautiful) and has made creating complex systems and behaviors relatively painless---often downright fun. It is so easy to restructure my logic and so much less stressful trying to plan out class architecture. I spend singificantly fewer hours debugging thanks to you guys. I am not afraid of coding, in fact, I really enjoy it, which is why I was so unsatisfied with other visual scripting and AI systems. I can do nearly anything with Bolt's native interface, and when I feel it would be easier or it fancies me, I write a class or new method and route it into my graphs without having to move mountains. You peoples rock.
Anyway, here are captures of the graphs.
Customer support service by UserEcho