FixedHeightViewSizer

Controls the size of a ViewRenderable in a com.google.ar.sceneform.Scene by defining how tall it should be in meters. The width will change to match the aspect ratio of the view.

See also

Constructors

Link copied to clipboard
constructor(heightMeters: Float)
Constructor for creating a sizer for controlling the size of a ViewRenderable by defining a fixed height.

Functions

Link copied to clipboard
open fun getHeight(): Float
Returns the height in meters used for controlling the size of a ViewRenderable.
Link copied to clipboard
open fun getSize(view: View): Vector3
Calculates the desired size of the view in the com.google.ar.sceneform.