Preview field attribute assign to its field and 1 other field.

Issue #625 new
Kanipob Sdawat created an issue

What happened? : I created a class that contain a ‘UnityEngine.Sprite' variable with ‘previewfield' attribute and make a 'System.Collections.Generic.List’ of this class. If you select a sprite at the preview field , It’ll assigned that sprite to other sprite field too.(include outside of List itself too)

How to reproduce : You can check it by unity package that I attached on this ticket.

ScreenShot :

  1. Upper list is simple list of sprite. You can add a sprite normally.
    (The simple list use 'previewfield' attribute too.)

    2. But if you add a sprite to the ‘SpriteClass' class , It’ll assigned to other field.
    (in picture I just put a sprite to the first of the 'List Of Problem Sprite' list but it add to second of list too.)

    3. This will effect outside of list too.
    (I put a sprite to the third of ‘ProblemSprite' list but It add to the first of 'SimpleSprite’ list too.)

Unity version : 2019.2.2f1
Odin inspector version : 2.1.8
Odin Inspector Editor mode : No
OS : MacOS Mojave 10.14.5

Comments (1)

  1. Log in to comment