Reply To: How to distinguish multiple graphOwner in one Gameobject

NodeCanvas Forums Support How to distinguish multiple graphOwner in one Gameobject Reply To: How to distinguish multiple graphOwner in one Gameobject

#9489
Gavalakis
Keymaster

Hello,

Sorry for the late reply.

Generaly speaking, in Unity, components can’t be dinstict between one another of the same type. Thats also the reason why Unity doesn’t allow the same type of component in most native types (such as Animator, Animation, Rigidbody, Collider etc).

I could go by this paradigm and disallow having multiples of the same GraphOwner types (2 FSMOwners or 2 BTOwners), but I thought of not adding this restriction, since practicaly having the same GraphOwner type on the same GameObject works, although it’s not possible to dinsict between one another.

Events being received by all GraphOwners on the same GameObject, I consider it to be quite convenient and allow for an agent centric workflow and setup, rather than a Graph centric one.

So, if you dont want events send to an agent to be received by some GraphOwner, then yes, those GraphOwners would need to be attached on seperate GameObjects.

Let me know if you have any more questions or need more clarification on the matter.

Thanks! 🙂

Join us on Discord: https://discord.gg/97q2Rjh