Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected layer enum behavior #171

Open
MrCroller opened this issue Aug 15, 2024 · 1 comment
Open

Unexpected layer enum behavior #171

MrCroller opened this issue Aug 15, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@MrCroller
Copy link

Unexpected layer enum behavior

Expected behavior
When selecting layers in the inspector with parent box fields

Code Sample

[System.Serializable, DeclareFoldoutGroup("Raycaster")]        
public class RaycasterSettings        
{
    [GroupNext("Raycaster")]
    [ShowInInspector, HideReferencePicker] public LayerMask MaskRoomInteract { get; private set; }
    [ShowInInspector, HideReferencePicker] public LayerMask MaskAimInteract { get; private set; }
    [ShowInInspector, HideReferencePicker] public LayerMask MaskAimDistance { get; private set; }
    [ShowInInspector, HideReferencePicker] public float MaxInteractDistance { get; private set; } = 3.1f;
    [ShowInInspector, HideReferencePicker]
    public float MaxAimDistance { get; private set; } = 700f;
}

Screenshots

Unity_r1pkgUvbM1.mp4

Desktop: Windows 11
Unity version: 2022.3.14f1
Tri Inspector version: 1.14.1

@MrCroller MrCroller added the bug Something isn't working label Aug 15, 2024
@MrCroller
Copy link
Author

Also, the problem could persist due to parent attributes

[InlineProperty, HideLabel] public RaycasterSettings Raycaster;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant