SCNScene(AssimpImport) Category Reference
Declared in | SCNScene+AssimpImport.h SCNScene+AssimpImport.m |
---|
Loading scenes using assimp
+ allowedFileExtensions
Returns the array of file extensions for all the supported formats.
+ (NSArray<NSString*> *)allowedFileExtensions
Return Value
The array of supported file extensions
Discussion
Returns the array of file extensions for all the supported formats.
Declared In
SCNScene+AssimpImport.h
+ canImportFileExtension:
Returns a Boolean value that indicates whether the SCNAssimpScene class can read asset data from files with the specified extension.
+ (BOOL)canImportFileExtension:(NSString *)extension
Parameters
extension |
The filename extension identifying an asset file format. |
---|
Return Value
YES if the SCNAssimpScene class can read asset data from files with the specified extension; otherwise, NO.
Discussion
Returns a Boolean value that indicates whether the SCNAssimpScene class can read asset data from files with the specified extension.
Declared In
SCNScene+AssimpImport.h
+ assimpSceneNamed:postProcessFlags:
Loads a scene from a file with the specified name in the app’s main bundle.
+ (SCNAssimpScene *)assimpSceneNamed:(NSString *)name postProcessFlags:(AssimpKitPostProcessSteps)postProcessFlags
Parameters
name |
The name of a scene file in the app bundle’s resources directory. |
---|---|
postProcessFlags |
The flags for all possible post processing steps. |
Return Value
A new scene object, or nil if no scene could be loaded.
Discussion
Loads a scene from a file with the specified name in the app’s main bundle.
Declared In
SCNScene+AssimpImport.h
+ assimpSceneWithURL:postProcessFlags:
Loads a scene from the specified NSString URL.
+ (SCNAssimpScene *)assimpSceneWithURL:(NSURL *)url postProcessFlags:(AssimpKitPostProcessSteps)postProcessFlags
Parameters
url |
The NSString URL to the scene file to load. |
---|---|
postProcessFlags |
The flags for all possible post processing steps. |
Return Value
A new scene object, or nil if no scene could be loaded.
Discussion
Loads a scene from the specified NSString URL.
Declared In
SCNScene+AssimpImport.h