RROutfit

Objective-C

@interface RROutfit : NSObject

Swift

class RROutfit : NSObject

This class represents an outfit container. An outfit container includes a list of garments as well as some metadata about the outfit.

See

RRGarment.
  • Create an RROutfit instance by loading an outfit file

    Declaration

    Objective-C

    + (RROutfit *_Nullable)outfitFromFile:(NSString *_Nonnull)path;

    Swift

    /*not inherited*/ init?(fromFile path: String)

    Parameters

    path

    The file path of the outfit file

    Return Value

    The loaded RROutfit instance

  • The array of garments contained in the outfit. The order of garments represents the layering of the garments. The first garment is the first garment to put on the avatar body and the last garment is put on as the last one.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) NSArray<RRGarment *> *_Nonnull garments;

    Swift

    var garments: [RRGarment] { get }