TylerTemp / SaintsField

A Unity Inspector extension tool focusing on script fields inspector enhancement
MIT License
154 stars 9 forks source link

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

Open laurentopia opened 3 weeks ago

laurentopia commented 3 weeks ago

image show up as vector2 image

TylerTemp commented 3 weeks ago

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

laurentopia commented 3 weeks ago

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

TylerTemp commented 3 weeks ago

Bug confirmed. Will be fixed in next release

TylerTemp commented 2 weeks ago

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

TylerTemp commented 2 weeks ago

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