What if

Just for my information (and because I can’t just find a clear answer in the documentation), what happens if we try to:

  • (CinemachineTargetGroup) AddMember that already exists?
  • (CinemachineTargetGroup) RemoveMember that doesn’t exist?
    Should we prevent this to happen, using a test like if(targetGroup.FindMember(CurrentTarget.transform) == -1) or is it useless?
    Thanks!
    PS: The title is a tribute to Randall Munroe, as you may suspect :wink:

Nothing will happen, the TargetGroup will detect that it’s already in the group and exit quietly.

Again, nothing will happen. Cinemachine will shrug it’s shoulders and exit the RemoveMember function quietly.

Cinemachine has it’s own checking, so there’s no need to worry about it.

These questions are far less absurd than the ones sent to Randall Munroe. :stuck_out_tongue:

Thank you for sharing some drops of wisdom! :mage:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms