Description

Get and Set nodes for variables from a BP's parent class will not compile without a reference to Self. Without one, the BP fails to compile with the following error:

"Error Variable node Get NewVar uses an invalid target. It may depend on a node that is not connected to the execution chain, and got purged."

Workarounds:
Attaching a reference to Self fixes the compiler error.

This is not necessary if you copy a Get or Set node for the variable in the parent and paste it into the Child.

Steps to Reproduce

1. Open any project
2. Create a new Actor Blueprint, "ParentBP"
3. Create a new variable of any type, "NewVar"
4. Create a new Actor Blueprint of type ParentBP, "ChildBP"
5. Get NewVar
6. Event Begin Play > Print String
7. NewVar > To String > attach to Print String
8. Compile

Result:
Compiler error: "Error Variable node Get NewVar uses an invalid target. It may depend on a node that is not connected to the execution chain, and got purged."

Adding a reference to Self fixes the compiler error.

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

0
Login to Vote

Fixed
ComponentUE - Gameplay - Blueprint
Affects Versions4.74.8
Target Fix4.7
Fix Commit2415387
Release Commit2415387
CreatedJan 9, 2015
ResolvedJan 22, 2015
UpdatedApr 27, 2018
View Jira Issue