Compositor
Since version 1.9.5 Gameface supports a new CSS property: coh-composition-id
. This property allows for completely detaching the element from the default rendering flow and letting the user handle the drawing of the element. This feature is intended for achieving “real 3D” effects with the UI by taking the transformation data that the SDK provides and composing elements at any world position and orientation, not just on the UI plane.
In order to allow 3D transforms on the composited element, you must specify the
transform-style: preserve-3d;
style on the element’s parent. If that style is not specified, the transform will be flattened to a 2D plane and you won’t get the desired effect.