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; }
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; }