The [AgentType] attribute (which was only required for interface types) is indeed removed in v2.7. That is because it is now possible to use the generic version of tasks for specifying an interface type too.
So for example, this task:
1
2
3
4
5
6
[AgentType(typeof(IMyInterface))]
publicclassMyTask:ActionTask{
}
Now becomes:
1
2
3
4
5
publicclassMyTask:ActionTask<IMyInterface>{
}
The main benefit is that the ‘.agent’ property will now already be an IMyInterface type and no longer requires casting.
Let me know if that works for you.
Thanks.
Join us on Discord: https://discord.gg/97q2Rjh
Login
Register
By registering on this website you agree to our Privacy Policy.