FastScriptReload icon indicating copy to clipboard operation
FastScriptReload copied to clipboard

Request: Need to reload scripts from packages (located in different folder than /Assets)

Open TheXRMonk opened this issue 2 years ago • 4 comments

There doesn't seem to be an easy way to get these paths for cross-device setup. Seems like each developer will have to hardcode this themselves based on their project directory.

Tried something like this;

public static class ProjectPaths
{
    public static string projectRoot => Path.GetDirectoryName(Application.dataPath);
    public static string submodulesDirectory => Path.GetDirectoryName(Application.dataPath) + "/Submodules";
}

with <ProjectPaths.submodulesDirectory>, but doesn't seem to work.

TheXRMonk avatar May 10 '23 12:05 TheXRMonk

Adjusting FileWatchers You should be able to do that, try to go with absolute path without token

handzlikchris avatar May 10 '23 12:05 handzlikchris

Adjusting FileWatchers You should be able to do that, try to go with absolute path without token

I think it doesn't work because I've installed FSR as a package, so assembly definitions will not have access to my script?

With manually written out the absolute path I get no errors, but also no script reload. (might be related to this isse)

TheXRMonk avatar May 10 '23 12:05 TheXRMonk

I also tried using it with local packages. No luck either. Any idea on this?

cpetry avatar Sep 24 '24 08:09 cpetry

I think that should be fixed with #90 and specyfing path directly.

You'll also need to set it in settings, could try with Custom Polling if it doesn't work image

handzlikchris avatar Sep 24 '24 15:09 handzlikchris