After a tag is added to an object via the add tag behavior other behaviors still can’t access it by that tag.



  • iPad Model: iPad air 1
    iOS version: 11.3
    hyperPad Version: 1.23
    Description: If you add a tag to an object by using the add tag behavior other behaviors will still not consider it when performing actions on all objects with that tag.
    Steps to reproduce: Use the add tag behavior to add a tag to an object. Then, use another behavior of any type to perform an action with all objects containing that tag. It will not affect the object which you added the tag to.
    Additional info: Below I attached a link to a project demonstrating this. All behaviors are located in the graphic I placed on the center of the screen. In this project I add a tag to an object, then attempt to remove all objects with that tag. Nothing happens.

    Interestingly, the “get objects by tag” behavior still returns an objects ID if you try it with the tag.

    Project: http://bit.ly/2NwWFdK



  • Yeah... This is a weird bug..

    Though, there's a way around this. Every time you want to reference a group of objects with a custom tag, you can use the "get objects by tag" behavior every time and use it in a behavior. If you want to use a tag in a loop, simply set an array with the output of the "get objects by tag" behavior, since the behavior outputs json. You can get the array count and loop through each individual object ID in the array.

    Though there are ways around this, it's very inconvenient and time consuming if we are repeating these behaviors. Besides, it's probably killing performance.


  • Admin

    @t-studios said in After a tag is added to an object via the add tag behavior other behaviors still can’t access it by that tag.:

    ior to add a tag to an object. Then, use another behavior of any type to perform an action with all objects containing that tag. It will not affect the object which you added t

    I believe we've fixed this. However, your example is trying to add the tag to the same tag. No other objects had this tag so it did nothing.


  • Admin

    Fixed in 1.24