Import at runtime from local file with spaces in the path

Đang mở
#805 8 bình luận 0 reaction 1 người được giao Xem trên GitHub

@robertdorn83 đang làm issue này rồi.

Từ ngày 21/1/2025.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

Unless I'm misunderstanding something or having a moment of stupidity - UnityWebRequestLoader breaks because the relative path is url encoded (so spaces become %20) by GetFileFromUri but then the File.Exists check in LoadStreamAsync fails because it doesn't unencode the spaces

I looked at using FileLoader instead but there's no documentation and it has wildly different behaviour when running in the editor (even in play mode) so I'm not sure if this is the right direction.

  1. Should I be using UnityWebRequestLoader or FileLoader?
  2. Is FileLoader's execution path differences in the editor intentional? Why is it trying to use the AssetDatabase?
Ngôn ngữ chính
C#
Star
2.3k
Fork
539
Merge trung bình
3 ngày 15 giờ
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của KhronosGroup/UnityGLTF

Tất cả issue của KhronosGroup/UnityGLTF

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.