UnityEditor.RuntimeClassRegistry.SetRetentionLevel C# (CSharp) Method