Hello again and thanks for the explanation.
I will take a look at this idea and see if it can be implemented somehow.
Meanwhile, an alternative way of working around this, could be to create a script, then data bind the variables to this script properties. In turn the script properties will get/set global variables. So it’s like using this script as a ‘bridge’ between local and global blackboard.
Lobal Blackboard -> Script -> Global Blackboard
For example:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
publicclassPropertyBinding:MonoBehaviour{
privateGlobalBlackboardbb{
get{returnGlobalBlackboard.Find("Global");}
}
publicfloatmyFloat{
get{returnbb.GetValue<float>("myFloat");}
set{bb.SetValue("myFloat",value);}
}
publicstringmyString{
get{returnbb.GetValue<string>("myString");}
set{bb.SetValue("myString",value);}
}
}
Of course it’s not the same as your request since it requires more work, so I will take a look at the possibility of your original request.
Thanks.
Join us on Discord: https://discord.gg/97q2Rjh
Login
Register
By registering on this website you agree to our Privacy Policy.