Instance Property

transforms

The array of transforms that was used to create a compound shape.

Declaration

@property(readonly, nonatomic) NSArray<NSValue *> *transforms;

Discussion

You provide this array of NSValue objects, each containing an SCNMatrix4 value, in the shapeWithShapes:transforms: method to create a compound shape. Use this array along with the sourceObject property to recover the information that was used to create the shape.

If the shape was created with the shapeWithGeometry:options: or shapeWithNode:options: method, this property’s value is nil.

See Also

Getting Information About a Shape

sourceObject

The object that was used to create the shape.

options

The options dictionary that was used to create the shape.