Skip to content

DeConditionnal attribute not working on nested fields #6

@tool-buddy

Description

@tool-buddy

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions