I have a Player gameobject blackboard variable on my global blackboard that I’d like to convert into a transform variable without deleting it, making a new variable, calling it Player and reconnecting all of the connections, rather just have the variable type swapped directly from gameobject to transform. Is this possible?
GameObject and Transform are not really interchangeable other than the fact that both types derive the UnityEngine.GameObject type, and as such a reference can not be kept, unless I make it a special case where I check the types being changes (old and new) and depending on that do a GetComponent on the old reference to fetch the new reference (in this case Transform).
I would prefer to avoid this special case to be honest. Do you really find it that much required?
I was imagining that it would be tracking the type, in the same way as if I deleted the bbvar and the reference would go red to denote it wasn’t connected. If the types that are changed are unrelated and connected in a way that didn’t make any sense, I assumed the connection would show an exclaim (!) on the port, as it does if I change the overload method on a node that already has connections. Is it difficult for the graph to be able to just switch the type on the reference to the bbvar if it’s changed?