FixedWidthViewSizer

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

See also

Constructors

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

Functions

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