LibGDX - Does modifying a Group affects children?

I wonder if there is a way to affect `Actors` children when their parent `Group` is modified ? Like they were *attached* to him. By modifying I mean doing some conventional actions like translation, rotation, scale ... I know this is possible for the parent alpha to affect children's alpha via the `draw()` method, but what about the other attributes ? For example if I add a `TranslationAction` to my `Group` I want it to also affect children. So did I miss something like this in the **Scene2d** API or do I really have to code it by my own (not hard, but just want to avoid if possible) ? If it's not possible with the actual API then what is the purpose of using a `Group` ?
I guess you need to override the addAction method for your example. As far as i know there isnt a feature to add an action to all of your group. Maybe this is a good mention to add to the system?!

以上就是LibGDX - Does modifying a Group affects children?的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准