Skip to content

An method for setting GuidReference target object from editor tools could be useful #9

@schmid

Description

@schmid

Adding this to GuidReference.cs is useful for editor tools:

#if UNITY_EDITOR
    public void SetReferenceEditor(MonoBehaviour behaviourWithReference, GuidComponent target)
    {
        Undo.RecordObject(behaviourWithReference, "Set GUID Reference");
        guid = target.GetGuid();
    }
#endif

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