Skip to content

Use MonoScript instead of GuidAttribute and ProvideSourceInfo attributes #81

Description

@jasonboukheir

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions