I have a public var in my Agent class: Slot queueSlot (agent seeks this slot and marks it as “occupied”).
If I create a new var in a Blackboard via “Add variable”, I can select it.
But if I edit some var via Bind button, it can’t see this Slot var. On the 2nd screenshot: it sees “timer” and “currentTimer” vars, but can’t see “queueSlot”
When you hit the “Add Variable” button you can add any type, because the type of the variable to be added is yet to be determined (thus it can be any type).
But if you try to bind an existing variable, it can only bind the properties and fields of it’s existing type. In your example image, the type of the variable is “float”. Thus only float properties and fields will show up as possible to be bound since a variable type can not be changed like this for safety since that would create problems in tasks where it is already used.
The type of the variable can be also be seen in the popup menu by the way.
But of course, you can simply add a new bound variable of any type like you said, through the “Add Variable” button 🙂
Please let me know if that clarifies what is happening.
I could add such an option, but I think it could create problems if done accidentaly, if the variable is already in use by some node or task for example, which expects the variable to be of a certain type. By having the variable locked in a certain type, such accidents can be avoided since the only way is for the variable to be deleted, and which is harder to do accidentaly.
In any case, is your suggestion regarding working speed so that you dont have to delete an existing variable and adding another one in case you want to change a variable’s type?
Thanks.
Join us on Discord: https://discord.gg/97q2Rjh
Author
Posts
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
Login
Register
By registering on this website you agree to our Privacy Policy.