UIPostTransform
Post-processing transform component exposed by the Java runtime.
Create in the Editor
- Ensure there is a
UIControllerin the scene. - Create a GameObject and add
UIRect. - Add the
UIPostTransformcomponent.
How to Use
- Get the component with
myObject.findComponent(UIPostTransform.class). - Read or write the component properties to control behavior.
- Test input or layout in Play mode.
Java Example
SpatialObject myObject = /* your object */;
UIPostTransform comp = myObject.findComponent(UIPostTransform.class);
if (comp != null) {
// set the position value:
comp.position = new Vector2(1, 1);
// read the position value:
Vector2 positionValue = comp.position;
// set the pivot value:
comp.pivot = new Vector2(1, 1);
// read the pivot value:
Vector2 pivotValue = comp.pivot;
// set the scale value:
comp.scale = new Vector2(1, 1);
// read the scale value:
Vector2 scaleValue = comp.scale;
// set the rotation value:
comp.rotation = new Vector3(1, 1, 1);
// read the rotation value:
Vector3 rotationValue = comp.rotation;
// set the fOV value:
comp.fOV = 1f;
// read the fOV value:
float fOVValue = comp.fOV;
}