public Action Generate()
        {
            if (string.IsNullOrEmpty(className) || string.IsNullOrEmpty(actionAsJson))
            {
                ACDebug.LogWarning("Cannot create favourite Action.");
                return(null);
            }

            Action newAction = (Action)ScriptableObject.CreateInstance(className);

            JsonUtility.FromJsonOverwrite(actionAsJson, newAction);
            newAction.ClearIDs();
            return(newAction);
        }