public GLTFSceneImporter(string rootPath, Stream stream, Transform parent = null, bool addColliders = false)
 {
     _gltfUrl           = rootPath;
     _gltfDirectoryPath = AbsoluteFilePath(rootPath);
     _gltfStream        = new GLBStream {
         Stream = stream, StartPosition = stream.Position
     };
     _sceneParent  = parent;
     _asyncAction  = new AsyncAction();
     _loadType     = LoadType.Stream;
     _addColliders = addColliders;
 }
Exemplo n.º 2
0
 public GLTFSceneImporter(string rootPath, Stream stream, Transform parent = null, ColliderType DefaultCollider = ColliderType.None)
 {
     _gltfUrl           = rootPath;
     _gltfDirectoryPath = AbsoluteFilePath(rootPath);
     _gltfStream        = new GLBStream {
         Stream = stream, StartPosition = stream.Position
     };
     _sceneParent         = parent;
     _asyncAction         = new AsyncAction();
     _loadType            = LoadType.Stream;
     _defaultColliderType = DefaultCollider;
 }