TylerTemp/SaintsField

[SerializedField] private don't show as MinMaxSlider if inherence has abstruct class in middle

Closed this issue · 6 comments

image
show up as vector2
image

Hi,

More information and context would be appreciated as I can not re-produce it with Unity 2022.2.0f1 under either IMGUI or UI Toolkit with script:

public class Issue79 : MonoBehaviour
{
    [MinMaxSlider(0, 20f), SerializeField] Vector2 range;  // test field

    [Serializable]
    public struct MyStruct
    {
        [MinMaxSlider(0, 20f), SerializeField] Vector2 range;  // test under struct
    }

    [SaintsRow] public MyStruct myStruct;
}

image


UPDATE: or it's used under a subclass of something? This kind of information also helps

the structure is
image
image
image
so it's just an inheritance of an abstract class that inherit from a mono

Bug confirmed. Will be fixed in next release

Hi,

This bug is fixed in dev branch.

Because of my health issue I need to slow down a bit on this project. If this issue bothers you much, please considering using dev branch to get the most recent stable features & bug fixing

Hi, this bug has been fixed in 3.3.0. As it's a breaking changes, please read the changelog before upgrading.

great and that fixed the [Required] bug I was getting.