You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Add expand modes to TextureRect
This commit is contained in:
@@ -178,7 +178,7 @@ void GradientTexture2DEditorRect::_notification(int p_what) {
|
||||
GradientTexture2DEditorRect::GradientTexture2DEditorRect() {
|
||||
checkerboard = memnew(TextureRect);
|
||||
checkerboard->set_stretch_mode(TextureRect::STRETCH_TILE);
|
||||
checkerboard->set_ignore_texture_size(true);
|
||||
checkerboard->set_expand_mode(TextureRect::EXPAND_IGNORE_SIZE);
|
||||
checkerboard->set_draw_behind_parent(true);
|
||||
add_child(checkerboard, false, INTERNAL_MODE_FRONT);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user