In the code below, the field "field" is not disabled if "trigger" is true.
using System;
using DG.DeInspektor.Attributes;
using UnityEngine;
[Serializable]
public class TestObj
{
public bool trigger;
[DeConditional("trigger", true)]
public int field;
}
public class DeTest : MonoBehaviour
{
public TestObj TestObj;
}