• Sceneform SDK for Android was open sourced and archived (github.com/google-ar/sceneform-android-sdk) with version 1.16.0.
  • This site (developers.google.com/sceneform) serves as the documentation archive for the previous version, Sceneform SDK for Android 1.15.0.
  • Do not use version 1.17.0 of the Sceneform Maven artifacts.
  • The 1.17.1 Maven artifacts can be used. Other than the version, however, the 1.17.1 artifacts are identical to the 1.15.0 artifacts.

ViewSizer

public interface ViewSizer
Known Indirect Subclasses

Interface for controlling the size of a ViewRenderable in the Scene. The final size that the view is displayed at will be the size from this ViewSizer scaled by the getWorldScale() of the Node that the ViewRenderable is attached to.

Public Methods

abstract Vector3
getSize(View view)
Calculates the desired size of the view in the Scene.

Public Methods

public abstract Vector3 getSize (View view)

Calculates the desired size of the view in the Scene. x represents the width, and y represents the height.

Parameters
view the view to calculate the size of
Returns
  • a new vector that represents the view's size in the Scene