HideIf gets ignored in combination with HideInInlineEditor

Issue #795 new
Kronus Exodues created an issue

How to reproduce: You really just need this script, there’s not much to this bug. You can also use ShowIf instead of HideIf, the result is the same.

using UnityEngine;
using Sirenix.OdinInspector;

public class Test : MonoBehaviour {
    [HideIf("hide")] [HideInInlineEditors]
    public int number = 5;
    public bool hide = false;
}

Expected behavior: “number” is always hidden in InlineEditors and conditionally hidden outside of Inline Editors.

Actual behavior: the [HideIf] Attribute gets ignored. “number” is always hidden in InlineEditors but never hidden outside of inline Editors.

Unity version: 2020.3.2f1

Odin version: 3.0.5.1

Operating System: Manjaro Linux

Comments (1)

  1. Log in to comment