This is a good suggestion, but the problem to making this in a way to support all types (like BBParameter does), is actually the fact that Unity can’t serialize generics in the first place.
So one solution to make this work, would be to allow such linked parameters (BBParameters) only in a special MonoBehaviour derived base class, that also handles the serialization and deserialization (with ISerializationCallbackReceiver), as well as proper initialization of those parameters in Awake and Validate.
I presume that the goal here is to be able to use some kind of a special variable in the monobehaviour, that shows up in the inspector so that it can also be linked to a variable of provided blackboard?
May I also ask how you ended implementing your version of this?
Cheers!
Join us on Discord: https://discord.gg/97q2Rjh
Login
Register
By registering on this website you agree to our Privacy Policy.