# How do you get a Child Actor to be a different Enum value from the Parent Actor?

**URL:** <https://forums.unrealengine.com/t/how-do-you-get-a-child-actor-to-be-a-different-enum-value-from-the-parent-actor/510771>\
**Category:** Blueprint\
**Tags:** actor-blueprint, ENUM, unreal-engine, UE4-27, Blueprint, question\
**Created:** [March 30, 2022, 12:16am UTC](https://forums.unrealengine.com/t/how-do-you-get-a-child-actor-to-be-a-different-enum-value-from-the-parent-actor/510771 "2022-03-30T00:16:53Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lonestanding27](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lonestanding27/32/627066_2.png) [@Lonestanding27](https://forums.unrealengine.com/u/Lonestanding27)\
**Post date:** [March 30, 2022, 12:16am UTC](https://forums.unrealengine.com/t/how-do-you-get-a-child-actor-to-be-a-different-enum-value-from-the-parent-actor/510771/1 "2022-03-30T00:16:54Z")

</div>

I was setting up a Resource System for one of my games, I working on the Main Parent Actor so it held the Enum so I could set the the type of Resource Each Item would produce (i.e. A Stone would produce stone and so on…] But when I tried setting it up the children would still follow the parent in whatever I set it to be. So I am wondering how do I get the Enum on the children to register what they are and be separate from the Parent Actor. Thank you for reading this.

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [March 30, 2022, 1:23am UTC](https://forums.unrealengine.com/t/how-do-you-get-a-child-actor-to-be-a-different-enum-value-from-the-parent-actor/510771/2 "2022-03-30T01:23:37Z")

</div>

make the enum variable editable.

---

<div class="post-metadata">

**Author:** ![Lonestanding27](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lonestanding27/32/627066_2.png) [@Lonestanding27](https://forums.unrealengine.com/u/Lonestanding27)\
**Post date:** [March 30, 2022, 1:49am UTC](https://forums.unrealengine.com/t/how-do-you-get-a-child-actor-to-be-a-different-enum-value-from-the-parent-actor/510771/3 "2022-03-30T01:49:09Z")

</div>

Tried this , still coming out as the resource of the parent instead of that of the child. Not sure if it could be the “OR” statement for when the unit is suppose to collect the resource, for if I don’t do that they won’t collect the child resource at all.

 ![ResourceProblem](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/7/9/77943eaabf47910f18e80e60da60a0e23ce0485c.png)  
 ![ResourceProblem2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/0/3/b03ce0295f50f829c825b5fd19e626d7e8b553df.png)  
 ![ResourceProblem3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/1/a/91a2bb97cd9d6a6f0c5a6d677624c11eb99df17d.png)

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [March 30, 2022, 3:01am UTC](https://forums.unrealengine.com/t/how-do-you-get-a-child-actor-to-be-a-different-enum-value-from-the-parent-actor/510771/4 "2022-03-30T03:01:24Z")

</div>

You are getting the class base resource, not the child class resource var.

Parent class → create enum variable.  
Create child class → Edit “resource” value.  
interact with child class → cast to Parent class → get resource… Done.

---

<div class="post-metadata">

**Author:** ![Lonestanding27](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lonestanding27/32/627066_2.png) [@Lonestanding27](https://forums.unrealengine.com/u/Lonestanding27)\
**Post date:** [April 2, 2022, 6:13am UTC](https://forums.unrealengine.com/t/how-do-you-get-a-child-actor-to-be-a-different-enum-value-from-the-parent-actor/510771/5 "2022-04-02T06:13:28Z")

</div>

Sadly the enum would only work the parent object and I could not figure out how to get it work with the children(still new to all of this) so I went with one that I think might work better if I can get it to work. So I Changed the Code with a Code I found in a Template but I noticed it stops right before it can go to the Next step not sure what is going on, but it is suppose to work with Children based on their names. So I hope to figure this out, if anyone has a solution to this let me know:

 ![TestFailed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/f/6/4f612810425bf172a2bd81838e6ec9092166eb75.png)  
 ![TestFailed1-1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/9/b/39bf779ae2dc4b33748d39e07df57945b49d90c4.png)  
 ![TestFailed1-2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/3/cc332455260b505770f3e7bb62183d4ab16dfc62.png)

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [April 5, 2022, 12:35am UTC](https://forums.unrealengine.com/t/how-do-you-get-a-child-actor-to-be-a-different-enum-value-from-the-parent-actor/510771/6 "2022-04-05T00:35:27Z")

</div>

How are you setting the enum value in the child instances?

- Drag-n-drop, details edit?
- Construction script → set enum?
- Begin Play → set enum
- Exposed/editable var → Spawn actor (set exposed pin)?

---

<div class="post-metadata">

**Author:** ![Lonestanding27](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lonestanding27/32/627066_2.png) [@Lonestanding27](https://forums.unrealengine.com/u/Lonestanding27)\
**Post date:** [April 5, 2022, 1:59am UTC](https://forums.unrealengine.com/t/how-do-you-get-a-child-actor-to-be-a-different-enum-value-from-the-parent-actor/510771/7 "2022-04-05T01:59:24Z")

</div>

I have been just selecting it from the list when looking at the variable setting. Then I did try to set it at Event Begin Play , it would just still default to the Parent. But it looks as if I have tried them all of them but the Spawn Actor. But, the others either defaults to the parent settings or it says “Accessed None” I have tried setting the Resource Base more then once but it still see nothing.

 ![Try - 4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/e/9/9e945be4fbd808d5b90052b9430526a026675e89.png)

Here is a Post on another forum I started trying to figure out this issue. Then it was not registering anything in the UI. But Now it is. [What to do if one Node is not passing to another - #19 by Lonestanding27](https://forums.unrealengine.com/t/what-to-do-if-one-node-is-not-passing-to-another/511904/19)

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [April 5, 2022, 3:56am UTC](https://forums.unrealengine.com/t/how-do-you-get-a-child-actor-to-be-a-different-enum-value-from-the-parent-actor/510771/8 "2022-04-05T03:56:43Z")

</div>

You’re not doing something correct, that’s for sure. I’ll whip up a demo on YT tomorrow.

---

<div class="post-metadata">

**Author:** ![Lonestanding27](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lonestanding27/32/627066_2.png) [@Lonestanding27](https://forums.unrealengine.com/u/Lonestanding27)\
**Post date:** [April 5, 2022, 5:24am UTC](https://forums.unrealengine.com/t/how-do-you-get-a-child-actor-to-be-a-different-enum-value-from-the-parent-actor/510771/9 "2022-04-05T05:24:13Z")

</div>

Ok Thank you

---

<div class="post-metadata">

**Author:** ![OverclockMugen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OverclockMugen](https://forums.unrealengine.com/u/OverclockMugen)\
**Post date:** [September 1, 2022, 8:32pm UTC](https://forums.unrealengine.com/t/how-do-you-get-a-child-actor-to-be-a-different-enum-value-from-the-parent-actor/510771/10 "2022-09-01T20:32:14Z")

</div>

did you ever create that demo i’m having a hard time accesing an enum from my child too

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [September 1, 2022, 8:40pm UTC](https://forums.unrealengine.com/t/how-do-you-get-a-child-actor-to-be-a-different-enum-value-from-the-parent-actor/510771/11 "2022-09-01T20:40:31Z")

</div>

My Bad, totally forgot. Probably overwhelmed with work. I’ll do my best to get it done this weekend.

In the meantime…

Parent Class → Enum variable (instance editable)!  
Create child class → change value.  
That simple.

If you have to cast, then cast to the direct parent of the child.

---

<div class="post-metadata">

**Author:** ![JustOneWho](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JustOneWho](https://forums.unrealengine.com/u/JustOneWho)\
**Post date:** [January 22, 2024, 4:35pm UTC](https://forums.unrealengine.com/t/how-do-you-get-a-child-actor-to-be-a-different-enum-value-from-the-parent-actor/510771/12 "2024-01-22T16:35:30Z")

</div>

Hey @Rev0verDrive, did you have a chance to create the video? 🙃

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [January 23, 2024, 1:33am UTC](https://forums.unrealengine.com/t/how-do-you-get-a-child-actor-to-be-a-different-enum-value-from-the-parent-actor/510771/13 "2024-01-23T01:33:42Z")

</div>

I think I did, but I can’t find it. I’ll do another tomorrow for sure.

What specific issues are you having?

---

<div class="post-metadata">

**Author:** ![JustOneWho](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JustOneWho](https://forums.unrealengine.com/u/JustOneWho)\
**Post date:** [January 23, 2024, 5:22pm UTC](https://forums.unrealengine.com/t/how-do-you-get-a-child-actor-to-be-a-different-enum-value-from-the-parent-actor/510771/14 "2024-01-23T17:22:25Z")

</div>

So I have buildables and snappable objects in my project. Let’s say I have a pipe connector, and you can snap other pipe connectors on the left and right of the actor, but in the middle of the pipe, I have two boxes that are only valid for snapping pipes. All box collisions are just the same.

I came up with a blueprint interface in which I need to send an enum based on what type of object I am holding right now. I’m not sure if it is a good solution or if it goes against some best practices. It works, though.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/1/d/21de29fc4b0d8a3d5fb3556d533fa528c8cfa604.jpeg)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/c/4/9c44aa53c059023b9e20d8681f904cd68eddfd59.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/5/b/b5b13b58edebb019b1bfe768160d03d860a3f068.jpeg)
