Skip to main content

HorizontalAlignment

Enum

Used by the horizontalAlignment 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 horizontalAlignment property in MeshVisual. When a ScreenTransform is attached to the same SceneObject, this determines how the mesh will be positioned horizontally.

Index

Enumeration Members

Example

// @input Component.MeshVisual meshVisual
script.meshVisual.horizontalAlignment = HorizontalAlignment.Left;

Enumeration Members

Center

Center: number

The mesh will be centered.


Left

Left: number

The mesh will be aligned to the left side.


Right: number

The mesh will be aligned to the right side.