You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CrowdControl/Assets/3rd/Plugins/Smart-Inspector/Patches/InspectorUtilsPatch.cs

20 lines
555 B
C#

using System.Collections.Generic;
using HarmonyLib;
using UnityEngine;
namespace AV.Inspector
{
internal class InspectorUtilsPatch : PatchBase
{
protected override IEnumerable<Patch> GetPatches()
{
var type = EditorAssembly.GetType("UnityEditor.InspectorWindowUtils");
yield return new Patch(AccessTools.Method(type, "DrawAddedComponentBackground"), nameof(_DrawAddedComponentBackground));
}
static bool _DrawAddedComponentBackground()
{
return false;
}
}
}