I want to add a SCNPlane around the SCNText in ARSCNView. therefore I need the textSize of a text which I have created with SCNText like:
as you can see from the image, there is an error which indicate that the
SCNText has no member 'textSize'
but I can see the related documentation in apple website for both SCNText and textSize.
does anybody know what is the problem and how can I access the textSize property?
I'm using xCode 10.0 beta 4, swift 4.2, macOS Mojave 10.14 Beta.

The
textSizeproperty is only available onmacOS 10.8+which is why you can't see it (assuming of course you are building for IOS). By this, I mean that if you are building a MacOS app then the variable is accessible. Whereas if you are building for IOS it is not.If you want to get the size of your
SCNTextyou can use it'sboundingBoxproperty to get its width and height for example e.g:If you just want to set the fontSize you can do something like so:
Remembering of course that when you specify the font size in
ARKit, this in meters.Hope it helps...