Serially
Serially copied to clipboard
Use `MonoScript` instead of `GuidAttribute` and `ProvideSourceInfo` attributes
GuidAttribute
and ProvideSourceInfo
attributes are used to uniquely reference classes. The Unity Editor already does this with meta files, and exposes it through the MonoScript
asset.
The guid should be gotten from the MonoScript
asset, and the pinging of the file can be handled through this asset as well.
The only flaw through this method, is that it will scale as O(n) to lookup types through the MonoImporter.GetAllRuntimeMonoScripts
. Caching can help reduce any bottlenecks.