Ejemplo n.º 1
0
    // This function is called when the object is loaded
    private void OnEnable()
    {
        // Get the scriptable object of the project containing all tags and load them
        reference = MultiTagsUtility.GetTagsAsset();

        // Creates editor for the reference
        referenceEditor = (TagsEditor)Editor.CreateEditor(reference);
    }
Ejemplo n.º 2
0
    // This function is called when the object is loaded
    private void OnEnable()
    {
        // If no target, return
        if (!target)
        {
            return;
        }

        // Get editing object
        tagsSO = (TagsSO)target;
    }