Skip to main content

VerticalAlignment

Enum

Used by the verticalAlignment property in MeshVisual.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

Used by the verticalAlignment property in MeshVisual. When a ScreenTransform is attached to the same SceneObject, this determines how the mesh will be positioned vertically.

Index

Enumeration Members

Example

// @input Component.MeshVisual meshVisual
script.meshVisual.verticalAlignment = VerticalAlignment.Top;

Enumeration Members

Bottom

Bottom: number

The mesh will be aligned to the bottom side.


Center

Center: number

The mesh will be centered.


Top

Top: number

The mesh will be aligned to the top side.