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

SerializeField attribute marked as redundant on fields of type Vector2Int #1992

Closed
kbegiedza opened this issue Jan 5, 2021 · 1 comment
Closed

Comments

@kbegiedza
Copy link

Actual:
SerializeField attribute is marked as redundant on fields of types: Vector2Int or Vector3Int.
No information about initialization from inspector is displayed.

Expected:
Should work as Vector2 / Vector3.

Environment:

OS: Ubuntu 20.04
Unity: 2020.2.0f1
IDE: Rider 2020.2.4
Unity Support version: bundled 2020.2.2.328

Repro:

using UnityEngine;

public class ResharperRepro : MonoBehaviour
{
    [SerializeField]
    private Vector2 _vector2;

    [SerializeField]
    private Vector2Int _vector2Int;
    
    [SerializeField]
    private Vector3 _vector3;
    
    [SerializeField]
    private Vector3Int _vector3Int;
}

Preview:
Rider IDE:
Screenshot from 2021-01-05 20-19-22
Unity inspector:
Screenshot from 2021-01-05 20-20-09

@citizenmatt
Copy link
Member

This has been fixed in Rider 2020.3 (See #1923).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants