Class GltfImport
Loads a glTF's content, converts it to Unity resources and is able to
feed it to an IInstantiator for instantiation.
Uses the powerful Newtonsoft JSON and flexible Root schema class for JSON de-serialization.
Assembly: glTFast.Newtonsoft.dll
Syntax
public class GltfImport : GltfImportBase<Root>
Constructors
GltfImport(IDownloadProvider, IDeferAgent, IMaterialGenerator, ICodeLogger)
Declaration
public GltfImport(IDownloadProvider downloadProvider = null, IDeferAgent deferAgent = null, IMaterialGenerator materialGenerator = null, ICodeLogger logger = null)
Parameters
| Type |
Name |
Description |
| IDownloadProvider |
downloadProvider |
|
| IDeferAgent |
deferAgent |
|
| IMaterialGenerator |
materialGenerator |
|
| ICodeLogger |
logger |
|
Methods
ParseJson(string)
Declaration
protected override RootBase ParseJson(string json)
Parameters
| Type |
Name |
Description |
| string |
json |
|
Returns
| Type |
Description |
| RootBase |
|