You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
GuidAttribute
andProvideSourceInfo
attributes are used to uniquely reference classes. The Unity Editor already does this with meta files, and exposes it through theMonoScript
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.The text was updated successfully, but these errors were encountered: