ProjectModules
namespace Griff.Runtime;
public static class ProjectModulesThe modules a game uses (see GameModule): those a component of which is in one of its scenes or prefabs, and those its scripts were built against. A game builds the systems of these alone (Modules), its scripts get a using for each, and its export carries their assemblies and no other module’s.
Methods
Section titled “Methods”BuiltAgainst
Section titled “BuiltAgainst”public static IReadOnlyList<GameModule> BuiltAgainst(Assembly scripts)The modules scripts (a project’s scripts, built) were built against: whose types they name.
InFiles
Section titled “InFiles”public static IReadOnlyList<GameModule> InFiles(string assetsFolder)The modules the scenes and prefabs under assetsFolder name a component of.
InScene
Section titled “InScene”public static IReadOnlyList<GameModule> InScene(Scene scene)The modules whose components are in scene.
public static IReadOnlyList<GameModule> Of(Project project, Assembly? scripts = null, IEnumerable<Scene>? open = null)The modules project uses: those its scenes and prefabs name a component of, those scripts (its scripts, built) were built against, and those of open (scenes the editor has open, unsaved changes and all).
public static IReadOnlyList<GameModule> Of(string assetsFolder, Assembly? scripts = null, IEnumerable<Scene>? open = null)