Skip to content

Importing STL files from the "StreamingAssets" fails #28

Description

@ElixPrice

I'm encountering an issue when trying to import STL files using pb_Stl from the "StreamingAssets" folder after building the project. Specifically, while I can import the STL file during runtime when it is placed under the Assets folder or any custom path (like Assets/customPath), I am unable to import it when the file is located in the "StreamingAssets" folder - which restrics me from building the project.

This issue only occurs after building the project, and the file cannot be imported from the "StreamingAssets" folder at that point. However, everything works fine when running without a build.

Steps to reproduce:

Unity Version 2021.3.45f1

  1. Place an STL file in the "Assets/StreamingAssets" folder.
  2. Attempt to import the STL file at runtime using pb_Stl.
  3. Notice that the import fails.

Expected behavior: STL files in the "StreamingAssets" folder should be successfully imported.

Questions:

  • How can I resolve this issue?
  • Is there an alternative way to structure the project or handle file imports for build purposes?

Thank you in advance for any suggestions or solutions!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions