Prefab property override visual differences between Odin and Unity

Issue #691 resolved
Maciej Paluszek created an issue

When property (that is class or struct) in prefab is overriden Unity draws blue line and bolds overriden value, value label and main label.

Odin just bolds value and value label which makes harder to see overrides, and even harder when label is hidden.

This behavior is still present in Odin 3.

Code for this component:

using Sirenix.OdinInspector;
using UnityEngine;

public class Test : MonoBehaviour
{
    [SerializeField] private Vector2 m_testWithOdin;
    [SerializeField, DrawWithUnity] private Vector2 m_testWithUnity;
}

Code that recreates behavior simmilar to Unity: https://gist.github.com/My-Key/5c7d495b3f5669fd2c89514acc458c08

Comments (1)

  1. Log in to comment