Skip to main content
Version: 14 Oct 2024

VisualStudioProjectFileHook

NameSpace: MagicLeap

Sets up Visual Studio Project Files for this package to show the same folder structure in the IDE as in the file explorer. Without this class, all files in this package show up under the same root folder when its added as a local package to a Unity project. What's worse is that if the package contains files of the same name in 2 different paths, Visual Studio only shows one of those files and updating one ends up deleting the other.

Inherits from:
AssetPostprocessor

Public Methods

string OnGeneratedCSProject

public static string OnGeneratedCSProject(
string path,
string content
)

Parameters

TypeNameDescription
stringpath
stringcontent