RRSceneLayout

Objective-C

@interface RRSceneLayout : RRAbstractTryOnLayout

Swift

class RRSceneLayout : RRAbstractTryOnLayout

A layout used to render scenes. If the parallax effect is enabled the layout reads the devices IMU and adjusts the viewpoint to the device’s orientation. Switching of garments and avatar is similar to e.g. the RRUserPhotoLayout.

  • Initializes a new RRSceneLayout;

    Declaration

    Objective-C

    - (instancetype _Nullable)init;

    Swift

    init?()

    Return Value

    An instance of RRSceneLayout on success, nil otherwise.

  • Enable/disable the IMU based parallax effect. The Default value is YES.

    Declaration

    Objective-C

    @property (nonatomic) BOOL parallaxEnabled;

    Swift

    var parallaxEnabled: Bool { get set }