- edited description
DirtyOnClick of ButtonAttribute does not work
Issue #834
resolved
Consider this script:
using Sirenix.OdinInspector;
using UnityEngine;
public class ButtonDirtyOnClickIssue : MonoBehaviour
{
[Button(DirtyOnClick = false)]
public void DoNothing() { }
}
- Pressing the button marks the scene as dirty. The
DirtyOnClick
parameter set tofalse
should prevent this though.
Calling the same method using the good oldContextMenuAttribute
keeps the scene non-dirty. - Add the script to a GameObject, save the scene, press the button. The scene will be marked dirty.
- -
- Unity 2020.3.8f1
- Odin 3.0.12.0
- Tried both modes, does not matter
- Windows 10
Comments (5)
-
reporter -
-
assigned issue to
-
assigned issue to
-
Just throwing my hat in the ring here - this bit me today; would love to see it fixed!
-
This has now been fixed in the 3.1 beta branch, and will be included in the next 3.1 beta release this week.
-
- changed status to resolved
- Log in to comment