Skip to main content

Canvas.SortingType

Enum

Used by Canvas to set how an object is sorted during rendering.

  • 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.

Since Lens Scripting v182

Index

Enumeration Members

Enumeration Members

Depth

Depth: number

Sort based on their position in worldspace.

Since

Lens Scripting Version 182


Hierarchy

Hierarchy: number

Sort based on their position in the hierarchy. This is the default.

Since

Lens Scripting Version 182