godotengine / godotengine/godot

setting a StyleBox bg_color with a @tool script makes the colour flicker to black

Open
#92,203 3 comments 0 reactions 0 assignees View on GitHub
bug needs testing topic:editor topic:gui
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

4.3dev5

### System information

Windows 10

### Issue description

see title

### Steps to reproduce

something like this....

```swift
@tool

var stylebox = StyleBoxFlat.new()

@export var color: Color:
set(value):
stylebox.bg_color = value
```

### Minimal reproduction project (MRP)

/

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue using the provided @tool script and StyleBoxFlat color setter in Godot 4.3dev5 on Windows 10. Start by confirming when the color flickers to black and use the minimal reproduction information in the issue to trace the editor-side update path. Done means assigning the exported color no longer causes the StyleBox background to flicker black.

Written by the indexing model from the issue text.

Assessment

Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.