-
Notifications
You must be signed in to change notification settings - Fork 445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skip AssetPostProcessor when file in StreamingAssets folder. #166 #171
Conversation
return false; | ||
} | ||
|
||
return FullPath[Application.streamingAssetsPath.Length] == '/'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code may raise a IndexOutOfRangeException
. For example, UnityPath.FromUnityPath(Application.streamingAssetsPath).IsStreamingAsset
will be an edge case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about a suggestion for a solution on line 56?
return false; | ||
} | ||
|
||
if (!FullPath.StartsWith(Application.streamingAssetsPath)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (!FullPath.StartsWith(Application.streamingAssetsPath)) | |
return FullPath.StartsWith(Application.streamingAssetsPath+"/"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
I avoid string +
, but this one is safer
This change resolves #166. |
f89bfea
to
cb91f66
Compare
I rewrote. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx! LGTM.
No description provided.