So I have some custom actions which require both a Rigidbody and an Animator, so how should I go about expressing this in my action. As the AgentType normally infers the type shown on the UI I am not sure if I should be having multiple instances of this attribute, or if I should be using RequireComponent for it, as I do not know if NodeCanvas honours the RequireComponent attribute.
Thinking about it I may also be able to get this functionality by using the GetFromAgent attribute on the components I need, as this will stop people using the action unless all those components are met right?
You are very correct about the GetFromAgent, but still at the moment it’s not really that a good solution (user friendly-wise) because even though the initialization will fail, there is no relevant UI informing about the fact that this component is required.
I could show up such a notification if a GetFromAgent is used.
There is no other way right now to enforce more components on the agent.