Transform
What it does
- Allows manual transformation to be applied to child
UIComponent
Parameters
child
- The child
UIComponent
to be transformed.
- The child
transformations
(Optional)- The transformations to apply. Currently, available transformations are
scale
andtranslation
. - Default: null
- The transformations to apply. Currently, available transformations are
Size Behaviour
- Minimum
Example
public class TestTransform implements UIComponent {
@Override
public UIComponent build(Layout layout) {
return new Transform(
new TestTexture(),
new ScaleTransform(new Vector3f(2, 2, 1)),
new TranslationTransform(new Vector3f(-93, -88, 0))
);
}
}