Skip to main content

CapitalizationOverride

Enum

Changes the capitalization of the text component.

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

Changes the capitalization of the text component. Useful when using dynamic texts.

Index

Enumeration Members

Example

// @input Component.Text textComponent
script.textComponent.capitalizationOverride = CapitalizationOverride.AllUpper;

Enumeration Members

AllLower

AllLower: number

Sets the capitalization of the displayed text to lowercase.

Since

Lens Scripting Version 385


AllUpper

AllUpper: number

Sets the capitalization of the displayed text to uppercase.

Since

Lens Scripting Version 385


None

None: number

Display the capitalization of the displayed text as provided.

Since

Lens Scripting Version 385