# Disable blueprint's construction script / Stop it from compiling when opening it in editor. (Editor Freezes)

**URL:** <https://forums.unrealengine.com/t/disable-blueprints-construction-script-stop-it-from-compiling-when-opening-it-in-editor-editor-freezes/1673263>\
**Category:** Blueprint\
**Tags:** freeze, editor-freezes, unreal-engine, editor, Blueprint, question\
**Created:** [February 7, 2024, 11:24pm UTC](https://forums.unrealengine.com/t/disable-blueprints-construction-script-stop-it-from-compiling-when-opening-it-in-editor-editor-freezes/1673263 "2024-02-07T23:24:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MIKEBB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MIKEBB](https://forums.unrealengine.com/u/MIKEBB)\
**Post date:** [February 7, 2024, 11:24pm UTC](https://forums.unrealengine.com/t/disable-blueprints-construction-script-stop-it-from-compiling-when-opening-it-in-editor-editor-freezes/1673263/1 "2024-02-07T23:24:45Z")

</div>

Hi, I have a blueprint class that spawns different meshes (through construction script) and actors (in the event graph under BeginPlay). While working in one of its functions, I made a mistake and created an infinite loop: The editor freezed when I compiled.  
Now, whenever I click on the blueprint or try to edit it, the whole Editor freezes. I found a log saying that it went over 1 million repetitions in a specific function.

I realized that whenever I try to open the blueprint, UE compiles it, causing the whole editor to freeze.

This is a problem since I know the function that has the loop with issues, but I cannot edit it since opening the blueprint editor compiles and freezes everything.

**I was wondering if there is a way to disable its construction script, or stoping the blueprint to compile whenever I open it.**

I need to edit the blueprint without UE running or compiling it.  
I am really trying to avoid recreating it since it is quite a long script.

---

<div class="post-metadata">

**Author:** ![Midisport\_8x8s](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Midisport\_8x8s](https://forums.unrealengine.com/u/Midisport_8x8s)\
**Post date:** [February 8, 2024, 12:24am UTC](https://forums.unrealengine.com/t/disable-blueprints-construction-script-stop-it-from-compiling-when-opening-it-in-editor-editor-freezes/1673263/2 "2024-02-08T00:24:12Z")

</div>

I can’t think of the proper way, but maybe if you are lucky you can edit the right parameters in the Property Matrix so the loop doesn’t happen? Depends on your code.

---

<div class="post-metadata">

**Author:** ![MIKEBB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MIKEBB](https://forums.unrealengine.com/u/MIKEBB)\
**Post date:** [February 8, 2024, 3:13am UTC](https://forums.unrealengine.com/t/disable-blueprints-construction-script-stop-it-from-compiling-when-opening-it-in-editor-editor-freezes/1673263/3 "2024-02-08T03:13:04Z")

</div>

Somehow the editor also freezes when I try to open the Property Matrix

---

<div class="post-metadata">

**Author:** ![MIKEBB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MIKEBB](https://forums.unrealengine.com/u/MIKEBB)\
**Post date:** [February 8, 2024, 3:34pm UTC](https://forums.unrealengine.com/t/disable-blueprints-construction-script-stop-it-from-compiling-when-opening-it-in-editor-editor-freezes/1673263/4 "2024-02-08T15:34:38Z")

</div>

I found out a way around it.  
I’ve seen a lot of posts here and in reddit saying a similar thing: not being able to edit back a blueprint since it crashes the editor as soon as you click on it.

I did not know that autosave files are stored directly in the saved folder. Directly in the file explorer, **I just erased my corrupted blueprint, and replaced it with the corresponding file from the autosaves folder which had an older date.** I also cleaned the name, erasing the \_Auto#.

That worked let me open the blueprint again without me losing it completely.

I still find ridiculous that unreal doesn’t have a direct way of opening the blueprint after an accidental infinite loop is created.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [March 9, 2024, 3:34pm UTC](https://forums.unrealengine.com/t/disable-blueprints-construction-script-stop-it-from-compiling-when-opening-it-in-editor-editor-freezes/1673263/5 "2024-03-09T15:34:59Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
