How to rotate PlanePanel? or any volume based panel

https://www.babylonjs-playground.com/#HJZBRG#56

As you can see ( zoom out ) when i attempt to rotate the parent transform node of the panel, it collapses in on itself and does not create rows.

How can you rotate a volume based panel using its linked transform node?

It seems like both columns dont rotate into the same direction and collapse in.

Pretty good question indeed, Adding @Evgeni_Popov to the thread as he starts to master the GUI :slight_smile:

1 Like

Some of the settings of VolumeBasedPanel (which PlanePanel subclasses) are postponed to the next tick of the js engine. So you need to postpone your own changes after those settings are performed.

The easiest to do that is to use Tools.SetImmediate:

https://www.babylonjs-playground.com/#HJZBRG#99

2 Likes

@Evgeni_Popov You Rock !!!