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.
20 lines
555 B
C#
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;
|
|
}
|
|
}
|
|
} |