# Read component properties in Construction Script?

**URL:** <https://forums.unrealengine.com/t/read-component-properties-in-construction-script/132760>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [October 29, 2019, 9:18pm UTC](https://forums.unrealengine.com/t/read-component-properties-in-construction-script/132760 "2019-10-29T21:18:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ren\_D](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ren\_D](https://forums.unrealengine.com/u/Ren_D)\
**Post date:** [October 29, 2019, 9:18pm UTC](https://forums.unrealengine.com/t/read-component-properties-in-construction-script/132760/1 "2019-10-29T21:18:38Z")

</div>

1. I created a new component containing a variable.
2. Created a new blueprint.
3. Added a component to my blueprint.
4. My blueprint containing my component is placed on the scene.
5. On the stage, I changed the values of the variable, in the component inside the bluetooth.
6. In blueprint on the Construction Script, I read the value of the variable from the component.

**I expect to get the value of the variable entered on the scene (_MyVar=10_)  
I get the default value. (_MyVar=0_)**

Tell me how to fix this problem?

 ![1.PNG.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/a/aa7b6cd3a1a3f46ec2474203a26748f155ee1272.jpeg)

 ![2.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/0/3/0374f5a80ee6f9205d3918a2c55141ed99833491.png)  
 ![3.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/e/bed40c87dafd67b5fa5fd37d93dba960e642db38.jpeg)

---

<div class="post-metadata">

**Author:** ![silik1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/silik1/32/482168_2.png) [@silik1](https://forums.unrealengine.com/u/silik1)\
**Post date:** [October 29, 2019, 9:35pm UTC](https://forums.unrealengine.com/t/read-component-properties-in-construction-script/132760/2 "2019-10-29T21:35:12Z")

</div>

When NPC is constructed it doesn’t have the component yet, I guess. Which makes sense, its components cannot be there before it.  
You have to wait, aka:  
EventBeginPlay\>\>get MyVar.

---

<div class="post-metadata">

**Author:** ![Ren\_D](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ren\_D](https://forums.unrealengine.com/u/Ren_D)\
**Post date:** [October 30, 2019, 6:19am UTC](https://forums.unrealengine.com/t/read-component-properties-in-construction-script/132760/3 "2019-10-30T06:19:37Z")

</div>

> [@silik1](#):
>
> When NPC is constructed it doesn’t have the component yet, I guess. Which makes sense, its components cannot be there before it.  
> You have to wait, aka:  
> EventBeginPlay\>\>get MyVar.

what to do if I need to execute logic before EventBeginPlay? (Level Streaming)

---

<div class="post-metadata">

**Author:** ![silik1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/silik1/32/482168_2.png) [@silik1](https://forums.unrealengine.com/u/silik1)\
**Post date:** [October 30, 2019, 10:19am UTC](https://forums.unrealengine.com/t/read-component-properties-in-construction-script/132760/4 "2019-10-30T10:19:26Z")

</div>

I was wrong, after testing it, you can manipulate component variable in the construction script, but PrintString won’t work.

So, it really depeends what you wanna achieve…

Here what I tested:

 ![ChildActor.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/2/126d93e0cef8db5bdb2a07960439e0c0ba5f3441.png)  
I’ve checked with a PrintString in BeginPlay, ChildVar was set.

---

<div class="post-metadata">

**Author:** ![Stormrage256](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/stormrage256/32/1008648_2.png) [@Stormrage256](https://forums.unrealengine.com/u/Stormrage256)\
**Post date:** [October 30, 2019, 11:26am UTC](https://forums.unrealengine.com/t/read-component-properties-in-construction-script/132760/5 "2019-10-30T11:26:02Z")

</div>

You can get the values from the component, but customizing its variables from the editor will not result in the changes being reflected immediately. You will have to start an instance of the game to make that happen.

If you want to reflect the changes in the editor itself, I believe you have to update the variable manually through the construction script of the owning actor.

---

<div class="post-metadata">

**Author:** ![CraveTheGrave](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CraveTheGrave](https://forums.unrealengine.com/u/CraveTheGrave)\
**Post date:** [November 12, 2019, 12:48am UTC](https://forums.unrealengine.com/t/read-component-properties-in-construction-script/132760/6 "2019-11-12T00:48:37Z")

</div>

I am also hitting this.

For my use case I’m trying to hide or show a billboard component based on the values of a different component (basically as an in-editor warning). Anyone know of a way to do that kind of check/update before BeginPlay is called?

---

<div class="post-metadata">

**Author:** ![Skotty-TV](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skotty-TV](https://forums.unrealengine.com/u/Skotty-TV)\
**Post date:** [April 22, 2026, 9:03pm UTC](https://forums.unrealengine.com/t/read-component-properties-in-construction-script/132760/7 "2026-04-22T21:03:01Z")

</div>

A bit late → Call a Custom event from the Construction script → Add a “delay until next tick” → do your construction stuff.

---

<div class="post-metadata">

**Author:** ![danamaloma](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/danamaloma/32/1167197_2.png) [@danamaloma](https://forums.unrealengine.com/u/danamaloma)\
**Post date:** [April 23, 2026, 1:44am UTC](https://forums.unrealengine.com/t/read-component-properties-in-construction-script/132760/8 "2026-04-23T01:44:41Z")

</div>

> [@Ren\_D](#):
>
> 1. I created a new component containing a variable.
> 2. Created a new blueprint.
> 3. Added a component to my blueprint.
> 4. My blueprint containing my component is placed on the scene.
> 5. On the stage, I changed the values of the variable, in the component inside the bluetooth.
> 6. In blueprint on the Construction Script, I read the value of the variable from the component.
> 
> **I expect to get the value of the variable entered on the scene (_MyVar=10_)  
> I get the default value. (_MyVar=0_)**
> 
> Tell me how to fix this problem?

### 💡 Recommended approach (used in many games)

Instead of relying on blocking collision, use a **Trigger Volume (Box/Sphere Overlap)** and handle the behavior manually:

**1. Detect entry into boundary**

- Place a larger invisible volume where the “soft wall” starts.

- Use `OnComponentBeginOverlap` to detect when the player enters it.

**2. Gradually reduce player control**

- As the player gets closer to the edge, scale down their input or velocity.

- For example:

**3. Apply opposite force (rubber band)**

- When inside the volume, apply a force or movement offset back toward the center:

**4. Release behavior**

- When player stops pushing, the force naturally pulls them back → gives that elastic feel

* * *

### 🧠 Alternative (simpler Blueprint logic)

A very common pattern suggested by UE devs:

- First phase: **slow player to a stop (~1 second)**

- Second phase: **apply increasing force pushing them back**

This creates a smooth 2–3 second interaction instead of a hard stop ([Epic Developer Community Forums](https://forums.unrealengine.com/t/gracefully-move-the-player-back-from-an-invisible-wall-blocking-volume/644120?utm_source=chatgpt.com "Gracefully move the player back from an invisible wall / blocking volume? - Blueprint - Epic Developer Community Forums"))

* * *

### ⚙ Implementation tips (important)

- ❌ Avoid pure blocking volumes → causes your “stuck” glitch

- ✅ Use **overlap + manual velocity control**

- ✅ Modify:

- ✅ Use a **falloff curve** (Float Curve asset) for smoothness

- ✅ Clamp max pushback force so it doesn’t feel jerky

* * *

### 🎮 Bonus: “Star Fox feel”

For that classic Star Fox boundary:

- Use a **camera-centered box**

- Always push player toward screen center (not world center)

- Add slight camera shake or tilt when pushing → sells the effect

* * *

### 🧩 TL;DR

- No built-in UE5 feature for this

- Don’t use hard collision

- Use:  
**Overlap Volume + distance-based slowdown + reverse force**

- Think of it as a **soft constraint field** , not a wall
