MMKModelStyle
@interface MMKModelStyle : NSObject |
The style of the model.
Summary
Class methods
+ (nonnull MMKModelStyle *)modelStyleWithScale:( float)scale |
Instance methods
- (nonnull MMKModelStyle *)init; |
Properties
@property (nonatomic, assign, unsafe_unretained, readwrite) float scale; |
@property (nonatomic, assign, unsafe_unretained, readwrite) |
@property (nonatomic, assign, unsafe_unretained, readwrite) |
@property (nonatomic, copy, readwrite, nullable) NSString *variantName; |
Class methods
modelStyleWithScale:unitType:renderMode:variantName:
+ (nonnull MMKModelStyle *)modelStyleWithScale:( float)scale |
Instance methods
init
- (nonnull MMKModelStyle *)init; |
Properties
scale
@property (nonatomic, assign, unsafe_unretained, readwrite) float scale; |
Scale the model by this value.
unitType
@property (nonatomic, assign, unsafe_unretained, readwrite) |
Unit type of the model.
renderMode
@property (nonatomic, assign, unsafe_unretained, readwrite) |
Defines should it be rendered with buildings from ground layer.
variantName
@property (nonatomic, copy, readwrite, nullable) NSString *variantName; |
Name of variant to render model with. See KHR_materials_variants gltf extension. This works only for glTF models.
Optional field, can be nil.