DpToMetersViewSizer

Controls the size of a ViewRenderable in a com.google.ar.sceneform.Scene by defining how many dp (density-independent pixels) there are per meter. This is recommended when using an android layout that is built using dp.

See also

Constructors

Link copied to clipboard
constructor(dpPerMeters: Int)
Constructor for creating a sizer for controlling the size of a ViewRenderable by defining how many dp there are per meter.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun getSize(view: View): Vector3
Calculates the desired size of the view in the com.google.ar.sceneform.