You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using u3d run in conjunction with the -projectPath parameter, I've noticed that u3d's implementation of the parameter differs from Unity's implementation.
More specifically, the Unity docs explicitly state that the path to the Unity project to be loaded is to be passed via the argument -projectPath (camelCase). However, u3d's implementation of find_projectpath_in_args only looks for -projectpath (all lowercase) to identify the given project's path. As an effect, Unity is being launched with two arguments (once -projectpath which points to the current working directory and -projectPath which points to the actually provided directory in accordance with Unity's docs).
I am unsure as to why the feature has been implemented this way, but maybe an older version required the lowercased variant? In either case, find_projectpath_in_args could simply be adjusted to check for both the lowercased and camelcased variants of the parameter which would make it more failsafe.
The text was updated successfully, but these errors were encountered:
Issue Checklist
u3d --help
Issue Description
When using
u3d run
in conjunction with the-projectPath
parameter, I've noticed that u3d's implementation of the parameter differs from Unity's implementation.More specifically, the Unity docs explicitly state that the path to the Unity project to be loaded is to be passed via the argument
-projectPath
(camelCase). However, u3d's implementation of find_projectpath_in_args only looks for-projectpath
(all lowercase) to identify the given project's path. As an effect, Unity is being launched with two arguments (once-projectpath
which points to the current working directory and-projectPath
which points to the actually provided directory in accordance with Unity's docs).I am unsure as to why the feature has been implemented this way, but maybe an older version required the lowercased variant? In either case,
find_projectpath_in_args
could simply be adjusted to check for both the lowercased and camelcased variants of the parameter which would make it more failsafe.The text was updated successfully, but these errors were encountered: