Forums

OverviewV-Play 1 SupportChange Z-Position of QML Items at run time › Re: Change Z-Position of QML Items at run time

OverviewV-Play 1 SupportChange Z-Position of QML Items at run time › Re: Change Z-Position of QML Items at run time
#4046

Christian
V-Play Team

Hi Christian,
thanks for your request!

There is a reason why changing the z-order is not supported with cocos renderer: in Cocos, changing the z order is a very complex operation and is not supposed to be publicly available. The reason why it’s complex, is that the scene graph is stored as a z-ordered list, which would need to be re-sorted during runtime which is not efficient.

If you provide details what you are trying to achieve, I could point you to other approaches to meet your desired goals. In general, you could add some parent items with different z orders and add the children to the z-order where you would want it to be.

Cheers,
Chris

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support