Skip to content

Commit

Permalink
fix: avatar names with non-path-safe characters break builds (#25)
Browse files Browse the repository at this point in the history
* fix: avatar names with non-path-safe characters break builds

* docs(changelog): Avatar names with non-path-safe characters break builds
  • Loading branch information
anatawa12 authored Sep 26, 2023
1 parent b58397f commit 480f9b3
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Generated assets are not visible on the Project window (#26)
- Apply on play is not disabled if av3emulator is active on other scene
- Avatar names with non-path-safe characters break builds (again) (#18)

### Changed

2 changes: 1 addition & 1 deletion Editor/API/BuildContext.cs
Original file line number Diff line number Diff line change
@@ -97,7 +97,7 @@ public BuildContext(GameObject obj, string assetRootPath)

var pathAvatarName = FilterAvatarName(avatarName);

var avatarPath = Path.Combine(assetRootPath, avatarName) + ".asset";
var avatarPath = Path.Combine(assetRootPath, pathAvatarName) + ".asset";
AssetDatabase.GenerateUniqueAssetPath(avatarPath);
AssetDatabase.CreateAsset(AssetContainer, avatarPath);
if (string.IsNullOrEmpty(AssetDatabase.GetAssetPath(AssetContainer)))

0 comments on commit 480f9b3

Please sign in to comment.