Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Adding a field in Environment to locate Unity's content's path #626

Merged

Conversation

StanleyGoldman
Copy link
Contributor

@StanleyGoldman StanleyGoldman commented Mar 12, 2018

Fixes #622

Adding UnityContentsPath as a field to Environment and using it where appropriate

@@ -141,8 +143,8 @@ public NPath NodeJsExecutablePath
if (!nodeJsExecutablePath.IsInitialized)
{
nodeJsExecutablePath = IsWindows
? UnityApplication.Parent.Combine("Data", "Tools", "nodejs", "node.exe")
: UnityApplication.Combine("Contents", "Tools", "nodejs", "node");
? UnityApplicationContents.Parent.Combine("Tools", "nodejs", "node.exe")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't right, EditorApplication.applicationContentsPath points to the Editor\Data directory which contains the Tools directory. It's the same logic as on the mac, in fact.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dunno how that Parent got there...

@StanleyGoldman StanleyGoldman merged commit 6789164 into features/octorun-js Mar 15, 2018
@StanleyGoldman StanleyGoldman deleted the fixes/octorun-refactor-contents-path branch March 15, 2018 18:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants