Platforms to show: All Mac Windows Linux Cross-Platform

Back to SCNTextMBS class.

SCNTextMBS.alignmentMode as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Determines how individual lines of text are horizontally aligned within the bounds.

For the text to be aligned you first need to set its bounds, otherwise the text is not aligned. The default value is kCAAlignmentNatural.
(Read and Write property)

SCNTextMBS.attributedString as NSAttributedStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The text to be represented.

The text can be string or NSAttributedStringMBS.
(Read and Write property)

SCNTextMBS.chamferProfile as NSBezierPathMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Describes the profile used to when "chamferRadius" is not nil.

When "chamferProfile" is nil we fallback on a path representing a quadrant.
The profile should be a 2D curve beginning at (0,1) and ending at (1,0). The "flatness" property is also used to flatten this path. The default value is nil.
(Read and Write property)

SCNTextMBS.chamferRadius as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The chamfer radius. Animatable.

Values are clamped to the range [0, extrusionDepth / 2]. The actual chamfer radius might be different to the one here specified: large values are clipped to a per-glyph max value. The default value is 0.
(Read and Write property)

SCNTextMBS.chamferSegmentCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The number of chamfer subdivisions. Animatable.

If the value is less than 1, the behavior is undefined. The default value is 10.
(Read and Write property)

SCNTextMBS.containerFrame as CGRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
A container within which the text may be wrapped or truncated.

The text will start at the top-left corner of the rect. You need to set this property for text truncation or alignment to work. Getting this property when it has never been set returns CGRectMBS with all values zero.
(Read and Write property)

SCNTextMBS.extrusionDepth as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The extrusion depth. Animatable.

If the value is 0, we get a mono-sided, 2D version of the text.
(Read and Write property)

SCNTextMBS.flatness as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Specifies the accuracy (or smoothness) with which fonts are rendered.

Smaller numbers give smoother curves at the expense of more computation and heavier geometries in terms of vertices. The default value is 0.6, which yields smooth curves.
(Read and Write property)

SCNTextMBS.font as NSFontMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The font used to represent the text.

The font property is only used when the string property is not an NSAttributedString. Defaults to the system font (12 point).
(Read and Write property)

SCNTextMBS.text as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The text to be represented.

The text can be string or NSAttributedStringMBS.
(Read and Write property)

See also:

SCNTextMBS.textSize as CGSizeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the bounding box size the receiver occupies.

(Read only property)

SCNTextMBS.truncationMode as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Describes how the text is truncated to fit within the bounds.

For the text to be truncated you first need to set its bounds, otherwise the text is not truncated. The default value is kCATruncationNone.
(Read and Write property)

SCNTextMBS.Wrapped as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Determines whether the text is wrapped to fit within the bounds.

For the text to be wrapped you first need to set its bounds, otherwise the text is not wrapped. The default value is false.
(Read and Write property)

The items on this page are in the following plugins: MBS Mac64bit Plugin.


The biggest plugin in space...