Hey. I follow a tutorial. In a parent paper character, I cannot put in any variables. It says (as shown on image) i cannot place it because they are not in scope. Obviously, I am a noob, but is there a way to fix it ? Thank youu
Can you be more clear?
I’m not sure what you’re trying to do.
Maybe someone else understands?
(FYI: “Not in Scope” means “Unavailable” or “Non-Existent” because it hasn’t spawned yet.)
I created Enum BP, then Enum variable in Event Graph so that I can use it. But I cannot drag and drop it there.
So far, I discovered one difference compared to the tutorial:
There is a structure:
- Parrent for All characters
– Parent for Player characters
– Parent for enemies
–…Player Characters
In tutorial, guy was putting blueprints in the parent for Player characters. (there I can drag and drop the Enum Variable). But I was trying to do it in the Parent of All characters…
So maybe like: parent of a parent is out of scope?
Anyway, I solved it by creating a new BP for parent of All and reparented the other Blueprints to it and now it works, while it remains a mystery why it didnt work before. t
Thank you for your reply…
when you say Parent
do you mean “in the existing level/blueprint hierarchy” (the technical term for this is composition) or “Parent Class that it is derived from” (this is called inheritance)
for the first situation (Composition) you need to get the specific instance of the container to the data for the specific data member variable to be in scope.
for the second situation (inheritance) the Parent class has no knowledge/understanding of what the derived classes add, or modify (those kids always adding new variables and not telling their parents about it) while to get to those members added in the derived class would require casting to that type.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.