VeriorPies / ParrelSync

(Unity3D) Test multiplayer without building
MIT License
4.47k stars 314 forks source link

[BUG] Clone can't be created when source-Path contains "Asset" #122

Open LoneSurvivor82 opened 3 months ago

LoneSurvivor82 commented 3 months ago

The source path of the project is this: grafik

ClonesManager.cs contains this method which hardcode removes the Assets-Part:

public static string GetCurrentProjectPath() { return Application.dataPath.Replace("/Assets", ""); }

So the generated path will become

E:/NetHelpersGames/Unity/ProjectsTest/Realistic Car Controller Pro/Realistic Car Controller Pro_clone_0/Library

which is wrong and leads to a DirectoyNotFoundException.

It should at least check for a closing slash to prevent things like this.

314pies commented 2 months ago

Yeah that doesn't seem right, thanks for reporting it!